public QueryPlanHandler(CosmosQueryClient queryClient) { if (queryClient == null) { throw new ArgumentNullException($"{nameof(queryClient)}"); } this.queryClient = queryClient; }
internal CosmosItemsCore( CosmosClientContext clientContext, CosmosContainerCore container, CosmosQueryClient queryClient = null) { this.clientContext = clientContext; this.container = container; this.cachedUriSegmentWithoutId = this.GetResourceSegmentUriWithoutId(); this.queryClient = queryClient ?? new CosmosQueryClientCore(this.clientContext, container); }
internal ContainerInlineCore( CosmosClientContext clientContext, DatabaseInternal database, string containerId, CosmosQueryClient cosmosQueryClient = null) : base(clientContext, database, containerId, cosmosQueryClient) { }
protected ContainerCore( CosmosClientContext clientContext, DatabaseInternal database, string containerId, CosmosQueryClient cosmosQueryClient = null) { this.Id = containerId; this.ClientContext = clientContext; this.LinkUri = clientContext.CreateLink( parentLink: database.LinkUri.OriginalString, uriPathSegment: Paths.CollectionsPathSegment, id: containerId); this.Database = database; this.Conflicts = new ConflictsInlineCore(this.ClientContext, this); this.Scripts = new ScriptsInlineCore(this, this.ClientContext); this.cachedUriSegmentWithoutId = this.GetResourceSegmentUriWithoutId(); this.queryClient = cosmosQueryClient ?? new CosmosQueryClientCore(this.ClientContext, this); this.lazyBatchExecutor = new Lazy <BatchAsyncContainerExecutor>(() => this.ClientContext.GetExecutorForContainer(this)); }
internal ContainerCore( CosmosClientContext clientContext, DatabaseCore database, string containerId, CosmosQueryClient cosmosQueryClient = null) { this.Id = containerId; this.ClientContext = clientContext; this.LinkUri = clientContext.CreateLink( parentLink: database.LinkUri.OriginalString, uriPathSegment: Paths.CollectionsPathSegment, id: containerId); this.Database = database; this.Conflicts = new ConflictsInlineCore(new ConflictsCore(this.ClientContext, this)); this.Scripts = new ScriptsInlineCore(new ScriptsCore(this, this.ClientContext)); this.cachedUriSegmentWithoutId = this.GetResourceSegmentUriWithoutId(); this.queryClient = cosmosQueryClient ?? new CosmosQueryClientCore(this.ClientContext, this); this.BatchExecutor = this.InitializeBatchExecutorForContainer(); }