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
IntDocVector
IntDocVector
.getReader
in interface IntDocVector
IntDocVector
IOException
public void readFields(DataInput in) throws IOException
readFields
in interface Writable
IOException
public String toStringWithTerms(DefaultFrequencySortedDictionary map)
public void write(DataOutput out) throws IOException
write
in interface Writable
IOException