Class AggregateRel

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

public final class AggregateRel extends com.google.protobuf.GeneratedMessageV3 implements AggregateRelOrBuilder
 The relational operator representing a GROUP BY Aggregate
 
Protobuf type substrait.AggregateRel
See Also:
  • Field Details

    • COMMON_FIELD_NUMBER

      public static final int COMMON_FIELD_NUMBER
      See Also:
    • INPUT_FIELD_NUMBER

      public static final int INPUT_FIELD_NUMBER
      See Also:
    • GROUPINGS_FIELD_NUMBER

      public static final int GROUPINGS_FIELD_NUMBER
      See Also:
    • MEASURES_FIELD_NUMBER

      public static final int MEASURES_FIELD_NUMBER
      See Also:
    • GROUPING_EXPRESSIONS_FIELD_NUMBER

      public static final int GROUPING_EXPRESSIONS_FIELD_NUMBER
      See Also:
    • ADVANCED_EXTENSION_FIELD_NUMBER

      public static final int ADVANCED_EXTENSION_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
    • hasCommon

      public boolean hasCommon()
      .substrait.RelCommon common = 1;
      Specified by:
      hasCommon in interface AggregateRelOrBuilder
      Returns:
      Whether the common field is set.
    • getCommon

      public RelCommon getCommon()
      .substrait.RelCommon common = 1;
      Specified by:
      getCommon in interface AggregateRelOrBuilder
      Returns:
      The common.
    • getCommonOrBuilder

      public RelCommonOrBuilder getCommonOrBuilder()
      .substrait.RelCommon common = 1;
      Specified by:
      getCommonOrBuilder in interface AggregateRelOrBuilder
    • hasInput

      public boolean hasInput()
       Input of the aggregation
       
      .substrait.Rel input = 2;
      Specified by:
      hasInput in interface AggregateRelOrBuilder
      Returns:
      Whether the input field is set.
    • getInput

      public Rel getInput()
       Input of the aggregation
       
      .substrait.Rel input = 2;
      Specified by:
      getInput in interface AggregateRelOrBuilder
      Returns:
      The input.
    • getInputOrBuilder

      public RelOrBuilder getInputOrBuilder()
       Input of the aggregation
       
      .substrait.Rel input = 2;
      Specified by:
      getInputOrBuilder in interface AggregateRelOrBuilder
    • getGroupingsList

      public List<AggregateRel.Grouping> getGroupingsList()
       A list of zero or more grouping sets that the aggregation measures should
       be calculated for. There must be at least one grouping set if there are no
       measures (but it can be the empty grouping set).
       
      repeated .substrait.AggregateRel.Grouping groupings = 3;
      Specified by:
      getGroupingsList in interface AggregateRelOrBuilder
    • getGroupingsOrBuilderList

      public List<? extends AggregateRel.GroupingOrBuilder> getGroupingsOrBuilderList()
       A list of zero or more grouping sets that the aggregation measures should
       be calculated for. There must be at least one grouping set if there are no
       measures (but it can be the empty grouping set).
       
      repeated .substrait.AggregateRel.Grouping groupings = 3;
      Specified by:
      getGroupingsOrBuilderList in interface AggregateRelOrBuilder
    • getGroupingsCount

      public int getGroupingsCount()
       A list of zero or more grouping sets that the aggregation measures should
       be calculated for. There must be at least one grouping set if there are no
       measures (but it can be the empty grouping set).
       
      repeated .substrait.AggregateRel.Grouping groupings = 3;
      Specified by:
      getGroupingsCount in interface AggregateRelOrBuilder
    • getGroupings

      public AggregateRel.Grouping getGroupings(int index)
       A list of zero or more grouping sets that the aggregation measures should
       be calculated for. There must be at least one grouping set if there are no
       measures (but it can be the empty grouping set).
       
      repeated .substrait.AggregateRel.Grouping groupings = 3;
      Specified by:
      getGroupings in interface AggregateRelOrBuilder
    • getGroupingsOrBuilder

      public AggregateRel.GroupingOrBuilder getGroupingsOrBuilder(int index)
       A list of zero or more grouping sets that the aggregation measures should
       be calculated for. There must be at least one grouping set if there are no
       measures (but it can be the empty grouping set).
       
      repeated .substrait.AggregateRel.Grouping groupings = 3;
      Specified by:
      getGroupingsOrBuilder in interface AggregateRelOrBuilder
    • getMeasuresList

      public List<AggregateRel.Measure> getMeasuresList()
       A list of one or more aggregate expressions along with an optional filter.
       Required if there are no groupings.
       
      repeated .substrait.AggregateRel.Measure measures = 4;
      Specified by:
      getMeasuresList in interface AggregateRelOrBuilder
    • getMeasuresOrBuilderList

      public List<? extends AggregateRel.MeasureOrBuilder> getMeasuresOrBuilderList()
       A list of one or more aggregate expressions along with an optional filter.
       Required if there are no groupings.
       
      repeated .substrait.AggregateRel.Measure measures = 4;
      Specified by:
      getMeasuresOrBuilderList in interface AggregateRelOrBuilder
    • getMeasuresCount

      public int getMeasuresCount()
       A list of one or more aggregate expressions along with an optional filter.
       Required if there are no groupings.
       
      repeated .substrait.AggregateRel.Measure measures = 4;
      Specified by:
      getMeasuresCount in interface AggregateRelOrBuilder
    • getMeasures

      public AggregateRel.Measure getMeasures(int index)
       A list of one or more aggregate expressions along with an optional filter.
       Required if there are no groupings.
       
      repeated .substrait.AggregateRel.Measure measures = 4;
      Specified by:
      getMeasures in interface AggregateRelOrBuilder
    • getMeasuresOrBuilder

      public AggregateRel.MeasureOrBuilder getMeasuresOrBuilder(int index)
       A list of one or more aggregate expressions along with an optional filter.
       Required if there are no groupings.
       
      repeated .substrait.AggregateRel.Measure measures = 4;
      Specified by:
      getMeasuresOrBuilder in interface AggregateRelOrBuilder
    • getGroupingExpressionsList

      public List<Expression> getGroupingExpressionsList()
       A list of zero or more grouping expressions that grouping sets (i.e.,
       `Grouping` messages in the `groupings` field) can reference. Each
       expression in this list must be referred to by at least one
       `Grouping.expression_references`.
       
      repeated .substrait.Expression grouping_expressions = 5;
      Specified by:
      getGroupingExpressionsList in interface AggregateRelOrBuilder
    • getGroupingExpressionsOrBuilderList

      public List<? extends ExpressionOrBuilder> getGroupingExpressionsOrBuilderList()
       A list of zero or more grouping expressions that grouping sets (i.e.,
       `Grouping` messages in the `groupings` field) can reference. Each
       expression in this list must be referred to by at least one
       `Grouping.expression_references`.
       
      repeated .substrait.Expression grouping_expressions = 5;
      Specified by:
      getGroupingExpressionsOrBuilderList in interface AggregateRelOrBuilder
    • getGroupingExpressionsCount

      public int getGroupingExpressionsCount()
       A list of zero or more grouping expressions that grouping sets (i.e.,
       `Grouping` messages in the `groupings` field) can reference. Each
       expression in this list must be referred to by at least one
       `Grouping.expression_references`.
       
      repeated .substrait.Expression grouping_expressions = 5;
      Specified by:
      getGroupingExpressionsCount in interface AggregateRelOrBuilder
    • getGroupingExpressions

      public Expression getGroupingExpressions(int index)
       A list of zero or more grouping expressions that grouping sets (i.e.,
       `Grouping` messages in the `groupings` field) can reference. Each
       expression in this list must be referred to by at least one
       `Grouping.expression_references`.
       
      repeated .substrait.Expression grouping_expressions = 5;
      Specified by:
      getGroupingExpressions in interface AggregateRelOrBuilder
    • getGroupingExpressionsOrBuilder

      public ExpressionOrBuilder getGroupingExpressionsOrBuilder(int index)
       A list of zero or more grouping expressions that grouping sets (i.e.,
       `Grouping` messages in the `groupings` field) can reference. Each
       expression in this list must be referred to by at least one
       `Grouping.expression_references`.
       
      repeated .substrait.Expression grouping_expressions = 5;
      Specified by:
      getGroupingExpressionsOrBuilder in interface AggregateRelOrBuilder
    • hasAdvancedExtension

      public boolean hasAdvancedExtension()
      .substrait.extensions.AdvancedExtension advanced_extension = 10;
      Specified by:
      hasAdvancedExtension in interface AggregateRelOrBuilder
      Returns:
      Whether the advancedExtension field is set.
    • getAdvancedExtension

      public AdvancedExtension getAdvancedExtension()
      .substrait.extensions.AdvancedExtension advanced_extension = 10;
      Specified by:
      getAdvancedExtension in interface AggregateRelOrBuilder
      Returns:
      The advancedExtension.
    • getAdvancedExtensionOrBuilder

      public AdvancedExtensionOrBuilder getAdvancedExtensionOrBuilder()
      .substrait.extensions.AdvancedExtension advanced_extension = 10;
      Specified by:
      getAdvancedExtensionOrBuilder in interface AggregateRelOrBuilder
    • 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 AggregateRel parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static AggregateRel.Builder newBuilder()
    • newBuilder

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

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

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

      public static AggregateRel getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<AggregateRel> 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 AggregateRel getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder