Class BasePathBucketAssigner<T>

    • Constructor Detail

      • BasePathBucketAssigner

        public BasePathBucketAssigner()
    • Method Detail

      • getBucketId

        public String getBucketId​(T element,
                                  BucketAssigner.Context context)
        Description copied from interface: BucketAssigner
        Returns the identifier of the bucket the provided element should be put into.
        Specified by:
        getBucketId in interface BucketAssigner<T,​String>
        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.