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 TypeMethodDescriptionvoid
binaryField
(FieldInfo fieldInfo, byte[] value) Process a binary field.void
binaryField
(FieldInfo fieldInfo, DataInput value, int length) Expert: Process a binary field directly from theDataInput
.void
doubleField
(FieldInfo fieldInfo, double value) Process a double numeric field.void
floatField
(FieldInfo fieldInfo, float value) Process a float numeric field.void
Process a int numeric field.void
Process a long numeric field.needsField
(FieldInfo fieldInfo) Hook before processing a field.void
stringField
(FieldInfo fieldInfo, String value) Process a string field.
-
Field Details
-
writer
-
-
Constructor Details
-
CopyVisitor
CopyVisitor(StoredFieldsWriter writer)
-
-
Method Details
-
binaryField
Description copied from class:StoredFieldVisitor
Expert: Process a binary field directly from theDataInput
. Implementors of this method must readlength
bytes from the givenDataInput
. The default implementation reads all byes in a newly created byte array and callsStoredFieldVisitor.binaryField(FieldInfo, byte[])
.- Overrides:
binaryField
in classStoredFieldVisitor
value
- newly allocated byte array with the binary contents.- Throws:
IOException
-
binaryField
Description copied from class:StoredFieldVisitor
Process a binary field.- Overrides:
binaryField
in classStoredFieldVisitor
value
- newly allocated byte array with the binary contents.- Throws:
IOException
-
stringField
Description copied from class:StoredFieldVisitor
Process a string field.- Overrides:
stringField
in classStoredFieldVisitor
- Throws:
IOException
-
intField
Description copied from class:StoredFieldVisitor
Process a int numeric field.- Overrides:
intField
in classStoredFieldVisitor
- Throws:
IOException
-
longField
Description copied from class:StoredFieldVisitor
Process a long numeric field.- Overrides:
longField
in classStoredFieldVisitor
- Throws:
IOException
-
floatField
Description copied from class:StoredFieldVisitor
Process a float numeric field.- Overrides:
floatField
in classStoredFieldVisitor
- Throws:
IOException
-
doubleField
Description copied from class:StoredFieldVisitor
Process a double numeric field.- Overrides:
doubleField
in classStoredFieldVisitor
- Throws:
IOException
-
needsField
Description copied from class:StoredFieldVisitor
Hook before processing a field. Before a field is processed, this method is invoked so that subclasses can return aStoredFieldVisitor.Status
representing whether they need that particular field or not, or to stop processing entirely.- Specified by:
needsField
in classStoredFieldVisitor
- Throws:
IOException
-