Record Class JoinConfig
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.esql.plan.logical.join.JoinConfig
- Record Components:
matchFields- fields either from the left or right fields which decide which side is keptleftFields- matched with the right fieldsrightFields- matched with the left fields
- All Implemented Interfaces:
Writeable
public record JoinConfig(JoinType type, List<Attribute> matchFields, List<Attribute> leftFields, List<Attribute> rightFields)
extends Record
implements Writeable
Configuration for a
JOIN style operation.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanfinal inthashCode()Returns a hash code value for this object.Returns the value of theleftFieldsrecord component.Returns the value of thematchFieldsrecord component.Returns the value of therightFieldsrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.voidwriteTo(StreamOutput out)
-
Constructor Details
-
JoinConfig
- Throws:
IOException
-
JoinConfig
public JoinConfig(JoinType type, List<Attribute> matchFields, List<Attribute> leftFields, List<Attribute> rightFields) Creates an instance of aJoinConfigrecord class.- Parameters:
type- the value for thetyperecord componentmatchFields- the value for thematchFieldsrecord componentleftFields- the value for theleftFieldsrecord componentrightFields- the value for therightFieldsrecord component
-
-
Method Details
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
expressionsResolved
public boolean expressionsResolved() -
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. All components in this record class are compared withObjects::equals(Object,Object). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
matchFields
Returns the value of thematchFieldsrecord component.- Returns:
- the value of the
matchFieldsrecord component
-
leftFields
Returns the value of theleftFieldsrecord component.- Returns:
- the value of the
leftFieldsrecord component
-
rightFields
Returns the value of therightFieldsrecord component.- Returns:
- the value of the
rightFieldsrecord component
-