Skip to content
Permalink
Browse files
fix: add a deprecation message on StreamWriter (#922)
* fix: add a deprecation message on StreamWriter;

* .

* .
  • Loading branch information
yirutang committed Mar 24, 2021
1 parent 5a63ea5 commit fce52890c6948a9b78a62d2fe0e4f9768d10d401
Showing with 6 additions and 5 deletions.
  1. +6 −5 ...e-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamWriter.java
@@ -61,11 +61,9 @@
import org.threeten.bp.Duration;

/**
* A BigQuery Stream Writer that can be used to write data into BigQuery Table.
*
* <p>This is to be used to managed streaming write when you are working with PENDING streams or
* want to explicitly manage offset. In that most common cases when writing with COMMITTED stream
* without offset, please use a simpler writer {@code DirectWriter}.
* This is to be used to managed streaming write when you are working with PENDING streams or want
* to explicitly manage offset. In that most common cases when writing with COMMITTED stream without
* offset, please use a simpler writer {@code DirectWriter}.
*
* <p>A {@link StreamWrier} provides built-in capabilities to: handle batching of messages;
* controlling memory utilization (through flow control) and request cleanup (only keeps write
@@ -80,7 +78,10 @@
*
* <p>{@link StreamWriter} will use the credentials set on the channel, which uses application
* default credentials through {@link GoogleCredentials#getApplicationDefault} by default.
*
* @deprecated use {@link #StreamWriterV2()} instead.
*/
@Deprecated
public class StreamWriter implements AutoCloseable {
private static final Logger LOG = Logger.getLogger(StreamWriter.class.getName());

0 comments on commit fce5289

Please sign in to comment.