java.lang.Object
org.odpi.openmetadata.adapters.connectors.surveyaction.surveyparquet.ParquetFileMeasurement

public class ParquetFileMeasurement extends Object
ParquetFileMeasurement captures the measurements taken from the footer of a Parquet file, so that they can be stored as JSON in the measurement annotation. The properties match the names in ParquetFileMetric.
  • Constructor Details

    • ParquetFileMeasurement

      public ParquetFileMeasurement()
      Default constructor.
  • Method Details

    • getFormatVersion

      public int getFormatVersion()
      Return the version of the Parquet format declared by the writer of the file.
      Returns:
      version number
    • setFormatVersion

      public void setFormatVersion(int formatVersion)
      Set up the version of the Parquet format declared by the writer of the file.
      Parameters:
      formatVersion - version number
    • getCreatedBy

      public String getCreatedBy()
      Return the description of the software that wrote the file.
      Returns:
      string
    • setCreatedBy

      public void setCreatedBy(String createdBy)
      Set up the description of the software that wrote the file.
      Parameters:
      createdBy - string
    • getRowCount

      public long getRowCount()
      Return the number of rows in the file.
      Returns:
      count
    • setRowCount

      public void setRowCount(long rowCount)
      Set up the number of rows in the file.
      Parameters:
      rowCount - count
    • getRowGroupCount

      public int getRowGroupCount()
      Return the number of row groups that the rows are divided into.
      Returns:
      count
    • setRowGroupCount

      public void setRowGroupCount(int rowGroupCount)
      Set up the number of row groups that the rows are divided into.
      Parameters:
      rowGroupCount - count
    • getColumnCount

      public int getColumnCount()
      Return the number of top-level columns.
      Returns:
      count
    • setColumnCount

      public void setColumnCount(int columnCount)
      Set up the number of top-level columns.
      Parameters:
      columnCount - count
    • getLeafColumnCount

      public int getLeafColumnCount()
      Return the number of columns that hold values.
      Returns:
      count
    • setLeafColumnCount

      public void setLeafColumnCount(int leafColumnCount)
      Set up the number of columns that hold values.
      Parameters:
      leafColumnCount - count
    • getFooterSize

      public int getFooterSize()
      Return the number of bytes in the footer.
      Returns:
      number of bytes
    • setFooterSize

      public void setFooterSize(int footerSize)
      Set up the number of bytes in the footer.
      Parameters:
      footerSize - number of bytes
    • 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
    • getCompressionCodecs

      public List<String> getCompressionCodecs()
      Return the compression algorithms used in the file.
      Returns:
      list
    • setCompressionCodecs

      public void setCompressionCodecs(List<String> compressionCodecs)
      Set up the compression algorithms used in the file.
      Parameters:
      compressionCodecs - list
    • getEncodings

      public List<String> getEncodings()
      Return the encodings used in the file.
      Returns:
      list
    • setEncodings

      public void setEncodings(List<String> encodings)
      Set up the encodings used in the file.
      Parameters:
      encodings - list
    • getDataPageVersions

      public List<String> getDataPageVersions()
      Return the versions of the data page layout used in the file.
      Returns:
      list
    • setDataPageVersions

      public void setDataPageVersions(List<String> dataPageVersions)
      Set up the versions of the data page layout used in the file.
      Parameters:
      dataPageVersions - list
    • getTypeAnnotationStyle

      public String getTypeAnnotationStyle()
      Return the style of annotation used to describe how the stored values are interpreted.
      Returns:
      string
    • setTypeAnnotationStyle

      public void setTypeAnnotationStyle(String typeAnnotationStyle)
      Set up the style of annotation used to describe how the stored values are interpreted.
      Parameters:
      typeAnnotationStyle - string
    • getEncryptionAlgorithm

      public String getEncryptionAlgorithm()
      Return the algorithm used to encrypt columns in the file.
      Returns:
      string or null
    • setEncryptionAlgorithm

      public void setEncryptionAlgorithm(String encryptionAlgorithm)
      Set up the algorithm used to encrypt columns in the file.
      Parameters:
      encryptionAlgorithm - string or null
    • getWriterPropertyNames

      public List<String> getWriterPropertyNames()
      Return the names of the additional properties that the writer added to the file.
      Returns:
      list
    • setWriterPropertyNames

      public void setWriterPropertyNames(List<String> writerPropertyNames)
      Set up the names of the additional properties that the writer added to the file.
      Parameters:
      writerPropertyNames - list