public class VersionsResolver
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
VersionsResolver.DocIdAndVersion
Wraps an
LeafReaderContext , a doc ID relative to the context doc base and
a version. |
Modifier and Type | Method and Description |
---|---|
static VersionsResolver.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 |
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 VersionsResolver.DocIdAndVersion loadDocIdAndVersion(org.apache.lucene.index.IndexReader reader, org.apache.lucene.index.Term term) throws java.io.IOException
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