Class ParquetColumnProfile
java.lang.Object
org.odpi.openmetadata.adapters.connectors.datastore.parquetfile.properties.ParquetColumnProfile
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the description of the column from the schema.longReturn the number of bytes that the values occupy in the file.Return the names of the algorithms used to compress the values.Return the versions of the data page layout (V1 and/or V2) used to store the values.Return the number of distinct values.Return the names of the encodings used for the values.Return the largest value in the column, formatted as a string.Return the smallest value in the column, formatted as a string.Return the number of null values.longReturn the number of bytes that the values occupy once they are decompressed.longReturn the number of values stored, including nulls.booleanReturn whether the description of the column's values is encrypted in any of the row groups.voidsetCompressedSize(long compressedSize) Set up the number of bytes that the values occupy in the file.voidsetDistinctCount(Long distinctCount) Set up the number of distinct values.voidsetEncrypted(boolean encrypted) Set up whether the description of the column's values is encrypted.voidsetMaxValue(String maxValue) Set up the largest value in the column.voidsetMinValue(String minValue) Set up the smallest value in the column.voidsetNullCount(Long nullCount) Set up the number of null values.voidsetUncompressedSize(long uncompressedSize) Set up the number of bytes that the values occupy once they are decompressed.voidsetValueCount(long valueCount) Set up the number of values stored, including nulls.
-
Constructor Details
-
ParquetColumnProfile
Constructor.- Parameters:
column- description of the column from the schema
-
-
Method Details
-
getColumn
Return the description of the column from the schema.- Returns:
- schema element
-
getCompressionCodecs
Return the names of the algorithms used to compress the values.- Returns:
- list
-
getEncodings
Return the names of the encodings used for the values.- Returns:
- list
-
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
Return the number of null values.- Returns:
- count, or null if it is not recorded for every row group
-
setNullCount
Set up the number of null values.- Parameters:
nullCount- count or null
-
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
Set up the number of distinct values.- Parameters:
distinctCount- count or null
-
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
Set up the smallest value in the column.- Parameters:
minValue- string or null
-
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
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
-