Class BoundTransform<S,T>

java.lang.Object
org.apache.iceberg.expressions.BoundTransform<S,T>
Type Parameters:
S - the Java type of values transformed by this function.
T - the Java type of values returned by the function.
All Implemented Interfaces:
Serializable, Bound<T>, BoundTerm<T>, Term

public class BoundTransform<S,T> extends Object implements BoundTerm<T>
A transform expression.
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<S>
      Parameters:
      struct - a struct of incoming data
      Returns:
      the value of this expression when evaluated on the incoming struct
    • ref

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

      public Transform<S,T> transform()
    • type

      public Type type()
      Description copied from interface: BoundTerm
      Returns the type produced by this expression.
      Specified by:
      type in interface BoundTerm<S>
    • 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<S>
      Parameters:
      other - a term
      Returns:
      true if this term returns the same values as the other, false otherwise
    • toString

      public String toString()
      Overrides:
      toString in class Object