Class TemporalityAttribute

All Implemented Interfaces:
NamedWriteable, Writeable, Resolvable

public final class TemporalityAttribute extends TypedAttribute
Attribute for referencing the TSDB metric temporality. The name of the field is defined per index using the IndexSettings.TIME_SERIES_TEMPORALITY_FIELD index setting. If an index does not have this setting, the temporality will always be null.
  • Field Details

  • Constructor Details

    • TemporalityAttribute

      public TemporalityAttribute(Source source)
  • Method Details

    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Throws:
      IOException
    • readFrom

      public static TemporalityAttribute readFrom(StreamInput in) throws IOException
      Throws:
      IOException
    • getWriteableName

      public String getWriteableName()
    • 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.

      Specified by:
      info in class Node<Expression>
    • clone

      protected TemporalityAttribute clone(Source source, String qualifier, String name, DataType type, Nullability nullability, NameId id, boolean synthetic)
      Specified by:
      clone in class Attribute
    • label

      protected String label()
      Specified by:
      label in class Attribute
    • isDimension

      public boolean isDimension()
      Specified by:
      isDimension in class Attribute
      Returns:
      true if the attribute represents a TSDB dimension type
    • isMetric

      public boolean isMetric()
      Specified by:
      isMetric in class Attribute
      Returns:
      true if the attribute represents a TSDB metric type