public final class IDVersionSegmentTermsEnum extends TermsEnum
seekExact(BytesRef, long) for
optimistic-concurreny, and also getVersion() to get the
version of the currently seek'd term.TermsEnum.SeekStatus| Modifier and Type | Method and Description |
|---|---|
int |
docFreq() |
long |
getVersion()
Get the version of the currently seek'd term; only valid if we are
positioned.
|
BytesRef |
next() |
long |
ord() |
PostingsEnum |
postings(PostingsEnum reuse,
int flags) |
TermsEnum.SeekStatus |
seekCeil(BytesRef target) |
boolean |
seekExact(BytesRef target) |
boolean |
seekExact(BytesRef target,
long minIDVersion)
Optimized version of
seekExact(BytesRef) that can
sometimes fail-fast if the version indexed with the requested ID
is less than the specified minIDVersion. |
void |
seekExact(BytesRef target,
TermState otherState) |
void |
seekExact(long ord) |
BytesRef |
term() |
TermState |
termState() |
String |
toString() |
long |
totalTermFreq() |
attributes, postingspublic boolean seekExact(BytesRef target) throws IOException
seekExact in class TermsEnumIOExceptionpublic long getVersion()
public boolean seekExact(BytesRef target, long minIDVersion) throws IOException
seekExact(BytesRef) that can
sometimes fail-fast if the version indexed with the requested ID
is less than the specified minIDVersion. Applications that index
a monotonically increasing global version with each document can
use this for fast optimistic concurrency.IOExceptionpublic TermsEnum.SeekStatus seekCeil(BytesRef target) throws IOException
seekCeil in class TermsEnumIOExceptionpublic BytesRef next() throws IOException
IOExceptionpublic int docFreq()
throws IOException
docFreq in class TermsEnumIOExceptionpublic long totalTermFreq()
throws IOException
totalTermFreq in class TermsEnumIOExceptionpublic PostingsEnum postings(PostingsEnum reuse, int flags) throws IOException
postings in class TermsEnumIOExceptionpublic TermState termState() throws IOException
termState in class TermsEnumIOExceptionCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.