public class HivePartitioningHandle extends Object implements ConnectorPartitioningHandle
Constructor and Description |
---|
HivePartitioningHandle(int bucketCount,
OptionalInt maxCompatibleBucketCount,
BucketFunctionType bucketFunctionType,
Optional<List<HiveType>> hiveTypes,
Optional<List<Type>> types) |
Modifier and Type | Method and Description |
---|---|
static HivePartitioningHandle |
createHiveCompatiblePartitioningHandle(int bucketCount,
List<HiveType> hiveTypes,
OptionalInt maxCompatibleBucketCount) |
static HivePartitioningHandle |
createPrestoNativePartitioningHandle(int bucketCount,
List<Type> types,
OptionalInt maxCompatibleBucketCount) |
boolean |
equals(Object o) |
int |
getBucketCount() |
BucketFunctionType |
getBucketFunctionType() |
Optional<List<HiveType>> |
getHiveTypes() |
OptionalInt |
getMaxCompatibleBucketCount() |
Optional<List<Type>> |
getTypes() |
int |
hashCode() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isCoordinatorOnly, isSingleNode
public HivePartitioningHandle(int bucketCount, OptionalInt maxCompatibleBucketCount, BucketFunctionType bucketFunctionType, Optional<List<HiveType>> hiveTypes, Optional<List<Type>> types)
public static HivePartitioningHandle createHiveCompatiblePartitioningHandle(int bucketCount, List<HiveType> hiveTypes, OptionalInt maxCompatibleBucketCount)
public static HivePartitioningHandle createPrestoNativePartitioningHandle(int bucketCount, List<Type> types, OptionalInt maxCompatibleBucketCount)
public int getBucketCount()
public OptionalInt getMaxCompatibleBucketCount()
public BucketFunctionType getBucketFunctionType()
Copyright © 2012–2020. All rights reserved.