Class CompiledExpression

java.lang.Object
ai.rapids.cudf.ast.CompiledExpression
All Implemented Interfaces:
AutoCloseable

public class CompiledExpression extends Object implements AutoCloseable
This class wraps a native compiled AST and must be closed to avoid native memory leaks.
  • Method Details

    • computeColumn

      public ColumnVector computeColumn(Table table)
      Compute a new column by applying this AST expression to the specified table. All ColumnReference instances within the expression will use the sole input table, even if they try to specify a non-existent table, e.g.: TableReference.RIGHT.
      Parameters:
      table - input table for this expression
      Returns:
      new column computed from this expression applied to the input table
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • getNativeHandle

      public long getNativeHandle()
      Returns the native address of a compiled expression. Intended for internal cudf use only.