Module org.apache.lucene.core
Package org.apache.lucene.index
Class SortingStoredFieldsConsumer.CopyVisitor
java.lang.Object
org.apache.lucene.index.StoredFieldVisitor
org.apache.lucene.index.SortingStoredFieldsConsumer.CopyVisitor
- Enclosing class:
SortingStoredFieldsConsumer
A visitor that copies every field it sees in the provided
StoredFieldsWriter.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.index.StoredFieldVisitor
StoredFieldVisitor.Status -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbinaryField(FieldInfo fieldInfo, byte[] value) Process a binary field.voidbinaryField(FieldInfo fieldInfo, DataInput value, int length) Expert: Process a binary field directly from theDataInput.voiddoubleField(FieldInfo fieldInfo, double value) Process a double numeric field.voidfloatField(FieldInfo fieldInfo, float value) Process a float numeric field.voidProcess a int numeric field.voidProcess a long numeric field.needsField(FieldInfo fieldInfo) Hook before processing a field.voidstringField(FieldInfo fieldInfo, String value) Process a string field.
-
Field Details
-
writer
-
-
Constructor Details
-
CopyVisitor
CopyVisitor(StoredFieldsWriter writer)
-
-
Method Details
-
binaryField
Description copied from class:StoredFieldVisitorExpert: Process a binary field directly from theDataInput. Implementors of this method must readlengthbytes from the givenDataInput. The default implementation reads all byes in a newly created byte array and callsStoredFieldVisitor.binaryField(FieldInfo, byte[]).- Overrides:
binaryFieldin classStoredFieldVisitor- Parameters:
value- newly allocated byte array with the binary contents.- Throws:
IOException
-
binaryField
Description copied from class:StoredFieldVisitorProcess a binary field.- Overrides:
binaryFieldin classStoredFieldVisitor- Parameters:
value- newly allocated byte array with the binary contents.- Throws:
IOException
-
stringField
Description copied from class:StoredFieldVisitorProcess a string field.- Overrides:
stringFieldin classStoredFieldVisitor- Throws:
IOException
-
intField
Description copied from class:StoredFieldVisitorProcess a int numeric field.- Overrides:
intFieldin classStoredFieldVisitor- Throws:
IOException
-
longField
Description copied from class:StoredFieldVisitorProcess a long numeric field.- Overrides:
longFieldin classStoredFieldVisitor- Throws:
IOException
-
floatField
Description copied from class:StoredFieldVisitorProcess a float numeric field.- Overrides:
floatFieldin classStoredFieldVisitor- Throws:
IOException
-
doubleField
Description copied from class:StoredFieldVisitorProcess a double numeric field.- Overrides:
doubleFieldin classStoredFieldVisitor- Throws:
IOException
-
needsField
Description copied from class:StoredFieldVisitorHook before processing a field. Before a field is processed, this method is invoked so that subclasses can return aStoredFieldVisitor.Statusrepresenting whether they need that particular field or not, or to stop processing entirely.- Specified by:
needsFieldin classStoredFieldVisitor- Throws:
IOException
-