From 70878388fd5490a08c75a55799b2681296a90d99 Mon Sep 17 00:00:00 2001 From: "wtanaka.com" Date: Sun, 2 Apr 2017 20:02:02 -1000 Subject: [PATCH] Add javadoc to getEstimatedSizeBytes based on code comment in BoundedReadFromUnboundedSource.java --- .../src/main/java/org/apache/beam/sdk/io/BoundedSource.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sdks/java/core/src/main/java/org/apache/beam/sdk/io/BoundedSource.java b/sdks/java/core/src/main/java/org/apache/beam/sdk/io/BoundedSource.java index 8538e7fc0f17..889f9ab5af57 100644 --- a/sdks/java/core/src/main/java/org/apache/beam/sdk/io/BoundedSource.java +++ b/sdks/java/core/src/main/java/org/apache/beam/sdk/io/BoundedSource.java @@ -61,6 +61,9 @@ public abstract List> splitIntoBundles( * An estimate of the total size (in bytes) of the data that would be read from this source. * This estimate is in terms of external storage size, before any decompression or other * processing done by the reader. + * + * If there is no way to estimate the size of the source + * implementations MAY return 0L */ public abstract long getEstimatedSizeBytes(PipelineOptions options) throws Exception;