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
ConstructorDescriptionLookupField
(String targetIndex, QueryBuilder query, List<FieldAndFormat> fetchFields, int size) Creates an instance of aLookupField
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefetchFields
record component.final int
hashCode()
Returns a hash code value for this object.query()
Returns the value of thequery
record component.int
size()
Returns the value of thesize
record component.Returns the value of thetargetIndex
record component.toSearchRequest
(String clusterAlias) final String
toString()
Returns a string representation of this record class.void
writeTo
(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 aLookupField
record class.- Parameters:
targetIndex
- the value for thetargetIndex
record componentquery
- the value for thequery
record componentfetchFields
- the value for thefetchFields
record componentsize
- the value for thesize
record component
-
-
Method Details
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in 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 thetargetIndex
record component.- Returns:
- the value of the
targetIndex
record component
-
query
Returns the value of thequery
record component.- Returns:
- the value of the
query
record component
-
fetchFields
Returns the value of thefetchFields
record component.- Returns:
- the value of the
fetchFields
record component
-
size
public int size()Returns the value of thesize
record component.- Returns:
- the value of the
size
record component
-