Class StatisticsColumnData

    • Constructor Detail

      • StatisticsColumnData

        public StatisticsColumnData()
        Default constructor.
      • StatisticsColumnData

        public StatisticsColumnData​(StatisticsDecimalMessage min,
                                    StatisticsDecimalMessage max,
                                    long nulls,
                                    long distinct,
                                    long total,
                                    int size,
                                    byte[] rawData,
                                    long ver,
                                    long createdAt)
        Constructor.
        Parameters:
        min - Min value in column.
        max - Max value in column.
        nulls - Number of null values in column.
        distinct - Total distinct values in column.
        total - Total values in column.
        size - Average size, for variable size types (in bytes).
        rawData - Raw data to make statistics aggregate.
        ver - Statistics version.
        createdAt - Created at time, milliseconds.
    • Method Detail

      • nulls

        public long nulls()
        Returns:
        Number of null values in column.
      • distinct

        public long distinct()
        Returns:
        Total distinct values in column.
      • total

        public long total()
        Returns:
        Total values in column.
      • size

        public int size()
        Returns:
        Average size, for variable size types (in bytes).
      • rawData

        public byte[] rawData()
        Returns:
        Raw data.
      • version

        public long version()
        Returns:
        Raw data.
      • createdAt

        public long createdAt()
        Returns:
        Created at time, milliseconds.
      • writeTo

        public boolean writeTo​(ByteBuffer buf,
                               MessageWriter writer)
        Writes this message to provided byte buffer.
        Specified by:
        writeTo in interface Message
        Parameters:
        buf - Byte buffer.
        writer - Writer.
        Returns:
        Whether message was fully written.
      • readFrom

        public boolean readFrom​(ByteBuffer buf,
                                MessageReader reader)
        Reads this message from provided byte buffer.
        Specified by:
        readFrom in interface Message
        Parameters:
        buf - Byte buffer.
        reader - Reader.
        Returns:
        Whether message was fully read.
      • directType

        public short directType()
        Gets message type.
        Specified by:
        directType in interface Message
        Returns:
        Message type.
      • fieldsCount

        public byte fieldsCount()
        Gets fields count.
        Specified by:
        fieldsCount in interface Message
        Returns:
        Fields count.
      • onAckReceived

        public void onAckReceived()
        Method called when ack message received.
        Specified by:
        onAckReceived in interface Message