Package io.trino.plugin.hive
Class BackgroundHiveSplitLoader.BucketSplitInfo
- java.lang.Object
-
- io.trino.plugin.hive.BackgroundHiveSplitLoader.BucketSplitInfo
-
- Enclosing class:
- BackgroundHiveSplitLoader
public static class BackgroundHiveSplitLoader.BucketSplitInfo extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Optional<BackgroundHiveSplitLoader.BucketSplitInfo>createBucketSplitInfo(Optional<HiveBucketHandle> bucketHandle, Optional<HiveBucketing.HiveBucketFilter> bucketFilter)List<HiveColumnHandle>getBucketColumns()HiveBucketing.BucketingVersiongetBucketingVersion()intgetReadBucketCount()intgetTableBucketCount()booleanisTableBucketEnabled(int tableBucketNumber)Evaluates whether the provided table bucket number passes the bucket predicate.
-
-
-
Method Detail
-
createBucketSplitInfo
public static Optional<BackgroundHiveSplitLoader.BucketSplitInfo> createBucketSplitInfo(Optional<HiveBucketHandle> bucketHandle, Optional<HiveBucketing.HiveBucketFilter> bucketFilter)
-
getBucketingVersion
public HiveBucketing.BucketingVersion getBucketingVersion()
-
getBucketColumns
public List<HiveColumnHandle> getBucketColumns()
-
getTableBucketCount
public int getTableBucketCount()
-
getReadBucketCount
public int getReadBucketCount()
-
isTableBucketEnabled
public boolean isTableBucketEnabled(int tableBucketNumber)
Evaluates whether the provided table bucket number passes the bucket predicate. A bucket predicate can be present in two cases:- Filter on "$bucket" column. e.g.
"$bucket" between 0 and 100 - Single-value equality filter on all bucket columns. e.g. for a table with two bucketing columns,
bucketCol1 = 'a' AND bucketCol2 = 123
- Filter on "$bucket" column. e.g.
-
-