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, docsAndPositions
public boolean seekExact(BytesRef target) throws IOException
seekExact
in class TermsEnum
IOException
public 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.IOException
public TermsEnum.SeekStatus seekCeil(BytesRef target) throws IOException
seekCeil
in class TermsEnum
IOException
public BytesRef next() throws IOException
IOException
public int docFreq() throws IOException
docFreq
in class TermsEnum
IOException
public long totalTermFreq() throws IOException
totalTermFreq
in class TermsEnum
IOException
public DocsEnum docs(Bits skipDocs, DocsEnum reuse, int flags) throws IOException
docs
in class TermsEnum
IOException
public DocsAndPositionsEnum docsAndPositions(Bits skipDocs, DocsAndPositionsEnum reuse, int flags) throws IOException
docsAndPositions
in class TermsEnum
IOException
public TermState termState() throws IOException
termState
in class TermsEnum
IOException
public Comparator<BytesRef> getComparator()
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.