Interface FilenameGenerator<T>

    • Method Detail

      • getNextFilename

        String getNextFilename​(T owner,
                               String suggestedFilename)
        Get the next file name. This method should never return the same file name more than one time (given a single implementor instance). The generator implementation should not concern itself with the underlying file system or if the file already exists or not (this is a task for the DataWriterFactory implementation).
        Parameters:
        owner - The owner of the data in the file
        suggestedFilename - A default suggested file name (can be null)
        Returns:
        A unique file name