public class MultipleTermPositions extends Object implements TermPositions
MultipleTermPositions here.| Constructor and Description |
|---|
MultipleTermPositions(IndexReader indexReader,
Term[] terms)
Creates a new
MultipleTermPositions instance. |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Describe
close method here. |
int |
doc()
Describe
doc method here. |
int |
freq()
Describe
freq method here. |
boolean |
next()
Describe
next method here. |
int |
nextPosition()
Describe
nextPosition method here. |
int |
read(int[] arg0,
int[] arg1)
Describe
read method here. |
void |
seek(Term arg0)
Describe
seek method here. |
void |
seek(TermEnum termEnum)
Sets this to the data for the current term in a
TermEnum. |
boolean |
skipTo(int target)
Describe
skipTo method here. |
public MultipleTermPositions(IndexReader indexReader, Term[] terms) throws IOException
MultipleTermPositions instance.indexReader - an IndexReader valueterms - a Term[] valueIOException - if an error occurspublic final boolean next()
throws IOException
next method here.next in interface TermDocsboolean valueIOException - if an error occursTermDocs.next()public final int nextPosition()
throws IOException
nextPosition method here.nextPosition in interface TermPositionsint valueIOException - if an error occursTermPositions.nextPosition()public final boolean skipTo(int target)
throws IOException
skipTo method here.skipTo in interface TermDocstarget - an int valueboolean valueIOException - if an error occursTermDocs.skipTo(int)public final int doc()
doc method here.doc in interface TermDocsint valueTermDocs.doc()public final int freq()
freq method here.freq in interface TermDocsint valueTermDocs.freq()public final void close()
throws IOException
close method here.close in interface TermDocsIOException - if an error occursTermDocs.close()public void seek(Term arg0) throws IOException
seek method here.seek in interface TermDocsarg0 - a Term valueIOException - if an error occursTermDocs.seek(Term)public void seek(TermEnum termEnum) throws IOException
TermDocsTermEnum.
This may be optimized in some implementations.seek in interface TermDocsIOExceptionpublic int read(int[] arg0,
int[] arg1)
throws IOException
read method here.read in interface TermDocsarg0 - an int[] valuearg1 - an int[] valueint valueIOException - if an error occursTermDocs.read(int[], int[])Copyright © 2024 GATE. All rights reserved.