Skip to content
This repository was archived by the owner on Feb 24, 2026. It is now read-only.

Commit fce5289

Browse files
authored
fix: add a deprecation message on StreamWriter (#922)
* fix: add a deprecation message on StreamWriter; * . * .
1 parent 5a63ea5 commit fce5289

File tree

1 file changed

+6
-5
lines changed
  • google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2

1 file changed

+6
-5
lines changed

google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamWriter.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,9 @@
6161
import org.threeten.bp.Duration;
6262

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

0 commit comments

Comments
 (0)