Record Class ColumnMetaData
java.lang.Object
java.lang.Record
dev.hardwood.metadata.ColumnMetaData
public record ColumnMetaData(PhysicalType type, List<Encoding> encodings, List<String> pathInSchema, CompressionCodec codec, long numValues, long totalUncompressedSize, long totalCompressedSize, long dataPageOffset, Long dictionaryPageOffset)
extends Record
Metadata for a column chunk.
-
Constructor Summary
ConstructorsConstructorDescriptionColumnMetaData(PhysicalType type, List<Encoding> encodings, List<String> pathInSchema, CompressionCodec codec, long numValues, long totalUncompressedSize, long totalCompressedSize, long dataPageOffset, Long dictionaryPageOffset) 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.longReturns the value of thenumValuesrecord component.Returns the value of thepathInSchemarecord 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, List<String> pathInSchema, CompressionCodec codec, long numValues, long totalUncompressedSize, long totalCompressedSize, long dataPageOffset, Long dictionaryPageOffset) 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 componentdataPageOffset- the value for thedataPageOffsetrecord componentdictionaryPageOffset- the value for thedictionaryPageOffsetrecord 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
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
encodings
-
pathInSchema
-
codec
Returns the value of thecodecrecord component.- Returns:
- the value of the
codecrecord component
-
numValues
public long numValues()Returns the value of thenumValuesrecord component.- Returns:
- the value of the
numValuesrecord component
-
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
-
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
-