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
  • Constructor Details

  • Method Details

    • getUnmappedConversionExpression

      @Nullable public abstract Expression getUnmappedConversionExpression()
      Conversion expression to apply when the field is unmapped in the index (treating it as DataType.KEYWORD) or null if there is no such conversion (i.e., unmapped indices should produce null).
    • getConversionExpressions

      public abstract Collection<Expression> getConversionExpressions()
    • rewrapWithCast

      public abstract UnionTypeEsField rewrapWithCast(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.
    • withPotentiallyUnmappedExpression

      public abstract UnionTypeEsField withPotentiallyUnmappedExpression(Expression unmappedExpression)
      Returns a copy of this field with the given unmapped conversion expression.