Class SingleFieldsVisitor
java.lang.Object
org.apache.lucene.index.StoredFieldVisitor
org.elasticsearch.index.fieldvisitor.SingleFieldsVisitor
public final class SingleFieldsVisitor
extends org.apache.lucene.index.StoredFieldVisitor
StoredFieldVisitor that loads a single field value.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.index.StoredFieldVisitor
org.apache.lucene.index.StoredFieldVisitor.Status
-
Constructor Summary
ConstructorDescriptionSingleFieldsVisitor(MappedFieldType field, List<Object> destination)
Build the field visitor; -
Method Summary
Modifier and TypeMethodDescriptionvoid
binaryField(org.apache.lucene.index.FieldInfo fieldInfo, byte[] value)
void
doubleField(org.apache.lucene.index.FieldInfo fieldInfo, double value)
void
floatField(org.apache.lucene.index.FieldInfo fieldInfo, float value)
void
intField(org.apache.lucene.index.FieldInfo fieldInfo, int value)
void
longField(org.apache.lucene.index.FieldInfo fieldInfo, long value)
org.apache.lucene.index.StoredFieldVisitor.Status
needsField(org.apache.lucene.index.FieldInfo fieldInfo)
void
stringField(org.apache.lucene.index.FieldInfo fieldInfo, byte[] bytes)
-
Constructor Details
-
SingleFieldsVisitor
Build the field visitor;- Parameters:
field
- the name of the field to loaddestination
- where to put the field's values
-
-
Method Details
-
needsField
public org.apache.lucene.index.StoredFieldVisitor.Status needsField(org.apache.lucene.index.FieldInfo fieldInfo)- Specified by:
needsField
in classorg.apache.lucene.index.StoredFieldVisitor
-
binaryField
public void binaryField(org.apache.lucene.index.FieldInfo fieldInfo, byte[] value)- Overrides:
binaryField
in classorg.apache.lucene.index.StoredFieldVisitor
-
stringField
public void stringField(org.apache.lucene.index.FieldInfo fieldInfo, byte[] bytes)- Overrides:
stringField
in classorg.apache.lucene.index.StoredFieldVisitor
-
intField
public void intField(org.apache.lucene.index.FieldInfo fieldInfo, int value)- Overrides:
intField
in classorg.apache.lucene.index.StoredFieldVisitor
-
longField
public void longField(org.apache.lucene.index.FieldInfo fieldInfo, long value)- Overrides:
longField
in classorg.apache.lucene.index.StoredFieldVisitor
-
floatField
public void floatField(org.apache.lucene.index.FieldInfo fieldInfo, float value)- Overrides:
floatField
in classorg.apache.lucene.index.StoredFieldVisitor
-
doubleField
public void doubleField(org.apache.lucene.index.FieldInfo fieldInfo, double value)- Overrides:
doubleField
in classorg.apache.lucene.index.StoredFieldVisitor
-