public abstract static class GroupIntoBatches.BatchingParams<InputT>
extends java.lang.Object
implements java.io.Serializable
GroupIntoBatches
and GroupIntoBatches.WithShardedKey
.Constructor and Description |
---|
BatchingParams() |
Modifier and Type | Method and Description |
---|---|
static <InputT> GroupIntoBatches.BatchingParams<InputT> |
create(long batchSize,
long batchSizeBytes,
SerializableFunction<InputT,java.lang.Long> elementByteSize,
Duration maxBufferingDuration) |
abstract long |
getBatchSize() |
abstract long |
getBatchSizeBytes() |
abstract SerializableFunction<InputT,java.lang.Long> |
getElementByteSize() |
abstract Duration |
getMaxBufferingDuration() |
SerializableFunction<InputT,java.lang.Long> |
getWeigher(Coder<InputT> valueCoder) |
public static <InputT> GroupIntoBatches.BatchingParams<InputT> create(long batchSize, long batchSizeBytes, SerializableFunction<InputT,java.lang.Long> elementByteSize, Duration maxBufferingDuration)
public abstract long getBatchSize()
public abstract long getBatchSizeBytes()
@Nullable public abstract SerializableFunction<InputT,java.lang.Long> getElementByteSize()
public abstract Duration getMaxBufferingDuration()
public SerializableFunction<InputT,java.lang.Long> getWeigher(Coder<InputT> valueCoder)