Class ReferenceAttribute

All Implemented Interfaces:
NamedWriteable, Writeable, Resolvable

public class ReferenceAttribute extends TypedAttribute
Attribute based on a reference to an expression.
  • Constructor Details

  • Method Details

    • writeTo

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

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

      public String getWriteableName()
    • clone

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

      protected NodeInfo<ReferenceAttribute> 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>
    • 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