C# 클래스 AngularAzureSearch.WebAPI.PartitionResolvers.ManagedHashPartitionResolver

Implement a "managed" hash partition resolver that creates collections as needed.
상속: HashPartitionResolver
파일 보기 프로젝트 열기: TheDarkCode/AngularAzureSearch 1 사용 예제들

공개 메소드들

메소드 설명
ManagedHashPartitionResolver ( string>.Func partitionKeyExtractor, Microsoft.Azure.Documents.Client.DocumentClient client, Microsoft.Azure.Documents.Database database, int numberOfCollections, IHashGenerator hashGenerator = null, DocumentCollectionSpec collectionSpec = null, string collectionIdPrefix = "ManagedHashCollection." ) : System

Initializes a new instance of the ManagedHashPartitionResolver class.

비공개 메소드들

메소드 설명
GetCollections ( Microsoft.Azure.Documents.Client.DocumentClient client, Microsoft.Azure.Documents.Database database, int numberOfCollections, string collectionIdPrefix, DocumentCollectionSpec spec ) : List

Gets or creates the collections for the hash resolver.

메소드 상세

ManagedHashPartitionResolver() 공개 메소드

Initializes a new instance of the ManagedHashPartitionResolver class.
public ManagedHashPartitionResolver ( string>.Func partitionKeyExtractor, Microsoft.Azure.Documents.Client.DocumentClient client, Microsoft.Azure.Documents.Database database, int numberOfCollections, IHashGenerator hashGenerator = null, DocumentCollectionSpec collectionSpec = null, string collectionIdPrefix = "ManagedHashCollection." ) : System
partitionKeyExtractor string>.Func The partition key extractor function.
client Microsoft.Azure.Documents.Client.DocumentClient The DocumentDB client instance.
database Microsoft.Azure.Documents.Database The database to use.
numberOfCollections int the number of collections.
hashGenerator IHashGenerator the hash generator.
collectionSpec AngularAzureSearch.WebAPI.Helpers.DocumentCollectionSpec the specification/template to create collections from.
collectionIdPrefix string the prefix to use for collections.
리턴 System