Package ai.rapids.cudf.ast
Class Literal
java.lang.Object
ai.rapids.cudf.ast.AstExpression
ai.rapids.cudf.ast.Literal
A literal value in an AST expression.
-
Nested Class Summary
Nested classes/interfaces inherited from class ai.rapids.cudf.ast.AstExpression
AstExpression.ExpressionType
-
Method Summary
Modifier and TypeMethodDescriptionstatic Literal
ofBoolean
(boolean value) Construct a boolean literal with the specified value.static Literal
Construct a boolean literal with the specified value or null.static Literal
ofByte
(byte value) Construct a byte literal with the specified value.static Literal
Construct a byte literal with the specified value or null.static Literal
ofDouble
(double value) Construct a double literal with the specified value.static Literal
Construct a double literal with the specified value or null.static Literal
ofDurationDaysFromInt
(int value) Construct a duration days literal with the specified value.static Literal
ofDurationDaysFromInt
(Integer value) Construct a duration days literal with the specified value or null.static Literal
ofDurationFromLong
(DType type, long value) Construct a long-based duration literal with the specified value.static Literal
ofDurationFromLong
(DType type, Long value) Construct a long-based duration literal with the specified value or null.static Literal
ofFloat
(float value) Construct a float literal with the specified value.static Literal
Construct a float literal with the specified value or null.static Literal
ofInt
(int value) Construct an integer literal with the specified value.static Literal
Construct an integer literal with the specified value or null.static Literal
ofLong
(long value) Construct a long literal with the specified value.static Literal
Construct a long literal with the specified value or null.static Literal
Construct a null literal of the specified type.static Literal
ofShort
(short value) Construct a short literal with the specified value.static Literal
Construct a short literal with the specified value or null.static Literal
Construct a string literal with the specified value or null.static Literal
ofTimestampDaysFromInt
(int value) Construct a timestamp days literal with the specified value.static Literal
ofTimestampDaysFromInt
(Integer value) Construct a timestamp days literal with the specified value or null.static Literal
ofTimestampFromLong
(DType type, long value) Construct a long-based timestamp literal with the specified value.static Literal
ofTimestampFromLong
(DType type, Long value) Construct a long-based timestamp literal with the specified value or null.static Literal
ofUTF8String
(byte[] stringBytes) Construct a string literal directly with byte array to skip transcoding.Methods inherited from class ai.rapids.cudf.ast.AstExpression
compile
-
Method Details
-
ofNull
Construct a null literal of the specified type. -
ofBoolean
Construct a boolean literal with the specified value. -
ofBoolean
Construct a boolean literal with the specified value or null. -
ofByte
Construct a byte literal with the specified value. -
ofByte
Construct a byte literal with the specified value or null. -
ofShort
Construct a short literal with the specified value. -
ofShort
Construct a short literal with the specified value or null. -
ofInt
Construct an integer literal with the specified value. -
ofInt
Construct an integer literal with the specified value or null. -
ofLong
Construct a long literal with the specified value. -
ofLong
Construct a long literal with the specified value or null. -
ofFloat
Construct a float literal with the specified value. -
ofFloat
Construct a float literal with the specified value or null. -
ofDouble
Construct a double literal with the specified value. -
ofDouble
Construct a double literal with the specified value or null. -
ofTimestampDaysFromInt
Construct a timestamp days literal with the specified value. -
ofTimestampDaysFromInt
Construct a timestamp days literal with the specified value or null. -
ofTimestampFromLong
Construct a long-based timestamp literal with the specified value. -
ofTimestampFromLong
Construct a long-based timestamp literal with the specified value or null. -
ofDurationDaysFromInt
Construct a duration days literal with the specified value. -
ofDurationDaysFromInt
Construct a duration days literal with the specified value or null. -
ofDurationFromLong
Construct a long-based duration literal with the specified value. -
ofDurationFromLong
Construct a long-based duration literal with the specified value or null. -
ofString
Construct a string literal with the specified value or null. -
ofUTF8String
Construct a string literal directly with byte array to skip transcoding.
-