Class TypedAttribute

All Implemented Interfaces:
NamedWriteable, Writeable, Resolvable
Direct Known Subclasses:
FieldAttribute, MetadataAttribute, ReferenceAttribute

public abstract class TypedAttribute extends Attribute
A fully resolved attribute - we know its type. For example, if it references data directly from Lucene, this will be a FieldAttribute. If it references the results of another calculation it will be ReferenceAttributes.
  • Constructor Details

  • Method Details

    • dataType

      public DataType dataType()
      Description copied from class: Expression
      The DataType returned by executing the tree rooted at this expression. If Expression.typeResolved() returns an error then the behavior of this method is undefined. It may return a valid type. Or it may throw an exception. Or it may return a totally nonsensical type.
      Specified by:
      dataType in class Expression
    • innerHashCode

      protected int innerHashCode(boolean ignoreIds)
      Overrides:
      innerHashCode in class Attribute
    • 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 Attribute