Property | Type | Description | |
---|---|---|---|
CreateCollectionIfRequired | void | ||
GetCollections | List |
||
ShouldCreateCollection | bool |
Method | Description | |
---|---|---|
GetPartitionKey ( object document ) : object |
Returns the partition key for the document. Bypass by returning null.
|
|
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 document. Here we return all collections.
|
|
SpilloverPartitionResolver ( Microsoft.Azure.Documents.Client.DocumentClient client, Microsoft.Azure.Documents.Database database, |
Initializes a new instance of the SpilloverPartitionResolver class.
|
Method | Description | |
---|---|---|
CreateCollectionIfRequired ( ) : void | ||
GetCollections ( Microsoft.Azure.Documents.Client.DocumentClient client, Microsoft.Azure.Documents.Database database, string collectionIdPrefix, |
Gets or creates the collections for the hash resolver.
|
|
ShouldCreateCollection ( ) : bool |
Check if a spillover has to be scheduled.
|
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 SpilloverPartitionResolver ( Microsoft.Azure.Documents.Client.DocumentClient client, Microsoft.Azure.Documents.Database database, |
||
client | Microsoft.Azure.Documents.Client.DocumentClient | The DocumentDB client instance. |
database | Microsoft.Azure.Documents.Database | The database to use. |
collectionSpec | The specification/template to create collections from. | |
collectionIdPrefix | string | The prefix to use for collections. |
fillFactor | double | The fill factor for spilling over collections. |
checkIntervalSeconds | double | The interval between collection size checks. |
return | System |