Package org.apache.beam.sdk.transforms
Class GroupIntoBatches.BatchingParams<InputT>
java.lang.Object
org.apache.beam.sdk.transforms.GroupIntoBatches.BatchingParams<InputT>
- All Implemented Interfaces:
 Serializable
- Enclosing class:
 GroupIntoBatches<K,InputT> 
public abstract static class GroupIntoBatches.BatchingParams<InputT>
extends Object
implements Serializable
Wrapper class for batching parameters supplied by users. Shared by both 
GroupIntoBatches and GroupIntoBatches.WithShardedKey.- See Also:
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic <InputT> GroupIntoBatches.BatchingParams<InputT> create(long batchSize, long batchSizeBytes, SerializableFunction<InputT, Long> elementByteSize, Duration maxBufferingDuration) static <InputT> GroupIntoBatches.BatchingParams<InputT> abstract longabstract longabstract SerializableFunction<InputT, Long> abstract DurationgetWeigher(Coder<InputT> valueCoder)  
- 
Constructor Details
- 
BatchingParams
public BatchingParams() 
 - 
 - 
Method Details
- 
createDefault
 - 
create
public static <InputT> GroupIntoBatches.BatchingParams<InputT> create(long batchSize, long batchSizeBytes, SerializableFunction<InputT, Long> elementByteSize, Duration maxBufferingDuration)  - 
getBatchSize
public abstract long getBatchSize() - 
getBatchSizeBytes
public abstract long getBatchSizeBytes() - 
getElementByteSize
 - 
getMaxBufferingDuration
 - 
getWeigher
 
 -