public enum HashPartitionFunction extends Enum<HashPartitionFunction>
HashBasedNumberedShardSpec which is stored in the metadata store.| Enum Constant and Description |
|---|
MURMUR3_32_ABS |
| Modifier and Type | Method and Description |
|---|---|
static HashPartitionFunction |
fromString(String type) |
abstract int |
hash(byte[] serializedRow,
int numBuckets)
Returns an ID of a hash bucket for the given
serializedRow. |
String |
toString() |
static HashPartitionFunction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HashPartitionFunction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HashPartitionFunction MURMUR3_32_ABS
public static HashPartitionFunction[] values()
for (HashPartitionFunction c : HashPartitionFunction.values()) System.out.println(c);
public static HashPartitionFunction valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic abstract int hash(byte[] serializedRow,
int numBuckets)
serializedRow.public static HashPartitionFunction fromString(String type)
public String toString()
toString in class Enum<HashPartitionFunction>Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.