| java.lang.Object org.apache.lucene.index.TermVectorsReader
TermVectorsReader | class TermVectorsReader implements Cloneable(Code) | | version: $Id: TermVectorsReader.java 601337 2007-12-05 13:59:37Z mikemccand $ |
Constructor Summary | |
| TermVectorsReader(Directory d, String segment, FieldInfos fieldInfos) | | TermVectorsReader(Directory d, String segment, FieldInfos fieldInfos, int readBufferSize) | | TermVectorsReader(Directory d, String segment, FieldInfos fieldInfos, int readBufferSize, int docStoreOffset, int size) |
FORMAT_SIZE | final static int FORMAT_SIZE(Code) | | |
FORMAT_VERSION | final static int FORMAT_VERSION(Code) | | |
STORE_OFFSET_WITH_TERMVECTOR | final static byte STORE_OFFSET_WITH_TERMVECTOR(Code) | | |
STORE_POSITIONS_WITH_TERMVECTOR | final static byte STORE_POSITIONS_WITH_TERMVECTOR(Code) | | |
get | TermFreqVector get(int docNum, String field) throws IOException(Code) | | Retrieve the term vector for the given document and field
Parameters: docNum - The document number to retrieve the vector for Parameters: field - The field within the document to retrieve The TermFreqVector for the document and field or null if there is no termVector for this field. throws: IOException - if there is an error reading the term vector files |
get | TermFreqVector[] get(int docNum) throws IOException(Code) | | Return all term vectors stored for this document or null if the could not be read in.
Parameters: docNum - The document number to retrieve the vector for All term frequency vectors throws: IOException - if there is an error reading the term vector files |
size | int size()(Code) | | The number of documents in the reader |
|
|