Package org.elasticsearch.search.fetch
Class StoredFieldsContext
org.elasticsearch.search.fetch.StoredFieldsContext
- All Implemented Interfaces:
Writeable
Context used to fetch the
stored_fields
.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionfield)
Adds a field namefield
to the list of fields to load.<> fieldNames)
Adds the field namesfieldNames
to the list of fields to load.boolean
o)
boolean
Returns 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 StoredFieldsContext
<> fieldNames)
static StoredFieldsContext
name, RestRequest request)
static StoredFieldsContext
fieldName, org.elasticsearch.common.xcontent.XContentParser parser)
int
hashCode()
void
preferredName, org.elasticsearch.common.xcontent.XContentBuilder builder)
void
writeTo(StreamOutput out)
Write this into the StreamOutput.Methods inherited from class java.lang.
, , , , , , , ,
-
Field Details
-
_NONE_
public static final _NONE_- See Also:
- Constant Field Values
-
-
Constructor Details
-
StoredFieldsContext
-
StoredFieldsContext
- Throws:
-
-
Method Details
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput. -
fieldNames
public <> fieldNames()Gets the field names to load and return as part of the search request. -
addFieldNames
public <> fieldNames)Adds the field namesfieldNames
to the list of fields to load. -
addFieldName
public field)Adds a field namefield
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)
-