Interface ShardingFunction<UserT,​DestinationT>

  • All Superinterfaces:
    java.io.Serializable

    @Experimental(SOURCE_SINK)
    public interface ShardingFunction<UserT,​DestinationT>
    extends java.io.Serializable
    Function for assigning ShardedKeys to input elements for sharded WriteFiles.
    • Method Detail

      • assignShardKey

        ShardedKey<java.lang.Integer> assignShardKey​(DestinationT destination,
                                                     UserT element,
                                                     int shardCount)
                                              throws java.lang.Exception
        Throws:
        java.lang.Exception