public interface WithIdAndVersion extends WithId
| Modifier and Type | Interface and Description |
|---|---|
static class |
WithIdAndVersion.DefaultWithIdAndVersion |
ID_COMPARATOR| Modifier and Type | Method and Description |
|---|---|
static WithIdAndVersion |
fromDocument(IndexDirectoryFactory.Name indexName,
org.apache.lucene.document.Document document) |
static Collection<WithIdAndVersion> |
fromDocuments(IndexDirectoryFactory.Name indexName,
Collection<org.apache.lucene.document.Document> documents)
|
Long |
getVersion() |
static WithIdAndVersion |
of(Long id,
Long version) |
static WithIdAndVersion of(Long id, Long version)
Long getVersion()
static WithIdAndVersion fromDocument(IndexDirectoryFactory.Name indexName, org.apache.lucene.document.Document document) throws IllegalArgumentException
indexName - index namedocument - document related to indexName with id and versionindexName and documentIllegalArgumentException - when WithIdAndVersion cannot be created from indexName and documentstatic Collection<WithIdAndVersion> fromDocuments(IndexDirectoryFactory.Name indexName, Collection<org.apache.lucene.document.Document> documents) throws IllegalArgumentException
IllegalArgumentExceptionCopyright © 2002-2022 Atlassian. All Rights Reserved.