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

    Constructors
    Constructor
    Description
    Build the field visitor;
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SingleFieldsVisitor

      public SingleFieldsVisitor(MappedFieldType field, List<Object> destination)
      Build the field visitor;
      Parameters:
      field - the name of the field to load
      destination - 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 class org.apache.lucene.index.StoredFieldVisitor
    • binaryField

      public void binaryField(org.apache.lucene.index.FieldInfo fieldInfo, byte[] value)
      Overrides:
      binaryField in class org.apache.lucene.index.StoredFieldVisitor
    • stringField

      public void stringField(org.apache.lucene.index.FieldInfo fieldInfo, byte[] bytes)
      Overrides:
      stringField in class org.apache.lucene.index.StoredFieldVisitor
    • intField

      public void intField(org.apache.lucene.index.FieldInfo fieldInfo, int value)
      Overrides:
      intField in class org.apache.lucene.index.StoredFieldVisitor
    • longField

      public void longField(org.apache.lucene.index.FieldInfo fieldInfo, long value)
      Overrides:
      longField in class org.apache.lucene.index.StoredFieldVisitor
    • floatField

      public void floatField(org.apache.lucene.index.FieldInfo fieldInfo, float value)
      Overrides:
      floatField in class org.apache.lucene.index.StoredFieldVisitor
    • doubleField

      public void doubleField(org.apache.lucene.index.FieldInfo fieldInfo, double value)
      Overrides:
      doubleField in class org.apache.lucene.index.StoredFieldVisitor