Delen via


PartitionKind Enum

  • java.lang.Object
    • java.lang.Enum
      • com.azure.cosmos.models.PartitionKind

public enum PartitionKind
extends Enum<PartitionKind>

Specifies the partition scheme for a multiple-partitioned container in the Azure Cosmos DB database service.

Fields

HASH

The Partition of an item is calculated based on the hash value of the PartitionKey.

MULTI_HASH

The Partition of an item is calculated based on the hash value of multiple PartitionKeys.

RANGE

The Partition of an item is calculated based on a range.

Methods inherited from java.lang.Enum

Methods inherited from java.lang.Object

Methods

toString()

public String toString()

Returns

Overrides
java.lang.Enum.toString()

valueOf(String name)

public static PartitionKind valueOf(String name)

Parameters

name
String

Returns

values()

public static PartitionKind[] values()

Returns

Applies to