Module org.elasticsearch.server
Record Class LookupField
java.lang.Object
java.lang.Record
org.elasticsearch.search.fetch.subphase.LookupField
- All Implemented Interfaces:
Writeable
public record LookupField(String targetIndex, QueryBuilder query, List<FieldAndFormat> fetchFields, int size)
extends Record
implements Writeable
A
LookupField is an **unresolved** fetch field whose values will be resolved later
in the fetch phase on the coordinating node.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Constructor Summary
ConstructorsConstructorDescriptionLookupField(String targetIndex, QueryBuilder query, List<FieldAndFormat> fetchFields, int size) Creates an instance of aLookupFieldrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefetchFieldsrecord component.final inthashCode()Returns a hash code value for this object.query()Returns the value of thequeryrecord component.intsize()Returns the value of thesizerecord component.Returns the value of thetargetIndexrecord component.toSearchRequest(String clusterAlias) final StringtoString()Returns a string representation of this record class.voidwriteTo(StreamOutput out) Write this into the StreamOutput.
-
Constructor Details
-
LookupField
- Throws:
IOException
-
LookupField
public LookupField(String targetIndex, QueryBuilder query, List<FieldAndFormat> fetchFields, int size) Creates an instance of aLookupFieldrecord class.- Parameters:
targetIndex- the value for thetargetIndexrecord componentquery- the value for thequeryrecord componentfetchFields- the value for thefetchFieldsrecord componentsize- the value for thesizerecord component
-
-
Method Details
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
toSearchRequest
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
targetIndex
Returns the value of thetargetIndexrecord component.- Returns:
- the value of the
targetIndexrecord component
-
query
Returns the value of thequeryrecord component.- Returns:
- the value of the
queryrecord component
-
fetchFields
Returns the value of thefetchFieldsrecord component.- Returns:
- the value of the
fetchFieldsrecord component
-
size
public int size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-