@Documented @Retention(value=RUNTIME) @Target(value=METHOD) @Experimental(value=SPLITTABLE_DO_FN) public static @interface DoFn.GetSize
Signature: double getSize(InputT element, RestrictionT restriction);
Returns a double representing the size of the element and restriction.
A representation for the amount of known work represented as a size. Size representations
should preferably represent a linear space and be comparable within the same partition (see
DoFn.GetPartition
for details on partition identifiers}).
Splittable DoFn
s should only provide this method if the default implementation
within the RestrictionTracker
is an inaccurate representation of known work.
It is up to each splittable to convert between their natural representation of outstanding work and this representation. For example:
message bytes
that have not been processed.