Class StoredFieldsContext

org.elasticsearch.search.fetch.StoredFieldsContext
All Implemented Interfaces:
Writeable

public class StoredFieldsContext extends implements Writeable
Context used to fetch the stored_fields.
  • Field Details

  • Constructor Details

    • StoredFieldsContext

      public StoredFieldsContext(StoredFieldsContext other)
    • StoredFieldsContext

      public StoredFieldsContext(StreamInput in) throws
      Throws:
  • Method Details

    • writeTo

      public void writeTo(StreamOutput out) throws
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Throws:
    • fieldNames

      public <> fieldNames()
      Gets the field names to load and return as part of the search request.
    • addFieldNames

      public <> fieldNames)
      Adds the field names fieldNames to the list of fields to load.
    • addFieldName

      public  field)
      Adds a field name field to the list of fields to load.
    • fetchFields

      public boolean fetchFields()
      Returns true if the stored fields should be fetched, false otherwise.
    • equals

      public boolean equals( o)
      Overrides:
       in class 
    • hashCode

      public int hashCode()
      Overrides:
       in class 
    • toXContent

      public void toXContent( preferredName, org.elasticsearch.common.xcontent.XContentBuilder builder) throws
      Throws:
    • fromList

      public static <> fieldNames)
    • fromXContent

      public static  fieldName, org.elasticsearch.common.xcontent.XContentParser parser) throws
      Throws:
    • fromRestRequest

      public static  name, RestRequest request)