Package com.atlassian.jira.index.ha
Interface WithIdAndVersion
- All Superinterfaces:
WithId
- All Known Implementing Classes:
EntityVersion,EntityWithVersion,WithIdAndVersion.DefaultWithIdAndVersion
Entities implementing this interface are supposed to be uniquely identifiable by id and have a version.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface com.atlassian.jira.entity.WithId
ID_COMPARATOR -
Method Summary
Modifier and TypeMethodDescriptionstatic WithIdAndVersionfromDocument(IndexDirectoryFactory.Name indexName, org.apache.lucene.document.Document document) Deprecated, for removal: This API element is subject to removal in a future version.since 10.4, for removal.static Collection<WithIdAndVersion>fromDocuments(IndexDirectoryFactory.Name indexName, Collection<org.apache.lucene.document.Document> documents) Deprecated, for removal: This API element is subject to removal in a future version.since 10.4, for removal.static WithIdAndVersion
-
Method Details
-
of
-
getVersion
Long getVersion() -
fromDocument
@Deprecated(since="10.4", forRemoval=true) static WithIdAndVersion fromDocument(IndexDirectoryFactory.Name indexName, org.apache.lucene.document.Document document) throws IllegalArgumentException Deprecated, for removal: This API element is subject to removal in a future version.since 10.4, for removal. There is no replacement for this method.- Parameters:
indexName- index namedocument- document related toindexNamewith id and version- Returns:
- WithIdAndVersion created from
indexNameanddocument - Throws:
IllegalArgumentException- whenWithIdAndVersioncannot be created fromindexNameanddocument
-
fromDocuments
@Deprecated(since="10.4", forRemoval=true) static Collection<WithIdAndVersion> fromDocuments(IndexDirectoryFactory.Name indexName, Collection<org.apache.lucene.document.Document> documents) throws IllegalArgumentException Deprecated, for removal: This API element is subject to removal in a future version.since 10.4, for removal. There is no replacement for this method.- Throws:
IllegalArgumentException
-