Record Class HiveWritableTableHandle.BucketInfo
java.lang.Object
java.lang.Record
io.trino.plugin.hive.HiveWritableTableHandle.BucketInfo
- Enclosing class:
HiveWritableTableHandle
public static record HiveWritableTableHandle.BucketInfo(List<String> bucketedBy, HiveBucketing.BucketingVersion bucketingVersion, int bucketCount, List<SortingColumn> sortedBy)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBucketInfo(List<String> bucketedBy, HiveBucketing.BucketingVersion bucketingVersion, int bucketCount, List<SortingColumn> sortedBy) Creates an instance of aBucketInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebucketCountrecord component.Returns the value of thebucketedByrecord component.Returns the value of thebucketingVersionrecord component.createBucketInfo(Table table) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.sortedBy()Returns the value of thesortedByrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BucketInfo
public BucketInfo(List<String> bucketedBy, HiveBucketing.BucketingVersion bucketingVersion, int bucketCount, List<SortingColumn> sortedBy) Creates an instance of aBucketInforecord class.- Parameters:
bucketedBy- the value for thebucketedByrecord componentbucketingVersion- the value for thebucketingVersionrecord componentbucketCount- the value for thebucketCountrecord componentsortedBy- the value for thesortedByrecord component
-
-
Method Details
-
createBucketInfo
-
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. -
bucketedBy
-
bucketingVersion
Returns the value of thebucketingVersionrecord component.- Returns:
- the value of the
bucketingVersionrecord component
-
bucketCount
public int bucketCount()Returns the value of thebucketCountrecord component.- Returns:
- the value of the
bucketCountrecord component
-
sortedBy
Returns the value of thesortedByrecord component.- Returns:
- the value of the
sortedByrecord component
-