你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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