Method | Description | |
---|---|---|
GetPartitionKey ( object document ) : object |
Returns the partition key for the document.
|
|
ResolveForCreate ( object partitionKey ) : string |
Returns the collection to create this document. Returns the last collection.
|
|
ResolveForRead ( object partitionKey ) : IEnumerable |
Returns the collections to read for a partitionKey, based on the TransitionReadMode.
|
|
TransitionHashPartitionResolver ( IPartitionResolver current, IPartitionResolver next, TransitionReadMode readMode = TransitionReadMode.ReadBoth ) : System |
Initializes a new instance of the TransitionHashPartitionResolver class.
|
public GetPartitionKey ( object document ) : object | ||
document | object | The document to locate. |
return | object |
public ResolveForCreate ( object partitionKey ) : string | ||
partitionKey | object | The partition key for the create. |
return | string |
public ResolveForRead ( object partitionKey ) : IEnumerable |
||
partitionKey | object | The partition key for the read. |
return | IEnumerable |
public TransitionHashPartitionResolver ( IPartitionResolver current, IPartitionResolver next, TransitionReadMode readMode = TransitionReadMode.ReadBoth ) : System | ||
current | IPartitionResolver | The current IPartitionResolver. |
next | IPartitionResolver | The next IPartitionResolver. |
readMode | TransitionReadMode | How to handle read requests during transition. |
return | System |