Interface BucketAssigner<IN,​BucketID>

    • Method Detail

      • getBucketId

        BucketID getBucketId​(IN element,
                             BucketAssigner.Context context)
        Returns the identifier of the bucket the provided element should be put into.
        Parameters:
        element - The current element being processed.
        context - The context used by the current bucket assigner.
        Returns:
        A string representing the identifier of the bucket the element should be put into. The actual path to the bucket will result from the concatenation of the returned string and the base path provided during the initialization of the file sink.