public final class IDVersionSegmentTermsEnum extends BaseTermsEnum
seekExact(BytesRef, long) for
optimistic-concurrency, 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.
|
ImpactsEnum |
impacts(int flags) |
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() |
attributespublic boolean seekExact(BytesRef target) throws IOException
seekExact in class BaseTermsEnumIOExceptionpublic 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 ImpactsEnum impacts(int flags) throws IOException
impacts in class TermsEnumIOExceptionpublic void seekExact(BytesRef target, TermState otherState)
seekExact in class BaseTermsEnumpublic TermState termState() throws IOException
termState in class BaseTermsEnumIOExceptionCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.