public abstract class StoredFieldsReader extends implements , , Accountable
You need to implement visitDocument(int, StoredFieldVisitor)
to
read the stored fields for a document, implement clone()
(creating
clones of any IndexInputs used, etc), and
NULL_ACCOUNTABLE
Modifier | Constructor and Description |
---|---|
protected |
StoredFieldsReader()
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
checkIntegrity()
Checks consistency of this reader.
|
abstract StoredFieldsReader |
clone() |
StoredFieldsReader |
getMergeInstance()
Returns an instance optimized for merging.
|
abstract void |
visitDocument(int docID,
StoredFieldVisitor visitor)
Visit the stored fields for document
docID |
getChildResources, ramBytesUsed
protected StoredFieldsReader()
public abstract void visitDocument(int docID, StoredFieldVisitor visitor) throws
docID
public abstract StoredFieldsReader clone()
in class
public abstract void checkIntegrity() throws
Note that this may be costly in terms of I/O, e.g. may involve computing a checksum value against large data files.
public StoredFieldsReader getMergeInstance()
The default implementation returns this
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.