public class LazyTermDocVector extends Object implements TermDocVector
TermDocVector
that lazily decodes term and
positional information on demand.Modifier and Type | Class and Description |
---|---|
static class |
LazyTermDocVector.Reader |
Constructor and Description |
---|
LazyTermDocVector() |
LazyTermDocVector(Map<String,ArrayListOfInts> termPositionsMap) |
Modifier and Type | Method and Description |
---|---|
LazyTermDocVector.Reader |
getReader()
Returns the reader for this
TermDocVector . |
void |
readFields(DataInput in) |
void |
setTermPositionsMap(Map<String,ArrayListOfInts> termPositionsMap) |
String |
toString() |
void |
write(DataOutput out) |
public LazyTermDocVector()
public LazyTermDocVector(Map<String,ArrayListOfInts> termPositionsMap)
public LazyTermDocVector.Reader getReader() throws IOException
TermDocVector
TermDocVector
.getReader
in interface TermDocVector
TermDocVector
IOException
public void readFields(DataInput in) throws IOException
readFields
in interface Writable
IOException
public void setTermPositionsMap(Map<String,ArrayListOfInts> termPositionsMap)
public void write(DataOutput out) throws IOException
write
in interface Writable
IOException