gate.creole.annic.apache.lucene.index
Class FieldsReader

java.lang.Object
  extended by gate.creole.annic.apache.lucene.index.FieldsReader

final class FieldsReader
extends Object

Class responsible for access to stored document fields. It uses <segment>.fdt and <segment>.fdx; files.

Version:
$Id: FieldsReader.java 529 2004-10-05 11:55:26Z niraj $

Field Summary
private  FieldInfos fieldInfos
           
private  InputStream fieldsStream
           
private  InputStream indexStream
           
private  int size
           
 
Constructor Summary
FieldsReader(Directory d, String segment, FieldInfos fn)
           
 
Method Summary
(package private)  void close()
           
(package private)  Document doc(int n)
           
(package private)  int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fieldInfos

private FieldInfos fieldInfos

fieldsStream

private InputStream fieldsStream

indexStream

private InputStream indexStream

size

private int size
Constructor Detail

FieldsReader

FieldsReader(Directory d,
             String segment,
             FieldInfos fn)
       throws IOException
Throws:
IOException
Method Detail

close

final void close()
          throws IOException
Throws:
IOException

size

final int size()

doc

final Document doc(int n)
            throws IOException
Throws:
IOException