Record Class HiveBucketHandle
java.lang.Object
java.lang.Record
io.trino.plugin.hive.HiveBucketHandle
- Record Components:
tableBucketCount- Number of buckets in the table, as specified in table metadatareadBucketCount- Number of buckets the table will appear to have when the Hive connector presents the table to the engine for read.
public record HiveBucketHandle(List<HiveColumnHandle> columns, HiveBucketing.BucketingVersion bucketingVersion, int tableBucketCount, int readBucketCount, List<SortingColumn> sortedBy)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionHiveBucketHandle(List<HiveColumnHandle> columns, HiveBucketing.BucketingVersion bucketingVersion, int tableBucketCount, int readBucketCount, List<SortingColumn> sortedBy) Creates an instance of aHiveBucketHandlerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebucketingVersionrecord component.columns()Returns the value of thecolumnsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thereadBucketCountrecord component.sortedBy()Returns the value of thesortedByrecord component.intReturns the value of thetableBucketCountrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HiveBucketHandle
public HiveBucketHandle(List<HiveColumnHandle> columns, HiveBucketing.BucketingVersion bucketingVersion, int tableBucketCount, int readBucketCount, List<SortingColumn> sortedBy) Creates an instance of aHiveBucketHandlerecord class.- Parameters:
columns- the value for thecolumnsrecord componentbucketingVersion- the value for thebucketingVersionrecord componenttableBucketCount- the value for thetableBucketCountrecord componentreadBucketCount- the value for thereadBucketCountrecord componentsortedBy- the value for thesortedByrecord component
-
-
Method Details
-
toTableBucketProperty
-
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. -
columns
Returns the value of thecolumnsrecord component.- Returns:
- the value of the
columnsrecord component
-
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
-
readBucketCount
public int readBucketCount()Returns the value of thereadBucketCountrecord component.- Returns:
- the value of the
readBucketCountrecord component
-
sortedBy
Returns the value of thesortedByrecord component.- Returns:
- the value of the
sortedByrecord component
-