Class Expression

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.substrait.proto.Expression
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ExpressionOrBuilder, Serializable

public final class Expression extends com.google.protobuf.GeneratedMessageV3 implements ExpressionOrBuilder
Protobuf type substrait.Expression
See Also:
  • Field Details

    • LITERAL_FIELD_NUMBER

      public static final int LITERAL_FIELD_NUMBER
      See Also:
    • SELECTION_FIELD_NUMBER

      public static final int SELECTION_FIELD_NUMBER
      See Also:
    • SCALAR_FUNCTION_FIELD_NUMBER

      public static final int SCALAR_FUNCTION_FIELD_NUMBER
      See Also:
    • WINDOW_FUNCTION_FIELD_NUMBER

      public static final int WINDOW_FUNCTION_FIELD_NUMBER
      See Also:
    • IF_THEN_FIELD_NUMBER

      public static final int IF_THEN_FIELD_NUMBER
      See Also:
    • SWITCH_EXPRESSION_FIELD_NUMBER

      public static final int SWITCH_EXPRESSION_FIELD_NUMBER
      See Also:
    • SINGULAR_OR_LIST_FIELD_NUMBER

      public static final int SINGULAR_OR_LIST_FIELD_NUMBER
      See Also:
    • MULTI_OR_LIST_FIELD_NUMBER

      public static final int MULTI_OR_LIST_FIELD_NUMBER
      See Also:
    • CAST_FIELD_NUMBER

      public static final int CAST_FIELD_NUMBER
      See Also:
    • SUBQUERY_FIELD_NUMBER

      public static final int SUBQUERY_FIELD_NUMBER
      See Also:
    • NESTED_FIELD_NUMBER

      public static final int NESTED_FIELD_NUMBER
      See Also:
    • DYNAMIC_PARAMETER_FIELD_NUMBER

      public static final int DYNAMIC_PARAMETER_FIELD_NUMBER
      See Also:
    • ENUM_FIELD_NUMBER

      public static final int ENUM_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getRexTypeCase

      public Expression.RexTypeCase getRexTypeCase()
      Specified by:
      getRexTypeCase in interface ExpressionOrBuilder
    • hasLiteral

      public boolean hasLiteral()
      .substrait.Expression.Literal literal = 1;
      Specified by:
      hasLiteral in interface ExpressionOrBuilder
      Returns:
      Whether the literal field is set.
    • getLiteral

      public Expression.Literal getLiteral()
      .substrait.Expression.Literal literal = 1;
      Specified by:
      getLiteral in interface ExpressionOrBuilder
      Returns:
      The literal.
    • getLiteralOrBuilder

      public Expression.LiteralOrBuilder getLiteralOrBuilder()
      .substrait.Expression.Literal literal = 1;
      Specified by:
      getLiteralOrBuilder in interface ExpressionOrBuilder
    • hasSelection

      public boolean hasSelection()
      .substrait.Expression.FieldReference selection = 2;
      Specified by:
      hasSelection in interface ExpressionOrBuilder
      Returns:
      Whether the selection field is set.
    • getSelection

      public Expression.FieldReference getSelection()
      .substrait.Expression.FieldReference selection = 2;
      Specified by:
      getSelection in interface ExpressionOrBuilder
      Returns:
      The selection.
    • getSelectionOrBuilder

      public Expression.FieldReferenceOrBuilder getSelectionOrBuilder()
      .substrait.Expression.FieldReference selection = 2;
      Specified by:
      getSelectionOrBuilder in interface ExpressionOrBuilder
    • hasScalarFunction

      public boolean hasScalarFunction()
      .substrait.Expression.ScalarFunction scalar_function = 3;
      Specified by:
      hasScalarFunction in interface ExpressionOrBuilder
      Returns:
      Whether the scalarFunction field is set.
    • getScalarFunction

      public Expression.ScalarFunction getScalarFunction()
      .substrait.Expression.ScalarFunction scalar_function = 3;
      Specified by:
      getScalarFunction in interface ExpressionOrBuilder
      Returns:
      The scalarFunction.
    • getScalarFunctionOrBuilder

      public Expression.ScalarFunctionOrBuilder getScalarFunctionOrBuilder()
      .substrait.Expression.ScalarFunction scalar_function = 3;
      Specified by:
      getScalarFunctionOrBuilder in interface ExpressionOrBuilder
    • hasWindowFunction

      public boolean hasWindowFunction()
      .substrait.Expression.WindowFunction window_function = 5;
      Specified by:
      hasWindowFunction in interface ExpressionOrBuilder
      Returns:
      Whether the windowFunction field is set.
    • getWindowFunction

      public Expression.WindowFunction getWindowFunction()
      .substrait.Expression.WindowFunction window_function = 5;
      Specified by:
      getWindowFunction in interface ExpressionOrBuilder
      Returns:
      The windowFunction.
    • getWindowFunctionOrBuilder

      public Expression.WindowFunctionOrBuilder getWindowFunctionOrBuilder()
      .substrait.Expression.WindowFunction window_function = 5;
      Specified by:
      getWindowFunctionOrBuilder in interface ExpressionOrBuilder
    • hasIfThen

      public boolean hasIfThen()
      .substrait.Expression.IfThen if_then = 6;
      Specified by:
      hasIfThen in interface ExpressionOrBuilder
      Returns:
      Whether the ifThen field is set.
    • getIfThen

      public Expression.IfThen getIfThen()
      .substrait.Expression.IfThen if_then = 6;
      Specified by:
      getIfThen in interface ExpressionOrBuilder
      Returns:
      The ifThen.
    • getIfThenOrBuilder

      public Expression.IfThenOrBuilder getIfThenOrBuilder()
      .substrait.Expression.IfThen if_then = 6;
      Specified by:
      getIfThenOrBuilder in interface ExpressionOrBuilder
    • hasSwitchExpression

      public boolean hasSwitchExpression()
      .substrait.Expression.SwitchExpression switch_expression = 7;
      Specified by:
      hasSwitchExpression in interface ExpressionOrBuilder
      Returns:
      Whether the switchExpression field is set.
    • getSwitchExpression

      public Expression.SwitchExpression getSwitchExpression()
      .substrait.Expression.SwitchExpression switch_expression = 7;
      Specified by:
      getSwitchExpression in interface ExpressionOrBuilder
      Returns:
      The switchExpression.
    • getSwitchExpressionOrBuilder

      public Expression.SwitchExpressionOrBuilder getSwitchExpressionOrBuilder()
      .substrait.Expression.SwitchExpression switch_expression = 7;
      Specified by:
      getSwitchExpressionOrBuilder in interface ExpressionOrBuilder
    • hasSingularOrList

      public boolean hasSingularOrList()
      .substrait.Expression.SingularOrList singular_or_list = 8;
      Specified by:
      hasSingularOrList in interface ExpressionOrBuilder
      Returns:
      Whether the singularOrList field is set.
    • getSingularOrList

      public Expression.SingularOrList getSingularOrList()
      .substrait.Expression.SingularOrList singular_or_list = 8;
      Specified by:
      getSingularOrList in interface ExpressionOrBuilder
      Returns:
      The singularOrList.
    • getSingularOrListOrBuilder

      public Expression.SingularOrListOrBuilder getSingularOrListOrBuilder()
      .substrait.Expression.SingularOrList singular_or_list = 8;
      Specified by:
      getSingularOrListOrBuilder in interface ExpressionOrBuilder
    • hasMultiOrList

      public boolean hasMultiOrList()
      .substrait.Expression.MultiOrList multi_or_list = 9;
      Specified by:
      hasMultiOrList in interface ExpressionOrBuilder
      Returns:
      Whether the multiOrList field is set.
    • getMultiOrList

      public Expression.MultiOrList getMultiOrList()
      .substrait.Expression.MultiOrList multi_or_list = 9;
      Specified by:
      getMultiOrList in interface ExpressionOrBuilder
      Returns:
      The multiOrList.
    • getMultiOrListOrBuilder

      public Expression.MultiOrListOrBuilder getMultiOrListOrBuilder()
      .substrait.Expression.MultiOrList multi_or_list = 9;
      Specified by:
      getMultiOrListOrBuilder in interface ExpressionOrBuilder
    • hasCast

      public boolean hasCast()
      .substrait.Expression.Cast cast = 11;
      Specified by:
      hasCast in interface ExpressionOrBuilder
      Returns:
      Whether the cast field is set.
    • getCast

      public Expression.Cast getCast()
      .substrait.Expression.Cast cast = 11;
      Specified by:
      getCast in interface ExpressionOrBuilder
      Returns:
      The cast.
    • getCastOrBuilder

      public Expression.CastOrBuilder getCastOrBuilder()
      .substrait.Expression.Cast cast = 11;
      Specified by:
      getCastOrBuilder in interface ExpressionOrBuilder
    • hasSubquery

      public boolean hasSubquery()
      .substrait.Expression.Subquery subquery = 12;
      Specified by:
      hasSubquery in interface ExpressionOrBuilder
      Returns:
      Whether the subquery field is set.
    • getSubquery

      public Expression.Subquery getSubquery()
      .substrait.Expression.Subquery subquery = 12;
      Specified by:
      getSubquery in interface ExpressionOrBuilder
      Returns:
      The subquery.
    • getSubqueryOrBuilder

      public Expression.SubqueryOrBuilder getSubqueryOrBuilder()
      .substrait.Expression.Subquery subquery = 12;
      Specified by:
      getSubqueryOrBuilder in interface ExpressionOrBuilder
    • hasNested

      public boolean hasNested()
      .substrait.Expression.Nested nested = 13;
      Specified by:
      hasNested in interface ExpressionOrBuilder
      Returns:
      Whether the nested field is set.
    • getNested

      public Expression.Nested getNested()
      .substrait.Expression.Nested nested = 13;
      Specified by:
      getNested in interface ExpressionOrBuilder
      Returns:
      The nested.
    • getNestedOrBuilder

      public Expression.NestedOrBuilder getNestedOrBuilder()
      .substrait.Expression.Nested nested = 13;
      Specified by:
      getNestedOrBuilder in interface ExpressionOrBuilder
    • hasDynamicParameter

      public boolean hasDynamicParameter()
      .substrait.DynamicParameter dynamic_parameter = 14;
      Specified by:
      hasDynamicParameter in interface ExpressionOrBuilder
      Returns:
      Whether the dynamicParameter field is set.
    • getDynamicParameter

      public DynamicParameter getDynamicParameter()
      .substrait.DynamicParameter dynamic_parameter = 14;
      Specified by:
      getDynamicParameter in interface ExpressionOrBuilder
      Returns:
      The dynamicParameter.
    • getDynamicParameterOrBuilder

      public DynamicParameterOrBuilder getDynamicParameterOrBuilder()
      .substrait.DynamicParameter dynamic_parameter = 14;
      Specified by:
      getDynamicParameterOrBuilder in interface ExpressionOrBuilder
    • hasEnum

      @Deprecated public boolean hasEnum()
      Deprecated.
      substrait.Expression.enum is deprecated. See substrait/algebra.proto;l=973
       deprecated: enum literals are only sensible in the context of
       function arguments, for which FunctionArgument should now be
       used
       
      .substrait.Expression.Enum enum = 10 [deprecated = true];
      Specified by:
      hasEnum in interface ExpressionOrBuilder
      Returns:
      Whether the enum field is set.
    • getEnum

      @Deprecated public Expression.Enum getEnum()
      Deprecated.
      substrait.Expression.enum is deprecated. See substrait/algebra.proto;l=973
       deprecated: enum literals are only sensible in the context of
       function arguments, for which FunctionArgument should now be
       used
       
      .substrait.Expression.Enum enum = 10 [deprecated = true];
      Specified by:
      getEnum in interface ExpressionOrBuilder
      Returns:
      The enum.
    • getEnumOrBuilder

      @Deprecated public Expression.EnumOrBuilder getEnumOrBuilder()
      Deprecated.
       deprecated: enum literals are only sensible in the context of
       function arguments, for which FunctionArgument should now be
       used
       
      .substrait.Expression.Enum enum = 10 [deprecated = true];
      Specified by:
      getEnumOrBuilder in interface ExpressionOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Expression parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Expression parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Expression parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Expression parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Expression parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Expression parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Expression parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Expression parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Expression parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Expression parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Expression parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Expression parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Expression.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Expression.Builder newBuilder()
    • newBuilder

      public static Expression.Builder newBuilder(Expression prototype)
    • toBuilder

      public Expression.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Expression.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static Expression getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Expression> parser()
    • getParserForType

      public com.google.protobuf.Parser<Expression> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public Expression getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder