Package io.trino.plugin.hive
Record Class HiveSplit.BucketConversion
java.lang.Object
java.lang.Record
io.trino.plugin.hive.HiveSplit.BucketConversion
- Enclosing class:
- HiveSplit
public static record HiveSplit.BucketConversion(HiveBucketing.BucketingVersion bucketingVersion, int tableBucketCount, int partitionBucketCount, List<HiveColumnHandle> bucketColumnHandles)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBucketConversion(HiveBucketing.BucketingVersion bucketingVersion, int tableBucketCount, int partitionBucketCount, List<HiveColumnHandle> bucketColumnHandles) Creates an instance of aBucketConversionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebucketColumnHandlesrecord component.Returns the value of thebucketingVersionrecord component.final booleanIndicates whether some other object is "equal to" this one.longfinal inthashCode()Returns a hash code value for this object.intReturns the value of thepartitionBucketCountrecord component.intReturns the value of thetableBucketCountrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BucketConversion
public BucketConversion(HiveBucketing.BucketingVersion bucketingVersion, int tableBucketCount, int partitionBucketCount, List<HiveColumnHandle> bucketColumnHandles) Creates an instance of aBucketConversionrecord class.- Parameters:
bucketingVersion- the value for thebucketingVersionrecord componenttableBucketCount- the value for thetableBucketCountrecord componentpartitionBucketCount- the value for thepartitionBucketCountrecord componentbucketColumnHandles- the value for thebucketColumnHandlesrecord component
-
-
Method Details
-
getRetainedSizeInBytes
public long getRetainedSizeInBytes() -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
bucketingVersion
Returns the value of thebucketingVersionrecord component.- Returns:
- the value of the
bucketingVersionrecord component
-
tableBucketCount
public int tableBucketCount()Returns the value of thetableBucketCountrecord component.- Returns:
- the value of the
tableBucketCountrecord component
-
partitionBucketCount
public int partitionBucketCount()Returns the value of thepartitionBucketCountrecord component.- Returns:
- the value of the
partitionBucketCountrecord component
-
bucketColumnHandles
Returns the value of thebucketColumnHandlesrecord component.- Returns:
- the value of the
bucketColumnHandlesrecord component
-