Class PlanProtocol.WindowOperator

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  PlanProtocol.WindowOperator.Builder
      Protobuf type xg.db.sqlPlans.WindowOperator
      static class  PlanProtocol.WindowOperator.WindowOp
      Protobuf enum xg.db.sqlPlans.WindowOperator.WindowOp
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

        com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,​BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,​BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • Method Detail

      • newInstance

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

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields 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
      • getPartitioningColsList

        public com.google.protobuf.ProtocolStringList getPartitioningColsList()
        Partitioning columns
         
        repeated string partitioning_cols = 1;
        Specified by:
        getPartitioningColsList in interface PlanProtocol.WindowOperatorOrBuilder
        Returns:
        A list containing the partitioningCols.
      • getPartitioningCols

        public String getPartitioningCols​(int index)
        Partitioning columns
         
        repeated string partitioning_cols = 1;
        Specified by:
        getPartitioningCols in interface PlanProtocol.WindowOperatorOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The partitioningCols at the given index.
      • getPartitioningColsBytes

        public com.google.protobuf.ByteString getPartitioningColsBytes​(int index)
        Partitioning columns
         
        repeated string partitioning_cols = 1;
        Specified by:
        getPartitioningColsBytes in interface PlanProtocol.WindowOperatorOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the partitioningCols at the given index.
      • getSortKeysList

        public com.google.protobuf.ProtocolStringList getSortKeysList()
        The sort columns - already includes partitioning cols if any
         
        repeated string sortKeys = 2;
        Specified by:
        getSortKeysList in interface PlanProtocol.WindowOperatorOrBuilder
        Returns:
        A list containing the sortKeys.
      • getSortKeys

        public String getSortKeys​(int index)
        The sort columns - already includes partitioning cols if any
         
        repeated string sortKeys = 2;
        Specified by:
        getSortKeys in interface PlanProtocol.WindowOperatorOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The sortKeys at the given index.
      • getSortKeysBytes

        public com.google.protobuf.ByteString getSortKeysBytes​(int index)
        The sort columns - already includes partitioning cols if any
         
        repeated string sortKeys = 2;
        Specified by:
        getSortKeysBytes in interface PlanProtocol.WindowOperatorOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the sortKeys at the given index.
      • getDirections

        public boolean getDirections​(int index)
        The directions for each sort col - true = ascending
         
        repeated bool directions = 3;
        Specified by:
        getDirections in interface PlanProtocol.WindowOperatorOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The directions at the given index.
      • getOpsCount

        public int getOpsCount()
        The aggregation operations to perform
         
        repeated .xg.db.sqlPlans.WindowOperator.WindowOp ops = 4;
        Specified by:
        getOpsCount in interface PlanProtocol.WindowOperatorOrBuilder
        Returns:
        The count of ops.
      • getOpsValue

        public int getOpsValue​(int index)
        The aggregation operations to perform
         
        repeated .xg.db.sqlPlans.WindowOperator.WindowOp ops = 4;
        Specified by:
        getOpsValue in interface PlanProtocol.WindowOperatorOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The enum numeric value on the wire of ops at the given index.
      • getInputColsList

        public com.google.protobuf.ProtocolStringList getInputColsList()
        The columns to perform each aggregation on (for operations that take a normal column argument)
        In the same order as ops (and same size)
        The following operations have no input, so any value in those positions is garbage
        WINDOW_OP_COUNT_STAR
        WINDOW_OP_RANK
        WINDOW_OP_DENSE_RANK
        WINDOW_OP_ROW_NUMBER
        WINDOW_OP_FIRST_VALUE
        WINDOW_OP_LAST_VALUE
        WINDOW_OP_CUME_DIST
        WINDOW_OP_PERCENT_RANK
        Additionally these operations only have constant input values, not a column input - so there is nothing here
        WINDOW_OP_NTH_VALUE
        WINDOW_OP_NTILE
         
        repeated string inputCols = 5;
        Specified by:
        getInputColsList in interface PlanProtocol.WindowOperatorOrBuilder
        Returns:
        A list containing the inputCols.
      • getInputColsCount

        public int getInputColsCount()
        The columns to perform each aggregation on (for operations that take a normal column argument)
        In the same order as ops (and same size)
        The following operations have no input, so any value in those positions is garbage
        WINDOW_OP_COUNT_STAR
        WINDOW_OP_RANK
        WINDOW_OP_DENSE_RANK
        WINDOW_OP_ROW_NUMBER
        WINDOW_OP_FIRST_VALUE
        WINDOW_OP_LAST_VALUE
        WINDOW_OP_CUME_DIST
        WINDOW_OP_PERCENT_RANK
        Additionally these operations only have constant input values, not a column input - so there is nothing here
        WINDOW_OP_NTH_VALUE
        WINDOW_OP_NTILE
         
        repeated string inputCols = 5;
        Specified by:
        getInputColsCount in interface PlanProtocol.WindowOperatorOrBuilder
        Returns:
        The count of inputCols.
      • getInputCols

        public String getInputCols​(int index)
        The columns to perform each aggregation on (for operations that take a normal column argument)
        In the same order as ops (and same size)
        The following operations have no input, so any value in those positions is garbage
        WINDOW_OP_COUNT_STAR
        WINDOW_OP_RANK
        WINDOW_OP_DENSE_RANK
        WINDOW_OP_ROW_NUMBER
        WINDOW_OP_FIRST_VALUE
        WINDOW_OP_LAST_VALUE
        WINDOW_OP_CUME_DIST
        WINDOW_OP_PERCENT_RANK
        Additionally these operations only have constant input values, not a column input - so there is nothing here
        WINDOW_OP_NTH_VALUE
        WINDOW_OP_NTILE
         
        repeated string inputCols = 5;
        Specified by:
        getInputCols in interface PlanProtocol.WindowOperatorOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The inputCols at the given index.
      • getInputColsBytes

        public com.google.protobuf.ByteString getInputColsBytes​(int index)
        The columns to perform each aggregation on (for operations that take a normal column argument)
        In the same order as ops (and same size)
        The following operations have no input, so any value in those positions is garbage
        WINDOW_OP_COUNT_STAR
        WINDOW_OP_RANK
        WINDOW_OP_DENSE_RANK
        WINDOW_OP_ROW_NUMBER
        WINDOW_OP_FIRST_VALUE
        WINDOW_OP_LAST_VALUE
        WINDOW_OP_CUME_DIST
        WINDOW_OP_PERCENT_RANK
        Additionally these operations only have constant input values, not a column input - so there is nothing here
        WINDOW_OP_NTH_VALUE
        WINDOW_OP_NTILE
         
        repeated string inputCols = 5;
        Specified by:
        getInputColsBytes in interface PlanProtocol.WindowOperatorOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the inputCols at the given index.
      • getOutputColsList

        public com.google.protobuf.ProtocolStringList getOutputColsList()
        The name to give to the columns created by each aggregation operation
         
        repeated string outputCols = 6;
        Specified by:
        getOutputColsList in interface PlanProtocol.WindowOperatorOrBuilder
        Returns:
        A list containing the outputCols.
      • getOutputColsCount

        public int getOutputColsCount()
        The name to give to the columns created by each aggregation operation
         
        repeated string outputCols = 6;
        Specified by:
        getOutputColsCount in interface PlanProtocol.WindowOperatorOrBuilder
        Returns:
        The count of outputCols.
      • getOutputCols

        public String getOutputCols​(int index)
        The name to give to the columns created by each aggregation operation
         
        repeated string outputCols = 6;
        Specified by:
        getOutputCols in interface PlanProtocol.WindowOperatorOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The outputCols at the given index.
      • getOutputColsBytes

        public com.google.protobuf.ByteString getOutputColsBytes​(int index)
        The name to give to the columns created by each aggregation operation
         
        repeated string outputCols = 6;
        Specified by:
        getOutputColsBytes in interface PlanProtocol.WindowOperatorOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the outputCols at the given index.
      • getOutputColsTypesList

        public com.google.protobuf.ProtocolStringList getOutputColsTypesList()
        The types for the outputCols, in the same order
         
        repeated string outputColsTypes = 7;
        Specified by:
        getOutputColsTypesList in interface PlanProtocol.WindowOperatorOrBuilder
        Returns:
        A list containing the outputColsTypes.
      • getOutputColsTypes

        public String getOutputColsTypes​(int index)
        The types for the outputCols, in the same order
         
        repeated string outputColsTypes = 7;
        Specified by:
        getOutputColsTypes in interface PlanProtocol.WindowOperatorOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The outputColsTypes at the given index.
      • getOutputColsTypesBytes

        public com.google.protobuf.ByteString getOutputColsTypesBytes​(int index)
        The types for the outputCols, in the same order
         
        repeated string outputColsTypes = 7;
        Specified by:
        getOutputColsTypesBytes in interface PlanProtocol.WindowOperatorOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the outputColsTypes at the given index.
      • getConstIntArgsList

        public List<Long> getConstIntArgsList()
        For functions that take a constant integer argument - they are here - there's an entry for every op even if it isn't used
         
        repeated int64 constIntArgs = 9;
        Specified by:
        getConstIntArgsList in interface PlanProtocol.WindowOperatorOrBuilder
        Returns:
        A list containing the constIntArgs.
      • getConstIntArgsCount

        public int getConstIntArgsCount()
        For functions that take a constant integer argument - they are here - there's an entry for every op even if it isn't used
         
        repeated int64 constIntArgs = 9;
        Specified by:
        getConstIntArgsCount in interface PlanProtocol.WindowOperatorOrBuilder
        Returns:
        The count of constIntArgs.
      • getConstIntArgs

        public long getConstIntArgs​(int index)
        For functions that take a constant integer argument - they are here - there's an entry for every op even if it isn't used
         
        repeated int64 constIntArgs = 9;
        Specified by:
        getConstIntArgs in interface PlanProtocol.WindowOperatorOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The constIntArgs at the given index.
      • getConstFloatArgsList

        public List<Double> getConstFloatArgsList()
        For functions that take a constant floating point argument - they are here - there's an entry for every op even if it isn't used
         
        repeated double constFloatArgs = 10;
        Specified by:
        getConstFloatArgsList in interface PlanProtocol.WindowOperatorOrBuilder
        Returns:
        A list containing the constFloatArgs.
      • getConstFloatArgsCount

        public int getConstFloatArgsCount()
        For functions that take a constant floating point argument - they are here - there's an entry for every op even if it isn't used
         
        repeated double constFloatArgs = 10;
        Specified by:
        getConstFloatArgsCount in interface PlanProtocol.WindowOperatorOrBuilder
        Returns:
        The count of constFloatArgs.
      • getConstFloatArgs

        public double getConstFloatArgs​(int index)
        For functions that take a constant floating point argument - they are here - there's an entry for every op even if it isn't used
         
        repeated double constFloatArgs = 10;
        Specified by:
        getConstFloatArgs in interface PlanProtocol.WindowOperatorOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The constFloatArgs at the given index.
      • 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 PlanProtocol.WindowOperator parseFrom​(ByteBuffer data)
                                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

        protected PlanProtocol.WindowOperator.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

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