Package io.trino.parquet.writer.repdef
Record Class DefLevelWriterProvider.ValuesCount
java.lang.Object
java.lang.Record
io.trino.parquet.writer.repdef.DefLevelWriterProvider.ValuesCount
- Enclosing interface:
- DefLevelWriterProvider
public static record DefLevelWriterProvider.ValuesCount(int totalValuesCount, int maxDefinitionLevelValuesCount)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionValuesCount(int totalValuesCount, int maxDefinitionLevelValuesCount) Creates an instance of aValuesCountrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themaxDefinitionLevelValuesCountrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalValuesCountrecord component.
-
Constructor Details
-
ValuesCount
public ValuesCount(int totalValuesCount, int maxDefinitionLevelValuesCount) Creates an instance of aValuesCountrecord class.- Parameters:
totalValuesCount- the value for thetotalValuesCountrecord componentmaxDefinitionLevelValuesCount- the value for themaxDefinitionLevelValuesCountrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 with '=='. -
totalValuesCount
public int totalValuesCount()Returns the value of thetotalValuesCountrecord component.- Returns:
- the value of the
totalValuesCountrecord component
-
maxDefinitionLevelValuesCount
public int maxDefinitionLevelValuesCount()Returns the value of themaxDefinitionLevelValuesCountrecord component.- Returns:
- the value of the
maxDefinitionLevelValuesCountrecord component
-