public static class OffsetsEnum.MultiOffsetsEnum extends OffsetsEnum
OffsetsEnum.MultiOffsetsEnum, OffsetsEnum.OfMatchesIterator, OffsetsEnum.OfMatchesIteratorWithSubs, OffsetsEnum.OfPostings
EMPTY
Constructor and Description |
---|
MultiOffsetsEnum(List<OffsetsEnum> inner) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
endOffset() |
int |
freq()
An estimate of the number of occurrences of this term/OffsetsEnum.
|
BytesRef |
getTerm()
The term at this position.
|
boolean |
nextPosition()
Advances to the next position and returns true, or if can't then returns false.
|
int |
startOffset() |
compareTo, toString
public MultiOffsetsEnum(List<OffsetsEnum> inner) throws IOException
IOException
public boolean nextPosition() throws IOException
OffsetsEnum
nextPosition
in class OffsetsEnum
IOException
public BytesRef getTerm() throws IOException
OffsetsEnum
getTerm
in class OffsetsEnum
IOException
Passage.getMatchTerms()
public int startOffset() throws IOException
startOffset
in class OffsetsEnum
IOException
public int endOffset() throws IOException
endOffset
in class OffsetsEnum
IOException
public int freq() throws IOException
OffsetsEnum
freq
in class OffsetsEnum
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OffsetsEnum
IOException
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.