Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ public interface Options extends PipelineOptions, StreamingOptions {

@Description("The maximum number of output shards produced when writing.")
@Default.Integer(1)
Integer getNumShards();
ValueProvider<Integer> getNumShards();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will not work unfortunately as AvroIO.Write.withNumShards(int) does not support a ValueProvider as an input. The same goes for some of the other parameters below.


void setNumShards(Integer value);
void setNumShards(ValueProvider<Integer> value);

@Description(
"The window duration in which data will be written. Defaults to 5m. "
Expand All @@ -134,9 +134,9 @@ public interface Options extends PipelineOptions, StreamingOptions {
+ "Nm (for minutes, example: 12m), "
+ "Nh (for hours, example: 2h).")
@Default.String("5m")
String getWindowDuration();
ValueProvider<String> getWindowDuration();

void setWindowDuration(String value);
void setWindowDuration(ValueProvider<String> value);

@Description("The Avro Write Temporary Directory. Must end with /")
@Required
Expand Down