public final class VersionsAndSeqNoResolver
extends java.lang.Object
Modifier and Type | Class | Description |
---|---|---|
static class |
VersionsAndSeqNoResolver.DocIdAndSeqNo |
Wraps an
LeafReaderContext , a doc ID relative to the context doc base and a seqNo. |
static class |
VersionsAndSeqNoResolver.DocIdAndVersion |
Wraps an
LeafReaderContext , a doc ID relative to the context doc base and a version. |
Modifier and Type | Method | Description |
---|---|---|
static VersionsAndSeqNoResolver.DocIdAndSeqNo |
loadDocIdAndSeqNo(org.apache.lucene.index.IndexReader reader,
org.apache.lucene.index.Term term) |
Load the internal doc ID and sequence number for the uid from the reader, returning
null if the uid wasn't found,
a doc ID and the associated seqNo otherwise
|
static VersionsAndSeqNoResolver.DocIdAndVersion |
loadDocIdAndVersion(org.apache.lucene.index.IndexReader reader,
org.apache.lucene.index.Term term) |
Load the internal doc ID and version for the uid from the reader, returning
null if the uid wasn't found,
a doc ID and a version otherwise
|
static long |
loadPrimaryTerm(VersionsAndSeqNoResolver.DocIdAndSeqNo docIdAndSeqNo,
java.lang.String uidField) |
Load the primaryTerm associated with the given
VersionsAndSeqNoResolver.DocIdAndSeqNo |
static long |
loadVersion(org.apache.lucene.index.IndexReader reader,
org.apache.lucene.index.Term term) |
Load the version for the uid from the reader, returning
Versions.NOT_FOUND if no matching doc exists,
the version associated with the provided uid otherwise
|
public static VersionsAndSeqNoResolver.DocIdAndVersion loadDocIdAndVersion(org.apache.lucene.index.IndexReader reader, org.apache.lucene.index.Term term) throws java.io.IOException
java.io.IOException
public static VersionsAndSeqNoResolver.DocIdAndSeqNo loadDocIdAndSeqNo(org.apache.lucene.index.IndexReader reader, org.apache.lucene.index.Term term) throws java.io.IOException
java.io.IOException
public static long loadPrimaryTerm(VersionsAndSeqNoResolver.DocIdAndSeqNo docIdAndSeqNo, java.lang.String uidField) throws java.io.IOException
VersionsAndSeqNoResolver.DocIdAndSeqNo
java.io.IOException
public static long loadVersion(org.apache.lucene.index.IndexReader reader, org.apache.lucene.index.Term term) throws java.io.IOException
Versions.NOT_FOUND
if no matching doc exists,
java.io.IOException