Class ParquetFileMeasurement
java.lang.Object
org.odpi.openmetadata.adapters.connectors.surveyaction.surveyparquet.ParquetFileMeasurement
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturn the number of top-level columns.longReturn the number of bytes that the values occupy in the file.Return the compression algorithms used in the file.Return the description of the software that wrote the file.Return the versions of the data page layout used in the file.Return the encodings used in the file.Return the algorithm used to encrypt columns in the file.intReturn the number of bytes in the footer.intReturn the version of the Parquet format declared by the writer of the file.intReturn the number of columns that hold values.longReturn the number of rows in the file.intReturn the number of row groups that the rows are divided into.Return the style of annotation used to describe how the stored values are interpreted.longReturn the number of bytes that the values occupy once they are decompressed.Return the names of the additional properties that the writer added to the file.voidsetColumnCount(int columnCount) Set up the number of top-level columns.voidsetCompressedSize(long compressedSize) Set up the number of bytes that the values occupy in the file.voidsetCompressionCodecs(List<String> compressionCodecs) Set up the compression algorithms used in the file.voidsetCreatedBy(String createdBy) Set up the description of the software that wrote the file.voidsetDataPageVersions(List<String> dataPageVersions) Set up the versions of the data page layout used in the file.voidsetEncodings(List<String> encodings) Set up the encodings used in the file.voidsetEncryptionAlgorithm(String encryptionAlgorithm) Set up the algorithm used to encrypt columns in the file.voidsetFooterSize(int footerSize) Set up the number of bytes in the footer.voidsetFormatVersion(int formatVersion) Set up the version of the Parquet format declared by the writer of the file.voidsetLeafColumnCount(int leafColumnCount) Set up the number of columns that hold values.voidsetRowCount(long rowCount) Set up the number of rows in the file.voidsetRowGroupCount(int rowGroupCount) Set up the number of row groups that the rows are divided into.voidsetTypeAnnotationStyle(String typeAnnotationStyle) Set up the style of annotation used to describe how the stored values are interpreted.voidsetUncompressedSize(long uncompressedSize) Set up the number of bytes that the values occupy once they are decompressed.voidsetWriterPropertyNames(List<String> writerPropertyNames) Set up the names of the additional properties that the writer added to the file.
-
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
Return the description of the software that wrote the file.- Returns:
- string
-
setCreatedBy
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
-
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
Return the compression algorithms used in the file.- Returns:
- list
-
setCompressionCodecs
Set up the compression algorithms used in the file.- Parameters:
compressionCodecs- list
-
getEncodings
Return the encodings used in the file.- Returns:
- list
-
setEncodings
Set up the encodings used in the file.- Parameters:
encodings- list
-
getDataPageVersions
Return the versions of the data page layout used in the file.- Returns:
- list
-
setDataPageVersions
Set up the versions of the data page layout used in the file.- Parameters:
dataPageVersions- list
-
getTypeAnnotationStyle
Return the style of annotation used to describe how the stored values are interpreted.- Returns:
- string
-
setTypeAnnotationStyle
Set up the style of annotation used to describe how the stored values are interpreted.- Parameters:
typeAnnotationStyle- string
-
getEncryptionAlgorithm
Return the algorithm used to encrypt columns in the file.- Returns:
- string or null
-
setEncryptionAlgorithm
Set up the algorithm used to encrypt columns in the file.- Parameters:
encryptionAlgorithm- string or null
-
getWriterPropertyNames
Return the names of the additional properties that the writer added to the file.- Returns:
- list
-
setWriterPropertyNames
Set up the names of the additional properties that the writer added to the file.- Parameters:
writerPropertyNames- list
-