Class TimeSeriesMetadataAttribute

All Implemented Interfaces:
NamedWriteable, Writeable, Resolvable

public final class TimeSeriesMetadataAttribute extends FieldAttribute
Field attribute for _timeseries field
  • Constructor Details

    • TimeSeriesMetadataAttribute

      public TimeSeriesMetadataAttribute(Source source, Set<String> withoutFields)
    • TimeSeriesMetadataAttribute

      public TimeSeriesMetadataAttribute(Source source, @Nullable String parentName, @Nullable String qualifier, String name, EsField field, Nullability nullability, @Nullable NameId id, boolean synthetic, Set<String> withoutFields)
  • Method Details

    • from

      public static TimeSeriesMetadataAttribute from(Attribute attribute, Set<String> withoutFields)
      Builds a _timeseries attribute from an existing attribute while preserving its identity.
    • withoutFields

      public Set<String> withoutFields()
    • info

      protected NodeInfo<? extends Expression> info()
      Description copied from class: Node
      Normally, you want to use one of the static create methods to implement this.

      For QueryPlans, it is very important that the properties contain all of the expressions and references relevant to this node, and that all the properties are used in the provided constructor; otherwise query plan transformations like QueryPlan#transformExpressionsOnly(Function) will not have an effect.

      Overrides:
      info in class FieldAttribute
    • clone

      protected Attribute clone(Source source, String qualifier, String name, DataType type, Nullability nullability, NameId id, boolean synthetic)
      Overrides:
      clone in class FieldAttribute
    • innerHashCode

      protected int innerHashCode(boolean ignoreIds)
      Overrides:
      innerHashCode in class FieldAttribute
    • innerEquals

      protected boolean innerEquals(Object o, boolean ignoreIds)
      Description copied from class: NamedExpression
      The actual equality check, after shortcutting this == o and class checks.
      Overrides:
      innerEquals in class FieldAttribute