- Fixed a bug when dealing with large indices

- Added Javadoc.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150078 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Otis Gospodnetic 2003-10-03 10:24:46 +00:00
parent c3bae8805b
commit eeb4099cfa
1 changed files with 9 additions and 4 deletions

View File

@ -61,20 +61,25 @@ import org.apache.lucene.store.InputStream;
import org.apache.lucene.document.Document;
import org.apache.lucene.document.Field;
/**
* Class responsible for access to stored document fields.
* It uses <segment>.fdt and <segment>.fdx; files.
*
* @version $Id$
*/
final class FieldsReader {
private FieldInfos fieldInfos;
private InputStream fieldsStream;
private InputStream indexStream;
private int size;
FieldsReader(Directory d, String segment, FieldInfos fn)
throws IOException {
FieldsReader(Directory d, String segment, FieldInfos fn) throws IOException {
fieldInfos = fn;
fieldsStream = d.openFile(segment + ".fdt");
indexStream = d.openFile(segment + ".fdx");
size = (int)indexStream.length() / 8;
size = (int)(indexStream.length() / 8);
}
final void close() throws IOException {