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() |
DocsEnum |
docs(Bits skipDocs,
DocsEnum reuse,
int flags) |
DocsAndPositionsEnum |
docsAndPositions(Bits skipDocs,
DocsAndPositionsEnum reuse,
int flags) |
Comparator<BytesRef> |
getComparator() |
long |
getVersion()
Get the version of the currently seek'd term; only valid if we are
positioned.
|
BytesRef |
next() |
long |
ord() |
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, docs, docsAndPositionspublic 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 DocsEnum docs(Bits skipDocs, DocsEnum reuse, int flags) throws IOException
docs in class TermsEnumIOExceptionpublic DocsAndPositionsEnum docsAndPositions(Bits skipDocs, DocsAndPositionsEnum reuse, int flags) throws IOException
docsAndPositions in class TermsEnumIOExceptionpublic TermState termState() throws IOException
termState in class TermsEnumIOExceptionpublic Comparator<BytesRef> getComparator()
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.