Class FieldsVisitor
java.lang.Object
org.apache.lucene.index.StoredFieldVisitor
org.elasticsearch.index.fieldvisitor.FieldsVisitor
- Direct Known Subclasses:
CustomFieldsVisitor
public class FieldsVisitor
extends org.apache.lucene.index.StoredFieldVisitor
Base
StoredFieldVisitor
that retrieves all non-redundant metadata.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.index.StoredFieldVisitor
org.apache.lucene.index.StoredFieldVisitor.Status
-
Field Summary
-
Constructor Summary
ConstructorDescriptionFieldsVisitor(boolean loadSource)
FieldsVisitor(boolean loadSource, String sourceFieldName)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
binaryField(org.apache.lucene.index.FieldInfo fieldInfo, byte[] value)
void
binaryField(org.apache.lucene.index.FieldInfo fieldInfo, org.apache.lucene.util.BytesRef value)
void
doubleField(org.apache.lucene.index.FieldInfo fieldInfo, double value)
fields()
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
objectField(org.apache.lucene.index.FieldInfo fieldInfo, Object object)
void
postProcess(Function<String,MappedFieldType> fieldTypeLookup, String type)
void
reset()
routing()
source()
void
stringField(org.apache.lucene.index.FieldInfo fieldInfo, byte[] bytes)
uid()
-
Field Details
-
source
-
type
-
id
-
fieldsValues
-
-
Constructor Details
-
FieldsVisitor
public FieldsVisitor(boolean loadSource) -
FieldsVisitor
-
-
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
-
postProcess
public final void postProcess(Function<String,MappedFieldType> fieldTypeLookup, @Nullable String type) -
binaryField
public void binaryField(org.apache.lucene.index.FieldInfo fieldInfo, byte[] value)- Overrides:
binaryField
in classorg.apache.lucene.index.StoredFieldVisitor
-
binaryField
public void binaryField(org.apache.lucene.index.FieldInfo fieldInfo, org.apache.lucene.util.BytesRef value) -
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
-
objectField
-
source
-
uid
-
routing
-
fields
-
reset
public void reset()
-