Record Class ResolvedEnrichPolicy
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.esql.enrich.ResolvedEnrichPolicy
- All Implemented Interfaces:
Writeable
-
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 TypeMethodDescriptionReturns the value of theconcreteIndicesrecord component.Returns the value of theenrichFieldsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.mapping()Returns the value of themappingrecord component.Returns the value of thematchFieldrecord component.Returns the value of thematchTyperecord component.final StringtoString()Returns a string representation of this record class.voidwriteTo(StreamOutput out)
-
Constructor Details
-
ResolvedEnrichPolicy
- Throws:
IOException
-
ResolvedEnrichPolicy
public ResolvedEnrichPolicy(String matchField, String matchType, List<String> enrichFields, Map<String, String> concreteIndices, Map<String, EsField> mapping) Creates an instance of aResolvedEnrichPolicyrecord class.- Parameters:
matchField- the value for thematchFieldrecord componentmatchType- the value for thematchTyperecord componentenrichFields- the value for theenrichFieldsrecord componentconcreteIndices- the value for theconcreteIndicesrecord componentmapping- the value for themappingrecord component
-
-
Method Details
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
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). -
matchField
Returns the value of thematchFieldrecord component.- Returns:
- the value of the
matchFieldrecord component
-
matchType
Returns the value of thematchTyperecord component.- Returns:
- the value of the
matchTyperecord component
-
enrichFields
Returns the value of theenrichFieldsrecord component.- Returns:
- the value of the
enrichFieldsrecord component
-
concreteIndices
Returns the value of theconcreteIndicesrecord component.- Returns:
- the value of the
concreteIndicesrecord component
-
mapping
Returns the value of themappingrecord component.- Returns:
- the value of the
mappingrecord component
-