java.lang.Object
org.odpi.openmetadata.adapters.connectors.datastore.parquetfile.properties.ParquetColumnProfile

public class ParquetColumnProfile extends Object
ParquetColumnProfile summarizes the values stored in a column across all the row groups in the file. It is built from the statistics that the writer saved in the file's footer and so it is available without reading (or being able to decompress and decode) the values themselves.
  • Constructor Details

    • ParquetColumnProfile

      public ParquetColumnProfile(ParquetSchemaElement column)
      Constructor.
      Parameters:
      column - description of the column from the schema
  • Method Details

    • getColumn

      public ParquetSchemaElement getColumn()
      Return the description of the column from the schema.
      Returns:
      schema element
    • getCompressionCodecs

      public List<String> getCompressionCodecs()
      Return the names of the algorithms used to compress the values.
      Returns:
      list
    • getEncodings

      public List<String> getEncodings()
      Return the names of the encodings used for the values.
      Returns:
      list
    • getDataPageVersions

      public List<String> getDataPageVersions()
      Return the versions of the data page layout (V1 and/or V2) used to store the values.
      Returns:
      list
    • getValueCount

      public long getValueCount()
      Return the number of values stored, including nulls. For a column that is not nested in a list or map this is the same as the number of rows.
      Returns:
      count
    • setValueCount

      public void setValueCount(long valueCount)
      Set up the number of values stored, including nulls.
      Parameters:
      valueCount - count
    • getCompressedSize

      public long getCompressedSize()
      Return the number of bytes that the values occupy in the file.
      Returns:
      number of bytes
    • setCompressedSize

      public void setCompressedSize(long compressedSize)
      Set up the number of bytes that the values occupy in the file.
      Parameters:
      compressedSize - number of bytes
    • getUncompressedSize

      public long getUncompressedSize()
      Return the number of bytes that the values occupy once they are decompressed.
      Returns:
      number of bytes
    • setUncompressedSize

      public void setUncompressedSize(long uncompressedSize)
      Set up the number of bytes that the values occupy once they are decompressed.
      Parameters:
      uncompressedSize - number of bytes
    • getNullCount

      public Long getNullCount()
      Return the number of null values.
      Returns:
      count, or null if it is not recorded for every row group
    • setNullCount

      public void setNullCount(Long nullCount)
      Set up the number of null values.
      Parameters:
      nullCount - count or null
    • getDistinctCount

      public Long getDistinctCount()
      Return the number of distinct values. This is only known when the file has a single row group, and the writer recorded it, since the counts from different row groups cannot be combined.
      Returns:
      count or null
    • setDistinctCount

      public void setDistinctCount(Long distinctCount)
      Set up the number of distinct values.
      Parameters:
      distinctCount - count or null
    • getMinValue

      public String getMinValue()
      Return the smallest value in the column, formatted as a string.
      Returns:
      string, or null if it is not recorded for every row group
    • setMinValue

      public void setMinValue(String minValue)
      Set up the smallest value in the column.
      Parameters:
      minValue - string or null
    • getMaxValue

      public String getMaxValue()
      Return the largest value in the column, formatted as a string.
      Returns:
      string, or null if it is not recorded for every row group
    • setMaxValue

      public void setMaxValue(String maxValue)
      Set up the largest value in the column.
      Parameters:
      maxValue - string or null
    • isEncrypted

      public boolean isEncrypted()
      Return whether the description of the column's values is encrypted in any of the row groups. If it is, then the statistics are not available.
      Returns:
      boolean
    • setEncrypted

      public void setEncrypted(boolean encrypted)
      Set up whether the description of the column's values is encrypted.
      Parameters:
      encrypted - boolean