Save This Page
Home » lucene-2.3.2-src » org.apache » lucene » index » [javadoc | source]
org.apache.lucene.index
final class: FieldsReader [javadoc | source]
java.lang.Object
   org.apache.lucene.index.FieldsReader
Class responsible for access to stored document fields.

It uses <segment>.fdt and <segment>.fdx; files.

Nested Class Summary:
static final class  FieldsReader.FieldForMerge   
Constructor:
 FieldsReader(Directory d,
    String segment,
    FieldInfos fn) throws IOException 
 FieldsReader(Directory d,
    String segment,
    FieldInfos fn,
    int readBufferSize) throws IOException 
 FieldsReader(Directory d,
    String segment,
    FieldInfos fn,
    int readBufferSize,
    int docStoreOffset,
    int size) throws IOException 
Method from org.apache.lucene.index.FieldsReader Summary:
close,   doc,   ensureOpen,   rawDocs,   size
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.lucene.index.FieldsReader Detail:
 final  void close() throws IOException 
    Closes the underlying org.apache.lucene.store.IndexInput streams, including any ones associated with a lazy implementation of a Field. This means that the Fields values will not be accessible.
 final Document doc(int n,
    FieldSelector fieldSelector) throws IOException, CorruptIndexException 
 protected final  void ensureOpen() throws AlreadyClosedException 
 final IndexInput rawDocs(int[] lengths,
    int startDocID,
    int numDocs) throws IOException 
    Returns the length in bytes of each raw document in a contiguous range of length numDocs starting with startDocID. Returns the IndexInput (the fieldStream), already seeked to the starting point for startDocID.
 final int size()