Record Class SizeStatistics
java.lang.Object
java.lang.Record
dev.hardwood.metadata.SizeStatistics
- Record Components:
unencodedByteArrayDataBytes- total unencoded size of theBYTE_ARRAYdata in this chunk, ornullif absentrepetitionLevelHistogram- number of values at each repetition level0..maxRepetitionLevel, ornullif absentdefinitionLevelHistogram- number of values at each definition level0..maxDefinitionLevel, ornullif absent
public record SizeStatistics(Long unencodedByteArrayDataBytes, long[] repetitionLevelHistogram, long[] definitionLevelHistogram)
extends Record
Size statistics for a column chunk: the unencoded size of its BYTE_ARRAY data
and its repetition- and definition-level histograms.
A level histogram is indexed by level — entry i holds the number of values at
level i, so the histogram has maxLevel + 1 entries. It yields the null and
empty-list counts of a chunk without decoding its level streams.
Every field is optional in the Parquet format. A writer that omits one is
reported as null, which is distinct from a present but empty histogram. The
histograms are the values as the file recorded them and are not copied on the way
in or out.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSizeStatistics(Long unencodedByteArrayDataBytes, long[] repetitionLevelHistogram, long[] definitionLevelHistogram) Creates an instance of aSizeStatisticsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlong[]Returns the value of thedefinitionLevelHistogramrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.long[]Returns the value of therepetitionLevelHistogramrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theunencodedByteArrayDataBytesrecord component.
-
Constructor Details
-
SizeStatistics
public SizeStatistics(Long unencodedByteArrayDataBytes, long[] repetitionLevelHistogram, long[] definitionLevelHistogram) Creates an instance of aSizeStatisticsrecord class.- Parameters:
unencodedByteArrayDataBytes- the value for theunencodedByteArrayDataBytesrecord componentrepetitionLevelHistogram- the value for therepetitionLevelHistogramrecord componentdefinitionLevelHistogram- the value for thedefinitionLevelHistogramrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
unencodedByteArrayDataBytes
Returns the value of theunencodedByteArrayDataBytesrecord component.- Returns:
- the value of the
unencodedByteArrayDataBytesrecord component
-
repetitionLevelHistogram
public long[] repetitionLevelHistogram()Returns the value of therepetitionLevelHistogramrecord component.- Returns:
- the value of the
repetitionLevelHistogramrecord component
-
definitionLevelHistogram
public long[] definitionLevelHistogram()Returns the value of thedefinitionLevelHistogramrecord component.- Returns:
- the value of the
definitionLevelHistogramrecord component
-