java.lang.Object
org.elasticsearch.search.fetch.StoredFieldsContext
- All Implemented Interfaces:
- Writeable
Context used to fetch the 
stored_fields.- 
Nested Class SummaryNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.WriteableWriteable.Reader<V>, Writeable.Writer<V>
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescription
- 
Method SummaryModifier and TypeMethodDescriptionaddFieldName(String field) Adds a field namefieldto the list of fields to load.addFieldNames(List<String> fieldNames) Adds the field namesfieldNamesto the list of fields to load.booleanbooleanReturns true if the stored fields should be fetched, false otherwise.Gets the field names to load and return as part of the search request.static StoredFieldsContextstatic StoredFieldsContextfromRestRequest(String name, RestRequest request) static StoredFieldsContextfromXContent(String fieldName, XContentParser parser) inthashCode()voidtoXContent(String preferredName, XContentBuilder builder) voidwriteTo(StreamOutput out) Write this into the StreamOutput.
- 
Field Details- 
_NONE_- See Also:
 
 
- 
- 
Constructor Details- 
StoredFieldsContext
- 
StoredFieldsContext- Throws:
- IOException
 
 
- 
- 
Method Details- 
writeToDescription copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
- writeToin interface- Writeable
- Throws:
- IOException
 
- 
fieldNamesGets the field names to load and return as part of the search request.
- 
addFieldNamesAdds the field namesfieldNamesto the list of fields to load.
- 
addFieldNameAdds a field namefieldto the list of fields to load.
- 
fetchFieldspublic boolean fetchFields()Returns true if the stored fields should be fetched, false otherwise.
- 
equals
- 
hashCodepublic int hashCode()
- 
toXContent- Throws:
- IOException
 
- 
fromList
- 
fromXContentpublic static StoredFieldsContext fromXContent(String fieldName, XContentParser parser) throws IOException - Throws:
- IOException
 
- 
fromRestRequest
 
-