Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add a deprecation message on StreamWriter #922

Merged
merged 3 commits into from Mar 24, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -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
Expand All @@ -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());

Expand Down