public static class BigQueryServicesImpl.WriteStreamServiceImpl extends java.lang.Object implements BigQueryServices.WriteStreamService
| Constructor and Description | 
|---|
| WriteStreamServiceImpl(BigQueryOptions bqOptions) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close() | 
| com.google.api.core.ApiFuture<com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse> | commitWriteStreams(java.lang.String tableUrn,
                  java.lang.Iterable<java.lang.String> writeStreamNames)Commit write streams of type PENDING. | 
| com.google.cloud.bigquery.storage.v1.WriteStream | createWriteStream(java.lang.String tableUrn,
                 com.google.cloud.bigquery.storage.v1.WriteStream.Type type)Create a Write Stream for use with the Storage Write API. | 
| com.google.api.core.ApiFuture<com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse> | finalizeWriteStream(java.lang.String streamName)Finalize a write stream. | 
| com.google.api.core.ApiFuture<com.google.cloud.bigquery.storage.v1.FlushRowsResponse> | flush(java.lang.String streamName,
     long flushOffset)Flush a given stream up to the given offset. | 
| BigQueryServices.StreamAppendClient | getStreamAppendClient(java.lang.String streamName,
                     com.google.protobuf.DescriptorProtos.DescriptorProto descriptor,
                     boolean useConnectionPool,
                     com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation missingValueInterpretation)Create an append client for a given Storage API write stream. | 
| @Nullable com.google.cloud.bigquery.storage.v1.WriteStream | getWriteStream(java.lang.String writeStream) | 
public WriteStreamServiceImpl(BigQueryOptions bqOptions)
public com.google.cloud.bigquery.storage.v1.WriteStream createWriteStream(java.lang.String tableUrn,
                                                                          com.google.cloud.bigquery.storage.v1.WriteStream.Type type)
                                                                   throws java.io.IOException
BigQueryServices.WriteStreamServicecreateWriteStream in interface BigQueryServices.WriteStreamServicejava.io.IOExceptionpublic @Nullable com.google.cloud.bigquery.storage.v1.WriteStream getWriteStream(java.lang.String writeStream)
getWriteStream in interface BigQueryServices.WriteStreamServicepublic BigQueryServices.StreamAppendClient getStreamAppendClient(java.lang.String streamName, com.google.protobuf.DescriptorProtos.DescriptorProto descriptor, boolean useConnectionPool, com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation missingValueInterpretation) throws java.lang.Exception
BigQueryServices.WriteStreamServicegetStreamAppendClient in interface BigQueryServices.WriteStreamServicejava.lang.Exceptionpublic com.google.api.core.ApiFuture<com.google.cloud.bigquery.storage.v1.FlushRowsResponse> flush(java.lang.String streamName,
                                                                                                   long flushOffset)
                                                                                            throws java.io.IOException,
                                                                                                   java.lang.InterruptedException
BigQueryServices.WriteStreamServiceflush in interface BigQueryServices.WriteStreamServicejava.io.IOExceptionjava.lang.InterruptedExceptionpublic com.google.api.core.ApiFuture<com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse> finalizeWriteStream(java.lang.String streamName)
BigQueryServices.WriteStreamServicefinalizeWriteStream in interface BigQueryServices.WriteStreamServicepublic com.google.api.core.ApiFuture<com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse> commitWriteStreams(java.lang.String tableUrn,
                                                                                                                              java.lang.Iterable<java.lang.String> writeStreamNames)
BigQueryServices.WriteStreamServicecommitWriteStreams in interface BigQueryServices.WriteStreamServicepublic void close()
           throws java.lang.Exception
close in interface java.lang.AutoCloseablejava.lang.Exception