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 document
IllegalArgumentException
- when WithIdAndVersion
cannot be created from indexName
and document
static Collection<WithIdAndVersion> fromDocuments(IndexDirectoryFactory.Name indexName, Collection<org.apache.lucene.document.Document> documents) throws IllegalArgumentException
IllegalArgumentException
Copyright © 2002-2020 Atlassian. All Rights Reserved.