public final class Literal extends AstExpression
AstExpression.ExpressionType
Modifier and Type | Method and Description |
---|---|
static Literal |
ofBoolean(boolean value)
Construct a boolean literal with the specified value.
|
static Literal |
ofBoolean(Boolean value)
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 |
ofByte(Byte value)
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 |
ofDouble(Double value)
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 |
ofFloat(Float value)
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 |
ofInt(Integer value)
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 |
ofLong(Long value)
Construct a long literal with the specified value or null.
|
static Literal |
ofNull(DType type)
Construct a null literal of the specified type.
|
static Literal |
ofShort(short value)
Construct a short literal with the specified value.
|
static Literal |
ofShort(Short value)
Construct a short literal with the specified value or null.
|
static Literal |
ofString(String value)
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.
|
compile
public static Literal ofBoolean(boolean value)
public static Literal ofBoolean(Boolean value)
public static Literal ofByte(byte value)
public static Literal ofByte(Byte value)
public static Literal ofShort(short value)
public static Literal ofShort(Short value)
public static Literal ofInt(int value)
public static Literal ofInt(Integer value)
public static Literal ofLong(long value)
public static Literal ofLong(Long value)
public static Literal ofFloat(float value)
public static Literal ofFloat(Float value)
public static Literal ofDouble(double value)
public static Literal ofDouble(Double value)
public static Literal ofTimestampDaysFromInt(int value)
public static Literal ofTimestampDaysFromInt(Integer value)
public static Literal ofTimestampFromLong(DType type, long value)
public static Literal ofTimestampFromLong(DType type, Long value)
public static Literal ofDurationDaysFromInt(int value)
public static Literal ofDurationDaysFromInt(Integer value)
public static Literal ofDurationFromLong(DType type, long value)
public static Literal ofDurationFromLong(DType type, Long value)
public static Literal ofString(String value)
public static Literal ofUTF8String(byte[] stringBytes)
Copyright © 2024. All rights reserved.