public abstract class OffsetsEnum extends Object implements Comparable<OffsetsEnum>, Closeable
FieldHighlighter
.
It is advanced and is placed in a priority queue by
FieldHighlighter.highlightOffsetsEnums(OffsetsEnum)
based on the start offset.Modifier and Type | Class and Description |
---|---|
static class |
OffsetsEnum.MultiOffsetsEnum
A view over several OffsetsEnum instances, merging them in-place
|
static class |
OffsetsEnum.OfMatchesIterator
Based on a
MatchesIterator ; does not look at submatches. |
static class |
OffsetsEnum.OfMatchesIteratorWithSubs
Based on a
MatchesIterator with submatches. |
static class |
OffsetsEnum.OfPostings
Based on a
PostingsEnum -- the typical/standard OE impl. |
Modifier and Type | Field and Description |
---|---|
static OffsetsEnum |
EMPTY
Empty enumeration
|
Constructor and Description |
---|
OffsetsEnum() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
compareTo(OffsetsEnum other) |
abstract int |
endOffset() |
abstract int |
freq()
An estimate of the number of occurrences of this term/OffsetsEnum.
|
abstract BytesRef |
getTerm()
The term at this position.
|
abstract boolean |
nextPosition()
Advances to the next position and returns true, or if can't then returns false.
|
abstract int |
startOffset() |
String |
toString() |
public static final OffsetsEnum EMPTY
public int compareTo(OffsetsEnum other)
compareTo
in interface Comparable<OffsetsEnum>
public abstract boolean nextPosition() throws IOException
IOException
public abstract int freq() throws IOException
IOException
public abstract BytesRef getTerm() throws IOException
IOException
Passage.getMatchTerms()
public abstract int startOffset() throws IOException
IOException
public abstract int endOffset() throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.