Record Class ColumnMetaData
java.lang.Object
java.lang.Record
dev.hardwood.metadata.ColumnMetaData
- Record Components:
type- physical (storage) type of the columnencodings- list of encodings used in this column chunk (including dictionary encoding if present)pathInSchema- path from the root schema to this columncodec- compression codec used for pages in this column chunknumValues- total number of values (including nulls) in this column chunktotalUncompressedSize- total uncompressed byte size of all pages in this column chunktotalCompressedSize- total compressed byte size of all pages in this column chunk (as stored on disk)keyValueMetadata- application-defined key-value metadata for this column, or an empty map if absentdataPageOffset- byte offset in the file where the first data page beginsdictionaryPageOffset- byte offset in the file where the dictionary page begins, ornullif there is no dictionary pagestatistics- column chunk statistics (min/max values, null count, distinct count), ornullif absent
public record ColumnMetaData(PhysicalType type, List<Encoding> encodings, FieldPath pathInSchema, CompressionCodec codec, long numValues, long totalUncompressedSize, long totalCompressedSize, Map<String,String> keyValueMetadata, long dataPageOffset, Long dictionaryPageOffset, Statistics statistics)
extends Record
Metadata for a column chunk.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionColumnMetaData(PhysicalType type, List<Encoding> encodings, FieldPath pathInSchema, CompressionCodec codec, long numValues, long totalUncompressedSize, long totalCompressedSize, Map<String, String> keyValueMetadata, long dataPageOffset, Long dictionaryPageOffset, Statistics statistics) Creates an instance of aColumnMetaDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptioncodec()Returns the value of thecodecrecord component.longReturns the value of thedataPageOffsetrecord component.Returns the value of thedictionaryPageOffsetrecord component.Returns the value of theencodingsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thekeyValueMetadatarecord component.longReturns the value of thenumValuesrecord component.Returns the value of thepathInSchemarecord component.Returns the value of thestatisticsrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalCompressedSizerecord component.longReturns the value of thetotalUncompressedSizerecord component.type()Returns the value of thetyperecord component.
-
Constructor Details
-
ColumnMetaData
public ColumnMetaData(PhysicalType type, List<Encoding> encodings, FieldPath pathInSchema, CompressionCodec codec, long numValues, long totalUncompressedSize, long totalCompressedSize, Map<String, String> keyValueMetadata, long dataPageOffset, Long dictionaryPageOffset, Statistics statistics) Creates an instance of aColumnMetaDatarecord class.- Parameters:
type- the value for thetyperecord componentencodings- the value for theencodingsrecord componentpathInSchema- the value for thepathInSchemarecord componentcodec- the value for thecodecrecord componentnumValues- the value for thenumValuesrecord componenttotalUncompressedSize- the value for thetotalUncompressedSizerecord componenttotalCompressedSize- the value for thetotalCompressedSizerecord componentkeyValueMetadata- the value for thekeyValueMetadatarecord componentdataPageOffset- the value for thedataPageOffsetrecord componentdictionaryPageOffset- the value for thedictionaryPageOffsetrecord componentstatistics- the value for thestatisticsrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
type
-
encodings
-
pathInSchema
Returns the value of thepathInSchemarecord component.- Returns:
- the value of the
pathInSchemarecord component
-
codec
-
numValues
-
totalUncompressedSize
public long totalUncompressedSize()Returns the value of thetotalUncompressedSizerecord component.- Returns:
- the value of the
totalUncompressedSizerecord component
-
totalCompressedSize
public long totalCompressedSize()Returns the value of thetotalCompressedSizerecord component.- Returns:
- the value of the
totalCompressedSizerecord component
-
keyValueMetadata
Returns the value of thekeyValueMetadatarecord component.- Returns:
- the value of the
keyValueMetadatarecord component
-
dataPageOffset
public long dataPageOffset()Returns the value of thedataPageOffsetrecord component.- Returns:
- the value of the
dataPageOffsetrecord component
-
dictionaryPageOffset
Returns the value of thedictionaryPageOffsetrecord component.- Returns:
- the value of the
dictionaryPageOffsetrecord component
-
statistics
Returns the value of thestatisticsrecord component.- Returns:
- the value of the
statisticsrecord component
-