Class ParquetColumnChunk
java.lang.Object
org.odpi.openmetadata.adapters.connectors.datastore.parquetfile.properties.ParquetColumnChunk
ParquetColumnChunk describes the values stored for one column in one row group.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturn the number of bytes that the values occupy in the file.Return the name of the algorithm used to compress the values (UNCOMPRESSED, SNAPPY, GZIP, ZSTD ...).longReturn the location of the first data page in the file.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.Return the smallest value.Return the number of null values.Return the dot-separated path name of the column in the schema.longReturn the number of bytes that the values occupy once they are decompressed.longReturn the number of values stored, including nulls.booleanReturn whether there is a bloom filter for the values.booleanReturn whether the values are encoded using a dictionary.booleanReturn whether the description of the values is encrypted.voidsetBloomFilterPresent(boolean bloomFilterPresent) Set up whether there is a bloom filter for the values.voidsetCompressedSize(long compressedSize) Set up the number of bytes that the values occupy in the file.voidsetCompressionCodec(String compressionCodec) Set up the name of the algorithm used to compress the values.voidsetDataPageOffset(long dataPageOffset) Set up the location of the first data page in the file.voidsetDataPageVersions(List<String> dataPageVersions) Set up the versions of the data page layout used to store the values.voidsetDictionaryPagePresent(boolean dictionaryPagePresent) Set up whether the values are encoded using a dictionary.voidsetDistinctCount(Long distinctCount) Set up the number of distinct values.voidsetEncodings(List<String> encodings) Set up the names of the encodings used for the values.voidsetEncrypted(boolean encrypted) Set up whether the description of the values is encrypted.voidsetMaxValue(Object maxValue) Set up the largest value.voidsetMinValue(Object minValue) Set up the smallest value.voidsetNullCount(Long nullCount) Set up the number of null values.voidsetPathName(String pathName) Set up the dot-separated path name of the column in the schema.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
-
ParquetColumnChunk
public ParquetColumnChunk()Default constructor.
-
-
Method Details
-
getPathName
Return the dot-separated path name of the column in the schema.- Returns:
- string
-
setPathName
Set up the dot-separated path name of the column in the schema.- Parameters:
pathName- string
-
getCompressionCodec
Return the name of the algorithm used to compress the values (UNCOMPRESSED, SNAPPY, GZIP, ZSTD ...).- Returns:
- string
-
setCompressionCodec
Set up the name of the algorithm used to compress the values.- Parameters:
compressionCodec- string
-
getEncodings
Return the names of the encodings used for the values.- Returns:
- list
-
setEncodings
Set up the names of the encodings used for the values.- Parameters:
encodings- list
-
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
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
Return the number of null values.- Returns:
- count, or null if the writer did not record it
-
setNullCount
Set up the number of null values.- Parameters:
nullCount- count or null
-
getDistinctCount
Return the number of distinct values.- Returns:
- count, or null if the writer did not record it
-
setDistinctCount
Set up the number of distinct values.- Parameters:
distinctCount- count or null
-
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
Set up the smallest value.- Parameters:
minValue- value or null
-
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
Set up the largest value.- Parameters:
maxValue- value or null
-