public class IntDocVectorsForwardIndex extends Object
SequenceFile
s
containing IntDocVector
s, providing random access to the document
vectors.BuildIntDocVectorsForwardIndex
Modifier and Type | Field and Description |
---|---|
static long |
BigNumber |
Constructor and Description |
---|
IntDocVectorsForwardIndex(String indexPath,
FileSystem fs)
Creates an
IntDocVectorsIndex object. |
IntDocVectorsForwardIndex(String indexPath,
FileSystem fs,
boolean weighted)
Creates an
IntDocVectorsIndex object. |
Modifier and Type | Method and Description |
---|---|
IntDocVector |
getDocVector(int docno)
Returns the document vector given a docno.
|
static void |
main(String[] args)
Simple test program.
|
public static final long BigNumber
public IntDocVectorsForwardIndex(String indexPath, FileSystem fs) throws IOException
IntDocVectorsIndex
object.indexPath
- location of the index filefs
- handle to the FileSystemIOException
public IntDocVectorsForwardIndex(String indexPath, FileSystem fs, boolean weighted) throws IOException
IntDocVectorsIndex
object.indexPath
- location of the index filefs
- handle to the FileSystemweighted
- true
to load weighted document vectorsIOException
public IntDocVector getDocVector(int docno) throws IOException
IntDocVector
for the appropriate docnoIOException