你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
DocumentAnalyzer Class
- java.
lang. Object - com.
microsoft. azure. documentdb. bulkexecutor. internal. DocumentAnalyzer
- com.
public class DocumentAnalyzer
Constructor Summary
Constructor | Description | |
---|---|---|
DocumentAnalyzer() |
Method Summary
Modifier and Type | Method and Description |
---|---|
static com.microsoft.azure.documentdb.internal.routing.PartitionKeyInternal |
extractPartitionKeyValue(String documentAsString, PartitionKeyDefinition partitionKeyDefinition)
Extracts effective PartitionKeyInternal from serialized document. |
static com.microsoft.azure.documentdb.internal.routing.PartitionKeyInternal | fromPartitionKeyvalue(Object partitionKeyValue) |
Methods inherited from java.lang.Object
java.lang.Object.clone
java.lang.Object.equals
java.lang.Object.finalize
java.lang.Object.getClass
java.lang.Object.hashCode
java.lang.Object.notify
java.lang.Object.notifyAll
java.lang.Object.toString
java.lang.Object.wait
java.lang.Object.wait
java.lang.Object.wait
Constructor Details
DocumentAnalyzer
public DocumentAnalyzer()
Method Details
extractPartitionKeyValue
public static PartitionKeyInternal extractPartitionKeyValue(String documentAsString, PartitionKeyDefinition partitionKeyDefinition)
Extracts effective PartitionKeyInternal from serialized document.
Parameters:
documentAsString
- Serialized document to extract partition key value from.
partitionKeyDefinition
- Information about partition key.
Returns:
PartitionKeyInternal
fromPartitionKeyvalue
public static PartitionKeyInternal fromPartitionKeyvalue(Object partitionKeyValue)
Parameters:
partitionKeyValue