PartitionKind Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. resourcemanager. cosmos. models. PartitionKind
- com.
- com.
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
Partition |
HASH
Static value Hash for Partition |
static final
Partition |
MULTI_HASH
Static value Multi |
static final
Partition |
RANGE
Static value Range for Partition |
Constructor Summary
Constructor | Description |
---|---|
PartitionKind() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Partition |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Partition |
fromString(String name)
Creates or finds a Partition |
static
Collection<Partition |
values()
Gets known Partition |
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
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:
Returns:
values
public static Collection
Gets known PartitionKind values.
Returns:
Applies to
Azure SDK for Java