Google Cloud BigQuery C++ Client  2.1.0
A C++ Client Library for Google Cloud BigQuery
Public Member Functions | List of all members
google::cloud::bigquery::BigQueryWriteConnection Class Referenceabstract

The BigQueryWriteConnection object for BigQueryWriteClient. More...

#include <google/cloud/bigquery/bigquery_write_connection.h>

Public Member Functions

virtual ~BigQueryWriteConnection ()=0
 
virtual Options options ()
 
virtual StatusOr< google::cloud::bigquery::storage::v1::WriteStream > CreateWriteStream (google::cloud::bigquery::storage::v1::CreateWriteStreamRequest const &request)
 
virtual std::unique_ptr<::google::cloud::AsyncStreamingReadWriteRpc< google::cloud::bigquery::storage::v1::AppendRowsRequest, google::cloud::bigquery::storage::v1::AppendRowsResponse > > AsyncAppendRows (ExperimentalTag)
 
virtual StatusOr< google::cloud::bigquery::storage::v1::WriteStream > GetWriteStream (google::cloud::bigquery::storage::v1::GetWriteStreamRequest const &request)
 
virtual StatusOr< google::cloud::bigquery::storage::v1::FinalizeWriteStreamResponse > FinalizeWriteStream (google::cloud::bigquery::storage::v1::FinalizeWriteStreamRequest const &request)
 
virtual StatusOr< google::cloud::bigquery::storage::v1::BatchCommitWriteStreamsResponse > BatchCommitWriteStreams (google::cloud::bigquery::storage::v1::BatchCommitWriteStreamsRequest const &request)
 
virtual StatusOr< google::cloud::bigquery::storage::v1::FlushRowsResponse > FlushRows (google::cloud::bigquery::storage::v1::FlushRowsRequest const &request)
 

Detailed Description

The BigQueryWriteConnection object for BigQueryWriteClient.

This interface defines virtual methods for each of the user-facing overload sets in BigQueryWriteClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type BigQueryWriteClient.

To create a concrete instance, see MakeBigQueryWriteConnection().

For mocking, see bigquery_mocks::MockBigQueryWriteConnection.

Definition at line 62 of file bigquery_write_connection.h.

Constructor & Destructor Documentation

◆ ~BigQueryWriteConnection()

virtual google::cloud::bigquery::BigQueryWriteConnection::~BigQueryWriteConnection ( )
pure virtual

Member Function Documentation

◆ AsyncAppendRows()

virtual std::unique_ptr<::google::cloud::AsyncStreamingReadWriteRpc< google::cloud::bigquery::storage::v1::AppendRowsRequest, google::cloud::bigquery::storage::v1::AppendRowsResponse> > google::cloud::bigquery::BigQueryWriteConnection::AsyncAppendRows ( ExperimentalTag  )
virtual

◆ BatchCommitWriteStreams()

virtual StatusOr< google::cloud::bigquery::storage::v1::BatchCommitWriteStreamsResponse> google::cloud::bigquery::BigQueryWriteConnection::BatchCommitWriteStreams ( google::cloud::bigquery::storage::v1::BatchCommitWriteStreamsRequest const &  request)
virtual

◆ CreateWriteStream()

virtual StatusOr<google::cloud::bigquery::storage::v1::WriteStream> google::cloud::bigquery::BigQueryWriteConnection::CreateWriteStream ( google::cloud::bigquery::storage::v1::CreateWriteStreamRequest const &  request)
virtual

◆ FinalizeWriteStream()

virtual StatusOr< google::cloud::bigquery::storage::v1::FinalizeWriteStreamResponse> google::cloud::bigquery::BigQueryWriteConnection::FinalizeWriteStream ( google::cloud::bigquery::storage::v1::FinalizeWriteStreamRequest const &  request)
virtual

◆ FlushRows()

virtual StatusOr<google::cloud::bigquery::storage::v1::FlushRowsResponse> google::cloud::bigquery::BigQueryWriteConnection::FlushRows ( google::cloud::bigquery::storage::v1::FlushRowsRequest const &  request)
virtual

◆ GetWriteStream()

virtual StatusOr<google::cloud::bigquery::storage::v1::WriteStream> google::cloud::bigquery::BigQueryWriteConnection::GetWriteStream ( google::cloud::bigquery::storage::v1::GetWriteStreamRequest const &  request)
virtual

◆ options()

virtual Options google::cloud::bigquery::BigQueryWriteConnection::options ( )
inlinevirtual

Definition at line 66 of file bigquery_write_connection.h.