public class TableDataWriteChannel extends BaseWriteChannel<BigQueryOptions,WriteChannelConfiguration>
WriteChannel implementation to stream data into a BigQuery table. Use getJob()
to get the job used to insert streamed data. Please notice that getJob() returns
null until the channel is closed.BaseWriteChannel.BaseState<ServiceOptionsT extends ServiceOptions<?,ServiceOptionsT>,EntityT extends Serializable>| Modifier and Type | Method and Description |
|---|---|
protected void |
flushBuffer(int length,
boolean last) |
Job |
getJob()
Returns the
Job created to insert the rows. |
protected com.google.cloud.bigquery.TableDataWriteChannel.StateImpl.Builder |
stateBuilder() |
capture, close, getBuffer, getChunkSize, getDefaultChunkSize, getEntity, getLimit, getMinChunkSize, getOptions, getPosition, getUploadId, isOpen, restore, setChunkSize, writeprotected void flushBuffer(int length,
boolean last)
flushBuffer in class BaseWriteChannel<BigQueryOptions,WriteChannelConfiguration>protected com.google.cloud.bigquery.TableDataWriteChannel.StateImpl.Builder stateBuilder()
stateBuilder in class BaseWriteChannel<BigQueryOptions,WriteChannelConfiguration>public Job getJob()
Job created to insert the rows. The job is available only once the upload
finished and the channel was closed, returns null otherwise.Copyright © 2018 Google. All rights reserved.