Package io.substrait.proto
Interface Expression.LiteralOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Expression.Literal,Expression.Literal.Builder
- Enclosing class:
- Expression
public static interface Expression.LiteralOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.protobuf.ByteStringbytes binary = 13;booleanbool boolean = 1;intgetDate()Date in units of days since the UNIX epoch..substrait.Expression.Literal.Decimal decimal = 24;.substrait.Expression.Literal.Decimal decimal = 24;.substrait.Type.List empty_list = 31;.substrait.Type.List empty_list = 31;.substrait.Type.Map empty_map = 32;.substrait.Type.Map empty_map = 32;com.google.protobuf.ByteStringbytes fixed_binary = 23;string fixed_char = 21;com.google.protobuf.ByteStringstring fixed_char = 21;floatgetFp32()float fp32 = 10;doublegetFp64()double fp64 = 11;intgetI16()int32 i16 = 3;intgetI32()int32 i32 = 5;longgetI64()int64 i64 = 7;intgetI8()int32 i8 = 2;.substrait.Expression.Literal.IntervalCompound interval_compound = 36;.substrait.Expression.Literal.IntervalCompound interval_compound = 36;.substrait.Expression.Literal.IntervalDayToSecond interval_day_to_second = 20;.substrait.Expression.Literal.IntervalDayToSecond interval_day_to_second = 20;.substrait.Expression.Literal.IntervalYearToMonth interval_year_to_month = 19;.substrait.Expression.Literal.IntervalYearToMonth interval_year_to_month = 19;getList().substrait.Expression.Literal.List list = 30;.substrait.Expression.Literal.List list = 30;getMap().substrait.Expression.Literal.Map map = 26;.substrait.Expression.Literal.Map map = 26;getNull()a typed null literalbooleanWhether the literal_type above should be treated as a nullable type.a typed null literalTime in precision units past midnight.Time in precision units past midnight..substrait.Expression.Literal.PrecisionTimestamp precision_timestamp = 34;.substrait.Expression.Literal.PrecisionTimestamp precision_timestamp = 34;.substrait.Expression.Literal.PrecisionTimestamp precision_timestamp_tz = 35;.substrait.Expression.Literal.PrecisionTimestamp precision_timestamp_tz = 35;string string = 12;com.google.protobuf.ByteStringstring string = 12;.substrait.Expression.Literal.Struct struct = 25;.substrait.Expression.Literal.Struct struct = 25;longgetTime()Time in units of microseconds past midnight.longDeprecated.substrait.Expression.Literal.timestamp is deprecated.longDeprecated.substrait.Expression.Literal.timestamp_tz is deprecated.intoptionally points to a type_variation_anchor defined in this plan..substrait.Expression.Literal.UserDefined user_defined = 33;.substrait.Expression.Literal.UserDefined user_defined = 33;com.google.protobuf.ByteStringgetUuid()bytes uuid = 28;.substrait.Expression.Literal.VarChar var_char = 22;.substrait.Expression.Literal.VarChar var_char = 22;booleanbytes binary = 13;booleanbool boolean = 1;booleanhasDate()Date in units of days since the UNIX epoch.boolean.substrait.Expression.Literal.Decimal decimal = 24;boolean.substrait.Type.List empty_list = 31;boolean.substrait.Type.Map empty_map = 32;booleanbytes fixed_binary = 23;booleanstring fixed_char = 21;booleanhasFp32()float fp32 = 10;booleanhasFp64()double fp64 = 11;booleanhasI16()int32 i16 = 3;booleanhasI32()int32 i32 = 5;booleanhasI64()int64 i64 = 7;booleanhasI8()int32 i8 = 2;boolean.substrait.Expression.Literal.IntervalCompound interval_compound = 36;boolean.substrait.Expression.Literal.IntervalDayToSecond interval_day_to_second = 20;boolean.substrait.Expression.Literal.IntervalYearToMonth interval_year_to_month = 19;booleanhasList().substrait.Expression.Literal.List list = 30;booleanhasMap().substrait.Expression.Literal.Map map = 26;booleanhasNull()a typed null literalbooleanTime in precision units past midnight.boolean.substrait.Expression.Literal.PrecisionTimestamp precision_timestamp = 34;boolean.substrait.Expression.Literal.PrecisionTimestamp precision_timestamp_tz = 35;booleanstring string = 12;boolean.substrait.Expression.Literal.Struct struct = 25;booleanhasTime()Time in units of microseconds past midnight.booleanDeprecated.substrait.Expression.Literal.timestamp is deprecated.booleanDeprecated.substrait.Expression.Literal.timestamp_tz is deprecated.boolean.substrait.Expression.Literal.UserDefined user_defined = 33;booleanhasUuid()bytes uuid = 28;boolean.substrait.Expression.Literal.VarChar var_char = 22;Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasBoolean
boolean hasBoolean()bool boolean = 1;- Returns:
- Whether the boolean field is set.
-
getBoolean
boolean getBoolean()bool boolean = 1;- Returns:
- The boolean.
-
hasI8
boolean hasI8()int32 i8 = 2;- Returns:
- Whether the i8 field is set.
-
getI8
int getI8()int32 i8 = 2;- Returns:
- The i8.
-
hasI16
boolean hasI16()int32 i16 = 3;- Returns:
- Whether the i16 field is set.
-
getI16
int getI16()int32 i16 = 3;- Returns:
- The i16.
-
hasI32
boolean hasI32()int32 i32 = 5;- Returns:
- Whether the i32 field is set.
-
getI32
int getI32()int32 i32 = 5;- Returns:
- The i32.
-
hasI64
boolean hasI64()int64 i64 = 7;- Returns:
- Whether the i64 field is set.
-
getI64
long getI64()int64 i64 = 7;- Returns:
- The i64.
-
hasFp32
boolean hasFp32()float fp32 = 10;- Returns:
- Whether the fp32 field is set.
-
getFp32
float getFp32()float fp32 = 10;- Returns:
- The fp32.
-
hasFp64
boolean hasFp64()double fp64 = 11;- Returns:
- Whether the fp64 field is set.
-
getFp64
double getFp64()double fp64 = 11;- Returns:
- The fp64.
-
hasString
boolean hasString()string string = 12;- Returns:
- Whether the string field is set.
-
getString
String getString()string string = 12;- Returns:
- The string.
-
getStringBytes
com.google.protobuf.ByteString getStringBytes()string string = 12;- Returns:
- The bytes for string.
-
hasBinary
boolean hasBinary()bytes binary = 13;- Returns:
- Whether the binary field is set.
-
getBinary
com.google.protobuf.ByteString getBinary()bytes binary = 13;- Returns:
- The binary.
-
hasTimestamp
Deprecated.substrait.Expression.Literal.timestamp is deprecated. See substrait/algebra.proto;l=1002Timestamp in units of microseconds since the UNIX epoch. Deprecated in favor of `precision_timestamp`.
int64 timestamp = 14 [deprecated = true];- Returns:
- Whether the timestamp field is set.
-
getTimestamp
Deprecated.substrait.Expression.Literal.timestamp is deprecated. See substrait/algebra.proto;l=1002Timestamp in units of microseconds since the UNIX epoch. Deprecated in favor of `precision_timestamp`.
int64 timestamp = 14 [deprecated = true];- Returns:
- The timestamp.
-
hasDate
boolean hasDate()Date in units of days since the UNIX epoch.
int32 date = 16;- Returns:
- Whether the date field is set.
-
getDate
int getDate()Date in units of days since the UNIX epoch.
int32 date = 16;- Returns:
- The date.
-
hasTime
boolean hasTime()Time in units of microseconds past midnight. Deprecated in favor of `precision_time`.
int64 time = 17;- Returns:
- Whether the time field is set.
-
getTime
long getTime()Time in units of microseconds past midnight. Deprecated in favor of `precision_time`.
int64 time = 17;- Returns:
- The time.
-
hasIntervalYearToMonth
boolean hasIntervalYearToMonth().substrait.Expression.Literal.IntervalYearToMonth interval_year_to_month = 19;- Returns:
- Whether the intervalYearToMonth field is set.
-
getIntervalYearToMonth
Expression.Literal.IntervalYearToMonth getIntervalYearToMonth().substrait.Expression.Literal.IntervalYearToMonth interval_year_to_month = 19;- Returns:
- The intervalYearToMonth.
-
getIntervalYearToMonthOrBuilder
Expression.Literal.IntervalYearToMonthOrBuilder getIntervalYearToMonthOrBuilder().substrait.Expression.Literal.IntervalYearToMonth interval_year_to_month = 19; -
hasIntervalDayToSecond
boolean hasIntervalDayToSecond().substrait.Expression.Literal.IntervalDayToSecond interval_day_to_second = 20;- Returns:
- Whether the intervalDayToSecond field is set.
-
getIntervalDayToSecond
Expression.Literal.IntervalDayToSecond getIntervalDayToSecond().substrait.Expression.Literal.IntervalDayToSecond interval_day_to_second = 20;- Returns:
- The intervalDayToSecond.
-
getIntervalDayToSecondOrBuilder
Expression.Literal.IntervalDayToSecondOrBuilder getIntervalDayToSecondOrBuilder().substrait.Expression.Literal.IntervalDayToSecond interval_day_to_second = 20; -
hasIntervalCompound
boolean hasIntervalCompound().substrait.Expression.Literal.IntervalCompound interval_compound = 36;- Returns:
- Whether the intervalCompound field is set.
-
getIntervalCompound
Expression.Literal.IntervalCompound getIntervalCompound().substrait.Expression.Literal.IntervalCompound interval_compound = 36;- Returns:
- The intervalCompound.
-
getIntervalCompoundOrBuilder
Expression.Literal.IntervalCompoundOrBuilder getIntervalCompoundOrBuilder().substrait.Expression.Literal.IntervalCompound interval_compound = 36; -
hasFixedChar
boolean hasFixedChar()string fixed_char = 21;- Returns:
- Whether the fixedChar field is set.
-
getFixedChar
String getFixedChar()string fixed_char = 21;- Returns:
- The fixedChar.
-
getFixedCharBytes
com.google.protobuf.ByteString getFixedCharBytes()string fixed_char = 21;- Returns:
- The bytes for fixedChar.
-
hasVarChar
boolean hasVarChar().substrait.Expression.Literal.VarChar var_char = 22;- Returns:
- Whether the varChar field is set.
-
getVarChar
Expression.Literal.VarChar getVarChar().substrait.Expression.Literal.VarChar var_char = 22;- Returns:
- The varChar.
-
getVarCharOrBuilder
Expression.Literal.VarCharOrBuilder getVarCharOrBuilder().substrait.Expression.Literal.VarChar var_char = 22; -
hasFixedBinary
boolean hasFixedBinary()bytes fixed_binary = 23;- Returns:
- Whether the fixedBinary field is set.
-
getFixedBinary
com.google.protobuf.ByteString getFixedBinary()bytes fixed_binary = 23;- Returns:
- The fixedBinary.
-
hasDecimal
boolean hasDecimal().substrait.Expression.Literal.Decimal decimal = 24;- Returns:
- Whether the decimal field is set.
-
getDecimal
Expression.Literal.Decimal getDecimal().substrait.Expression.Literal.Decimal decimal = 24;- Returns:
- The decimal.
-
getDecimalOrBuilder
Expression.Literal.DecimalOrBuilder getDecimalOrBuilder().substrait.Expression.Literal.Decimal decimal = 24; -
hasPrecisionTime
boolean hasPrecisionTime()Time in precision units past midnight.
.substrait.Expression.Literal.PrecisionTime precision_time = 37;- Returns:
- Whether the precisionTime field is set.
-
getPrecisionTime
Expression.Literal.PrecisionTime getPrecisionTime()Time in precision units past midnight.
.substrait.Expression.Literal.PrecisionTime precision_time = 37;- Returns:
- The precisionTime.
-
getPrecisionTimeOrBuilder
Expression.Literal.PrecisionTimeOrBuilder getPrecisionTimeOrBuilder()Time in precision units past midnight.
.substrait.Expression.Literal.PrecisionTime precision_time = 37; -
hasPrecisionTimestamp
boolean hasPrecisionTimestamp().substrait.Expression.Literal.PrecisionTimestamp precision_timestamp = 34;- Returns:
- Whether the precisionTimestamp field is set.
-
getPrecisionTimestamp
Expression.Literal.PrecisionTimestamp getPrecisionTimestamp().substrait.Expression.Literal.PrecisionTimestamp precision_timestamp = 34;- Returns:
- The precisionTimestamp.
-
getPrecisionTimestampOrBuilder
Expression.Literal.PrecisionTimestampOrBuilder getPrecisionTimestampOrBuilder().substrait.Expression.Literal.PrecisionTimestamp precision_timestamp = 34; -
hasPrecisionTimestampTz
boolean hasPrecisionTimestampTz().substrait.Expression.Literal.PrecisionTimestamp precision_timestamp_tz = 35;- Returns:
- Whether the precisionTimestampTz field is set.
-
getPrecisionTimestampTz
Expression.Literal.PrecisionTimestamp getPrecisionTimestampTz().substrait.Expression.Literal.PrecisionTimestamp precision_timestamp_tz = 35;- Returns:
- The precisionTimestampTz.
-
getPrecisionTimestampTzOrBuilder
Expression.Literal.PrecisionTimestampOrBuilder getPrecisionTimestampTzOrBuilder().substrait.Expression.Literal.PrecisionTimestamp precision_timestamp_tz = 35; -
hasStruct
boolean hasStruct().substrait.Expression.Literal.Struct struct = 25;- Returns:
- Whether the struct field is set.
-
getStruct
Expression.Literal.Struct getStruct().substrait.Expression.Literal.Struct struct = 25;- Returns:
- The struct.
-
getStructOrBuilder
Expression.Literal.StructOrBuilder getStructOrBuilder().substrait.Expression.Literal.Struct struct = 25; -
hasMap
boolean hasMap().substrait.Expression.Literal.Map map = 26;- Returns:
- Whether the map field is set.
-
getMap
Expression.Literal.Map getMap().substrait.Expression.Literal.Map map = 26;- Returns:
- The map.
-
getMapOrBuilder
Expression.Literal.MapOrBuilder getMapOrBuilder().substrait.Expression.Literal.Map map = 26; -
hasTimestampTz
Deprecated.substrait.Expression.Literal.timestamp_tz is deprecated. See substrait/algebra.proto;l=1023Timestamp in units of microseconds since the UNIX epoch. Deprecated in favor of `precision_timestamp_tz`
int64 timestamp_tz = 27 [deprecated = true];- Returns:
- Whether the timestampTz field is set.
-
getTimestampTz
Deprecated.substrait.Expression.Literal.timestamp_tz is deprecated. See substrait/algebra.proto;l=1023Timestamp in units of microseconds since the UNIX epoch. Deprecated in favor of `precision_timestamp_tz`
int64 timestamp_tz = 27 [deprecated = true];- Returns:
- The timestampTz.
-
hasUuid
boolean hasUuid()bytes uuid = 28;- Returns:
- Whether the uuid field is set.
-
getUuid
com.google.protobuf.ByteString getUuid()bytes uuid = 28;- Returns:
- The uuid.
-
hasNull
boolean hasNull()a typed null literal
.substrait.Type null = 29;- Returns:
- Whether the null field is set.
-
getNull
Type getNull()a typed null literal
.substrait.Type null = 29;- Returns:
- The null.
-
getNullOrBuilder
TypeOrBuilder getNullOrBuilder()a typed null literal
.substrait.Type null = 29; -
hasList
boolean hasList().substrait.Expression.Literal.List list = 30;- Returns:
- Whether the list field is set.
-
getList
Expression.Literal.List getList().substrait.Expression.Literal.List list = 30;- Returns:
- The list.
-
getListOrBuilder
Expression.Literal.ListOrBuilder getListOrBuilder().substrait.Expression.Literal.List list = 30; -
hasEmptyList
boolean hasEmptyList().substrait.Type.List empty_list = 31;- Returns:
- Whether the emptyList field is set.
-
getEmptyList
Type.List getEmptyList().substrait.Type.List empty_list = 31;- Returns:
- The emptyList.
-
getEmptyListOrBuilder
Type.ListOrBuilder getEmptyListOrBuilder().substrait.Type.List empty_list = 31; -
hasEmptyMap
boolean hasEmptyMap().substrait.Type.Map empty_map = 32;- Returns:
- Whether the emptyMap field is set.
-
getEmptyMap
Type.Map getEmptyMap().substrait.Type.Map empty_map = 32;- Returns:
- The emptyMap.
-
getEmptyMapOrBuilder
Type.MapOrBuilder getEmptyMapOrBuilder().substrait.Type.Map empty_map = 32; -
hasUserDefined
boolean hasUserDefined().substrait.Expression.Literal.UserDefined user_defined = 33;- Returns:
- Whether the userDefined field is set.
-
getUserDefined
Expression.Literal.UserDefined getUserDefined().substrait.Expression.Literal.UserDefined user_defined = 33;- Returns:
- The userDefined.
-
getUserDefinedOrBuilder
Expression.Literal.UserDefinedOrBuilder getUserDefinedOrBuilder().substrait.Expression.Literal.UserDefined user_defined = 33; -
getNullable
boolean getNullable()Whether the literal_type above should be treated as a nullable type. Applies to all members of the literal_type oneof EXCEPT: * Type null (must be nullable by definition) * Type.List empty_list (use Type.List::nullability) * Type.Map empty_map (use Type.Map::nullability)
bool nullable = 50;- Returns:
- The nullable.
-
getTypeVariationReference
int getTypeVariationReference()optionally points to a type_variation_anchor defined in this plan. Applies to all members of union other than the Typed null (which should directly declare the type variation).
uint32 type_variation_reference = 51;- Returns:
- The typeVariationReference.
-
getLiteralTypeCase
Expression.Literal.LiteralTypeCase getLiteralTypeCase()
-