public class SimpleTextStoredFieldsReader extends StoredFieldsReader
FOR RECREATIONAL USE ONLY
Constructor and Description |
---|
SimpleTextStoredFieldsReader(Directory directory,
SegmentInfo si,
FieldInfos fn,
IOContext context) |
Modifier and Type | Method and Description |
---|---|
void |
checkIntegrity()
Checks consistency of this reader.
|
StoredFieldsReader |
clone() |
void |
close() |
long |
ramBytesUsed()
Returns approximate RAM bytes used
|
void |
visitDocument(int n,
StoredFieldVisitor visitor)
Visit the stored fields for document
n |
public SimpleTextStoredFieldsReader(Directory directory, SegmentInfo si, FieldInfos fn, IOContext context) throws IOException
IOException
public void visitDocument(int n, StoredFieldVisitor visitor) throws IOException
StoredFieldsReader
n
visitDocument
in class StoredFieldsReader
IOException
public StoredFieldsReader clone()
clone
in class StoredFieldsReader
public void close() throws IOException
IOException
public long ramBytesUsed()
StoredFieldsReader
ramBytesUsed
in class StoredFieldsReader
public void checkIntegrity() throws IOException
StoredFieldsReader
Note that this may be costly in terms of I/O, e.g. may involve computing a checksum value against large data files.
checkIntegrity
in class StoredFieldsReader
IOException
Copyright © 2000-2016 The Apache Software Foundation. All Rights Reserved.