Package ai.rapids.cudf.ast
Class CompiledExpression
java.lang.Object
ai.rapids.cudf.ast.CompiledExpression
- All Implemented Interfaces:
AutoCloseable
This class wraps a native compiled AST and must be closed to avoid native memory leaks.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()computeColumn(Table table) Compute a new column by applying this AST expression to the specified table.longReturns the native address of a compiled expression.
-
Method Details
-
computeColumn
Compute a new column by applying this AST expression to the specified table. AllColumnReferenceinstances 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:
closein interfaceAutoCloseable
-
getNativeHandle
public long getNativeHandle()Returns the native address of a compiled expression. Intended for internal cudf use only.
-