Class UnionTypeEsField
java.lang.Object
org.elasticsearch.xpack.esql.core.type.EsField
org.elasticsearch.xpack.esql.core.type.UnionTypeEsField
- All Implemented Interfaces:
Writeable
- Direct Known Subclasses:
CompactMultiTypeEsField,MultiTypeEsField
public abstract sealed class UnionTypeEsField
extends EsField
permits MultiTypeEsField, CompactMultiTypeEsField
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.xpack.esql.core.type.EsField
EsField.Exact, EsField.TimeSeriesFieldTypeNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Constructor Summary
ConstructorsConstructorDescriptionUnionTypeEsField(String name, DataType esDataType, Map<String, EsField> properties, boolean aggregatable, EsField.TimeSeriesFieldType timeSeriesFieldType) -
Method Summary
Modifier and TypeMethodDescriptionabstract Collection<Expression> abstract ExpressionConversion expression to apply when the field is unmapped in the index (treating it asDataType.KEYWORD) ornullif there is no such conversion (i.e., unmapped indices should producenull).abstract UnionTypeEsFieldrewrapWithCast(Expression convertExpression) Wraps an existing union-type field's per-(index|type) conversions with another conversion expression on top, so the composite expression first does the original cast then the additional cast.abstract UnionTypeEsFieldwithPotentiallyUnmappedExpression(Expression unmappedExpression) Returns a copy of this field with the given unmapped conversion expression.Methods inherited from class org.elasticsearch.xpack.esql.core.type.EsField
equals, getDataType, getExactField, getExactInfo, getName, getNodeStringName, getProperties, getReader, getTimeSeriesFieldType, getWriteableName, hashCode, isAggregatable, isAlias, readFrom, readTimeSeriesFieldType, toString, withDataType, withWidenedSmallNumeric, writeContent, writeTimeSeriesFieldType, writeTo
-
Constructor Details
-
UnionTypeEsField
-
-
Method Details
-
getUnmappedConversionExpression
Conversion expression to apply when the field is unmapped in the index (treating it asDataType.KEYWORD) ornullif there is no such conversion (i.e., unmapped indices should producenull). -
getConversionExpressions
-
rewrapWithCast
Wraps an existing union-type field's per-(index|type) conversions with another conversion expression on top, so the composite expression first does the original cast then the additional cast. -
withPotentiallyUnmappedExpression
Returns a copy of this field with the given unmapped conversion expression.
-