azure-docs-sdk-java/docs-ref-autogen/com.microsoft.azure.documen...

46 строки
2.9 KiB
YAML

### YamlMime:JavaType
uid: "com.microsoft.azure.documentdb.PartitionResolver"
fullName: "com.microsoft.azure.documentdb.PartitionResolver"
name: "PartitionResolver"
nameWithType: "PartitionResolver"
summary: "This is an interface to be implemented for partitioning scenarios and register it at the document client level in the Azure Cosmos DB database service."
syntax: "</br>public interface **PartitionResolver**"
methods:
- uid: "com.microsoft.azure.documentdb.PartitionResolver.resolveForCreate(java.lang.Object)"
fullName: "com.microsoft.azure.documentdb.PartitionResolver.resolveForCreate(Object document)"
name: "resolveForCreate(Object document)"
nameWithType: "PartitionResolver.resolveForCreate(Object document)"
summary: "Gets the collection Self Link or ID based link on which create operation should be directed"
modifiers:
- "abstract"
parameters:
- description: "the document object to be created"
name: "document"
type: "<xref href=\"java.lang.Object?alt=java.lang.Object&text=Object\" data-throw-if-not-resolved=\"False\" />"
syntax: "public abstract String resolveForCreate(Object document)"
desc: "Gets the collection Self Link or ID based link on which create operation should be directed"
returns:
description: "collection SelfLink or ID based link"
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.documentdb.PartitionResolver.resolveForRead(java.lang.Object)"
fullName: "com.microsoft.azure.documentdb.PartitionResolver.resolveForRead(Object partitionKey)"
name: "resolveForRead(Object partitionKey)"
nameWithType: "PartitionResolver.resolveForRead(Object partitionKey)"
summary: "Gets an iterator of strings representing Self<wbr>Link(s) or ID based link(s) on which read/query operation should be directed"
modifiers:
- "abstract"
parameters:
- description: "partition key used to resolve the collection"
name: "partitionKey"
type: "<xref href=\"java.lang.Object?alt=java.lang.Object&text=Object\" data-throw-if-not-resolved=\"False\" />"
syntax: "public abstract Iterable<String> resolveForRead(Object partitionKey)"
desc: "Gets an iterator of strings representing SelfLink(s) or ID based link(s) on which read/query operation should be directed"
returns:
description: "An iterator of strings representing SelfLink(s) or ID based link(s)"
type: "<xref href=\"java.lang.Iterable?alt=java.lang.Iterable&text=Iterable\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />&gt;"
type: "interface"
desc: "This is an interface to be implemented for partitioning scenarios and register it at the document client level in the Azure Cosmos DB database service."
metadata: {}
package: "com.microsoft.azure.documentdb"
artifact: com.microsoft.azure:azure-documentdb:2.4.7