Class BoundReference<T>

java.lang.Object
org.apache.iceberg.expressions.BoundReference<T>
All Implemented Interfaces:
Serializable, Bound<T>, BoundTerm<T>, Reference<T>, Term

public class BoundReference<T> extends Object implements BoundTerm<T>, Reference<T>
See Also:
  • Method Details

    • eval

      public T eval(StructLike struct)
      Description copied from interface: Bound
      Produce a value from the struct for this expression.
      Specified by:
      eval in interface Bound<T>
      Parameters:
      struct - a struct of incoming data
      Returns:
      the value of this expression when evaluated on the incoming struct
    • field

      public Types.NestedField field()
    • ref

      public BoundReference<T> ref()
      Description copied from interface: Bound
      Returns the underlying reference.
      Specified by:
      ref in interface Bound<T>
    • type

      public Type type()
      Description copied from interface: BoundTerm
      Returns the type produced by this expression.
      Specified by:
      type in interface BoundTerm<T>
    • name

      public String name()
      Specified by:
      name in interface Reference<T>
    • isEquivalentTo

      public boolean isEquivalentTo(BoundTerm<?> other)
      Description copied from interface: BoundTerm
      Returns whether this term is equivalent to another.
      Specified by:
      isEquivalentTo in interface BoundTerm<T>
      Parameters:
      other - a term
      Returns:
      true if this term returns the same values as the other, false otherwise
    • fieldId

      public int fieldId()
    • accessor

      public Accessor<StructLike> accessor()
    • toString

      public String toString()
      Overrides:
      toString in class Object