public class LazyIntDocVector extends Object implements IntDocVector
IntDocVector that lazily decodes term and
positional information on demand.| Modifier and Type | Class and Description |
|---|---|
static class |
LazyIntDocVector.Reader |
| Constructor and Description |
|---|
LazyIntDocVector() |
LazyIntDocVector(SortedMap<Integer,int[]> termPositionsMap) |
| Modifier and Type | Method and Description |
|---|---|
LazyIntDocVector.Reader |
getReader()
Returns the reader for this
IntDocVector. |
void |
readFields(DataInput in) |
void |
setTermPositionsMap(SortedMap<Integer,int[]> termPositionsMap) |
String |
toString() |
String |
toStringWithTerms(DefaultFrequencySortedDictionary map) |
void |
write(DataOutput out) |
public LazyIntDocVector.Reader getReader() throws IOException
IntDocVectorIntDocVector.getReader in interface IntDocVectorIntDocVectorIOExceptionpublic void readFields(DataInput in) throws IOException
readFields in interface WritableIOExceptionpublic String toStringWithTerms(DefaultFrequencySortedDictionary map)
public void write(DataOutput out) throws IOException
write in interface WritableIOException