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() |
attributes
public boolean seekExact(BytesRef target) throws IOException
seekExact
in class BaseTermsEnum
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 PostingsEnum postings(PostingsEnum reuse, int flags) throws IOException
postings
in class TermsEnum
IOException
public ImpactsEnum impacts(int flags) throws IOException
impacts
in class TermsEnum
IOException
public void seekExact(BytesRef target, TermState otherState)
seekExact
in class BaseTermsEnum
public TermState termState() throws IOException
termState
in class BaseTermsEnum
IOException
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.