Partager via


PartitionKind Class

public final class PartitionKind
extends ExpandableStringEnum<PartitionKind>

Indicates the kind of algorithm used for partitioning. For MultiHash, multiple partition keys (upto three maximum) are supported for container create.

Field Summary

Modifier and Type Field and Description
static final PartitionKind HASH

Static value Hash for PartitionKind.

static final PartitionKind MULTI_HASH

Static value MultiHash for PartitionKind.

static final PartitionKind RANGE

Static value Range for PartitionKind.

Constructor Summary

Constructor Description
PartitionKind()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of PartitionKind value.

Method Summary

Modifier and Type Method and Description
static PartitionKind fromString(String name)

Creates or finds a PartitionKind from its string representation.

static Collection<PartitionKind> values()

Gets known PartitionKind values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

HASH

public static final PartitionKind HASH

Static value Hash for PartitionKind.

MULTI_HASH

public static final PartitionKind MULTI_HASH

Static value MultiHash for PartitionKind.

RANGE

public static final PartitionKind RANGE

Static value Range for PartitionKind.

Constructor Details

PartitionKind

@Deprecated
public PartitionKind()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of PartitionKind value.

Method Details

fromString

public static PartitionKind fromString(String name)

Creates or finds a PartitionKind from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding PartitionKind.

values

public static Collection values()

Gets known PartitionKind values.

Returns:

known PartitionKind values.

Applies to