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

public class ParquetColumnChunk extends Object
ParquetColumnChunk describes the values stored for one column in one row group.
  • Constructor Details

    • ParquetColumnChunk

      public ParquetColumnChunk()
      Default constructor.
  • Method Details

    • getPathName

      public String getPathName()
      Return the dot-separated path name of the column in the schema.
      Returns:
      string
    • setPathName

      public void setPathName(String pathName)
      Set up the dot-separated path name of the column in the schema.
      Parameters:
      pathName - string
    • getCompressionCodec

      public String getCompressionCodec()
      Return the name of the algorithm used to compress the values (UNCOMPRESSED, SNAPPY, GZIP, ZSTD ...).
      Returns:
      string
    • setCompressionCodec

      public void setCompressionCodec(String compressionCodec)
      Set up the name of the algorithm used to compress the values.
      Parameters:
      compressionCodec - string
    • getEncodings

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

      public void setEncodings(List<String> encodings)
      Set up the names of the encodings used for the values.
      Parameters:
      encodings - list
    • getDataPageVersions

      public List<String> getDataPageVersions()
      Return the versions of the data page layout (V1 and/or V2) used to store the values. The list is empty if the file does not say and the pages were not inspected.
      Returns:
      list
    • setDataPageVersions

      public void setDataPageVersions(List<String> dataPageVersions)
      Set up the versions of the data page layout used to store the values.
      Parameters:
      dataPageVersions - list
    • getValueCount

      public long getValueCount()
      Return the number of values stored, including nulls.
      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
    • getDataPageOffset

      public long getDataPageOffset()
      Return the location of the first data page in the file.
      Returns:
      offset from the start of the file
    • setDataPageOffset

      public void setDataPageOffset(long dataPageOffset)
      Set up the location of the first data page in the file.
      Parameters:
      dataPageOffset - offset from the start of the file
    • isDictionaryPagePresent

      public boolean isDictionaryPagePresent()
      Return whether the values are encoded using a dictionary.
      Returns:
      boolean
    • setDictionaryPagePresent

      public void setDictionaryPagePresent(boolean dictionaryPagePresent)
      Set up whether the values are encoded using a dictionary.
      Parameters:
      dictionaryPagePresent - boolean
    • isBloomFilterPresent

      public boolean isBloomFilterPresent()
      Return whether there is a bloom filter for the values.
      Returns:
      boolean
    • setBloomFilterPresent

      public void setBloomFilterPresent(boolean bloomFilterPresent)
      Set up whether there is a bloom filter for the values.
      Parameters:
      bloomFilterPresent - boolean
    • isEncrypted

      public boolean isEncrypted()
      Return whether the description of the values is encrypted. If it is then only the path name is known.
      Returns:
      boolean
    • setEncrypted

      public void setEncrypted(boolean encrypted)
      Set up whether the description of the values is encrypted.
      Parameters:
      encrypted - boolean
    • getNullCount

      public Long getNullCount()
      Return the number of null values.
      Returns:
      count, or null if the writer did not record it
    • 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.
      Returns:
      count, or null if the writer did not record it
    • setDistinctCount

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

      public Object getMinValue()
      Return the smallest value. The class of the object depends on the type of the column (see ParquetStatisticsDecoder).
      Returns:
      value, or null if the writer did not record it, or it is not reliable
    • setMinValue

      public void setMinValue(Object minValue)
      Set up the smallest value.
      Parameters:
      minValue - value or null
    • getMaxValue

      public Object getMaxValue()
      Return the largest value. The class of the object depends on the type of the column (see ParquetStatisticsDecoder).
      Returns:
      value, or null if the writer did not record it, or it is not reliable
    • setMaxValue

      public void setMaxValue(Object maxValue)
      Set up the largest value.
      Parameters:
      maxValue - value or null