Class DataPageHeaderV2

    • Field Detail

      • num_values

        public int num_values
        Number of values, including NULLs, in this data page. *
      • num_nulls

        public int num_nulls
        Number of NULL values, in this data page. Number of non-null = num_values - num_nulls which is also the number of values in the data section *
      • num_rows

        public int num_rows
        Number of rows in this data page. which means pages change on record boundaries (r = 0) *
      • encoding

        public Encoding encoding
        Encoding used for data in this page *
        See Also:
        Encoding
      • definition_levels_byte_length

        public int definition_levels_byte_length
        length of the definition levels
      • repetition_levels_byte_length

        public int repetition_levels_byte_length
        length of the repetition levels
      • is_compressed

        public boolean is_compressed
        whether the values are compressed. Which means the section of the page between definition_levels_byte_length + repetition_levels_byte_length + 1 and compressed_page_size (included) is compressed with the compression_codec. If missing it is considered compressed
      • statistics

        public Statistics statistics
        optional statistics for the data in this page *
    • Constructor Detail

      • DataPageHeaderV2

        public DataPageHeaderV2()
      • DataPageHeaderV2

        public DataPageHeaderV2​(int num_values,
                                int num_nulls,
                                int num_rows,
                                Encoding encoding,
                                int definition_levels_byte_length,
                                int repetition_levels_byte_length)
      • DataPageHeaderV2

        public DataPageHeaderV2​(DataPageHeaderV2 other)
        Performs a deep copy on other.
    • Method Detail

      • getNum_values

        public int getNum_values()
        Number of values, including NULLs, in this data page. *
      • setNum_values

        public DataPageHeaderV2 setNum_values​(int num_values)
        Number of values, including NULLs, in this data page. *
      • unsetNum_values

        public void unsetNum_values()
      • isSetNum_values

        public boolean isSetNum_values()
        Returns true if field num_values is set (has been assigned a value) and false otherwise
      • setNum_valuesIsSet

        public void setNum_valuesIsSet​(boolean value)
      • getNum_nulls

        public int getNum_nulls()
        Number of NULL values, in this data page. Number of non-null = num_values - num_nulls which is also the number of values in the data section *
      • setNum_nulls

        public DataPageHeaderV2 setNum_nulls​(int num_nulls)
        Number of NULL values, in this data page. Number of non-null = num_values - num_nulls which is also the number of values in the data section *
      • unsetNum_nulls

        public void unsetNum_nulls()
      • isSetNum_nulls

        public boolean isSetNum_nulls()
        Returns true if field num_nulls is set (has been assigned a value) and false otherwise
      • setNum_nullsIsSet

        public void setNum_nullsIsSet​(boolean value)
      • getNum_rows

        public int getNum_rows()
        Number of rows in this data page. which means pages change on record boundaries (r = 0) *
      • setNum_rows

        public DataPageHeaderV2 setNum_rows​(int num_rows)
        Number of rows in this data page. which means pages change on record boundaries (r = 0) *
      • unsetNum_rows

        public void unsetNum_rows()
      • isSetNum_rows

        public boolean isSetNum_rows()
        Returns true if field num_rows is set (has been assigned a value) and false otherwise
      • setNum_rowsIsSet

        public void setNum_rowsIsSet​(boolean value)
      • getEncoding

        public Encoding getEncoding()
        Encoding used for data in this page *
        See Also:
        Encoding
      • unsetEncoding

        public void unsetEncoding()
      • isSetEncoding

        public boolean isSetEncoding()
        Returns true if field encoding is set (has been assigned a value) and false otherwise
      • setEncodingIsSet

        public void setEncodingIsSet​(boolean value)
      • getDefinition_levels_byte_length

        public int getDefinition_levels_byte_length()
        length of the definition levels
      • setDefinition_levels_byte_length

        public DataPageHeaderV2 setDefinition_levels_byte_length​(int definition_levels_byte_length)
        length of the definition levels
      • unsetDefinition_levels_byte_length

        public void unsetDefinition_levels_byte_length()
      • isSetDefinition_levels_byte_length

        public boolean isSetDefinition_levels_byte_length()
        Returns true if field definition_levels_byte_length is set (has been assigned a value) and false otherwise
      • setDefinition_levels_byte_lengthIsSet

        public void setDefinition_levels_byte_lengthIsSet​(boolean value)
      • getRepetition_levels_byte_length

        public int getRepetition_levels_byte_length()
        length of the repetition levels
      • setRepetition_levels_byte_length

        public DataPageHeaderV2 setRepetition_levels_byte_length​(int repetition_levels_byte_length)
        length of the repetition levels
      • unsetRepetition_levels_byte_length

        public void unsetRepetition_levels_byte_length()
      • isSetRepetition_levels_byte_length

        public boolean isSetRepetition_levels_byte_length()
        Returns true if field repetition_levels_byte_length is set (has been assigned a value) and false otherwise
      • setRepetition_levels_byte_lengthIsSet

        public void setRepetition_levels_byte_lengthIsSet​(boolean value)
      • isIs_compressed

        public boolean isIs_compressed()
        whether the values are compressed. Which means the section of the page between definition_levels_byte_length + repetition_levels_byte_length + 1 and compressed_page_size (included) is compressed with the compression_codec. If missing it is considered compressed
      • setIs_compressed

        public DataPageHeaderV2 setIs_compressed​(boolean is_compressed)
        whether the values are compressed. Which means the section of the page between definition_levels_byte_length + repetition_levels_byte_length + 1 and compressed_page_size (included) is compressed with the compression_codec. If missing it is considered compressed
      • unsetIs_compressed

        public void unsetIs_compressed()
      • isSetIs_compressed

        public boolean isSetIs_compressed()
        Returns true if field is_compressed is set (has been assigned a value) and false otherwise
      • setIs_compressedIsSet

        public void setIs_compressedIsSet​(boolean value)
      • getStatistics

        public Statistics getStatistics()
        optional statistics for the data in this page *
      • setStatistics

        public DataPageHeaderV2 setStatistics​(Statistics statistics)
        optional statistics for the data in this page *
      • unsetStatistics

        public void unsetStatistics()
      • isSetStatistics

        public boolean isSetStatistics()
        Returns true if field statistics is set (has been assigned a value) and false otherwise
      • setStatisticsIsSet

        public void setStatisticsIsSet​(boolean value)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • read

        public void read​(org.apache.thrift.protocol.TProtocol iprot)
                  throws org.apache.thrift.TException
        Specified by:
        read in interface org.apache.thrift.TSerializable
        Throws:
        org.apache.thrift.TException
      • write

        public void write​(org.apache.thrift.protocol.TProtocol oprot)
                   throws org.apache.thrift.TException
        Specified by:
        write in interface org.apache.thrift.TSerializable
        Throws:
        org.apache.thrift.TException
      • validate

        public void validate()
                      throws org.apache.thrift.TException
        Throws:
        org.apache.thrift.TException