Пример #1
0
 internal ReadRowsStream(
     BigtableClientImpl client,
     ReadRowsRequest originalRequest,
     CallSettings callSettings,
     RetrySettings retrySettings)
 {
     _enumerator = new RowAsyncEnumerator(client, originalRequest, callSettings, retrySettings);
 }
        private ReadRowsStream ReadRowsImpl(ReadRowsRequest request, CallSettings callSettings)
        {
            var defaultSettings        = _client.DefaultSettings ?? new BigtableServiceApiSettings();
            var effectiveCallSettings  = defaultSettings.ReadRowsSettings.MergedWith(callSettings);
            var effectiveRetrySettings = defaultSettings.ReadRowsRetrySettings;

            return(new ReadRowsStream(this, request, effectiveCallSettings, effectiveRetrySettings));
        }
Пример #3
0
        /// <inheritdoc/>
        public override ReadRowsStream ReadRows(
            ReadRowsRequest request,
            gaxgrpc::CallSettings callSettings = null)
        {
            if (request.AppProfileId == null)
            {
                request.AppProfileId = _appProfileId;
            }

            return(ReadRowsImpl(request, callSettings));
        }
Пример #4
0
        /// <inheritdoc/>
        public override ReadRowsStream ReadRows(
            ReadRowsRequest request,
            gaxgrpc::CallSettings callSettings = null)
        {
            if (request.AppProfileId == null)
            {
                request.AppProfileId = _appProfileId;
            }

            return(ConvertResult(request, callSettings, GetUnderlyingClient().ReadRows(request, callSettings)));
        }
Пример #5
0
 internal ReadRowsStream(
     BigtableClientImpl client,
     ReadRowsRequest originalRequest,
     CallSettings callSettings,
     RetrySettings retrySettings)
 {
     _client          = client;
     _originalRequest = originalRequest;
     _callSettings    = callSettings;
     _retrySettings   = retrySettings;
 }
        public RowAsyncEnumerator(
            BigtableClientImpl client,
            ReadRowsRequest originalRequest,
            CallSettings callSettings,
            RetrySettings retrySettings)
        {
            _client        = client;
            _callSettings  = callSettings;
            _retrySettings = retrySettings;

            _requestManager = new BigtableReadRowsRequestManager(originalRequest);
        }
Пример #7
0
 internal ReadRowsStream(
     BigtableClientImpl client,
     ReadRowsRequest originalRequest,
     CallSettings callSettings,
     RetrySettings retrySettings,
     BigtableServiceApiClient.ReadRowsStream underlyingStream)
 {
     _client           = client;
     _originalRequest  = originalRequest;
     _callSettings     = callSettings;
     _retrySettings    = retrySettings;
     _underlyingStream = underlyingStream;
 }
        public RowAsyncEnumerator(
            BigtableClientImpl client,
            ReadRowsRequest originalRequest,
            CallSettings callSettings,
            RetrySettings retrySettings,
            BigtableServiceApiClient.ReadRowsStream stream)
        {
            _client        = client;
            _callSettings  = callSettings;
            _retrySettings = retrySettings;
            _stream        = stream;

            _requestManager = new BigtableReadRowsRequestManager(originalRequest);
        }
Пример #9
0
 /// <summary>Streams back the contents of all requested rows in key order, optionally applying the same Reader filter to each.</summary>
 /// <param name="request">
 /// The request object containing all of the parameters for the API call.
 /// If the <see cref="ReadRowsRequest.AppProfileId"/> has not been specified, it will be initialized from the value stored in the client.
 /// </param>
 /// <param name="callSettings">
 /// If not null, applies overrides to this RPC call.
 /// </param>
 /// <returns>
 /// The server stream.
 /// </returns>
 public virtual ReadRowsStream ReadRows(
     ReadRowsRequest request,
     gaxgrpc::CallSettings callSettings = null)
 {
     throw new sys::NotImplementedException();
 }
 partial void Modify_ReadRowsRequest(ref ReadRowsRequest request, ref CallSettings settings) =>
 TryApplyAppProfileId(request, r => r.AppProfileId, (r, a) => r.AppProfileId = a);
 partial void Modify_ReadRowsRequest(ref ReadRowsRequest request, ref CallSettings settings) =>
 ApplyResourcePrefixHeader(ref settings, request.TableName);
 /// <summary>
 /// Constructor for <see cref="BigtableReadRowsRequestManager"/>.
 /// </summary>
 /// <param name="originalRequest">
 /// Original ReadRowsRequest containing all of the parameters of the API call.
 /// </param>
 internal BigtableReadRowsRequestManager(ReadRowsRequest originalRequest) => _originalRequest = originalRequest;
Пример #13
0
 /// <inheritdoc/>
 public override ReadRowsStream ReadRows(ReadRowsRequest request, gaxgrpc::CallSettings callSettings = null) => ReadRowsImpl(request, callSettings);
 internal BigtableServiceApiClient.ReadRowsStream ReadRowsInternal(ReadRowsRequest request, CallSettings callSettings) =>
 _client.ReadRows(request, callSettings);