@Experimental(value=SOURCE_SINK) public interface ShardingFunction<UserT,DestinationT> extends java.io.Serializable
ShardedKey
s to input elements for sharded WriteFiles
.Modifier and Type | Method and Description |
---|---|
ShardedKey<java.lang.Integer> |
assignShardKey(DestinationT destination,
UserT element,
int shardCount) |
ShardedKey<java.lang.Integer> assignShardKey(DestinationT destination, UserT element, int shardCount) throws java.lang.Exception
java.lang.Exception