Package org.apache.beam.sdk.io
Interface ShardingFunction<UserT,DestinationT>
- All Superinterfaces:
Serializable
Function for assigning
ShardedKey
s to input elements for sharded WriteFiles
.-
Method Summary
Modifier and TypeMethodDescriptionassignShardKey
(DestinationT destination, UserT element, int shardCount)
-
Method Details
-
assignShardKey
ShardedKey<Integer> assignShardKey(DestinationT destination, UserT element, int shardCount) throws Exception - Throws:
Exception
-