Class FileBasedSink.FilenamePolicy

    • Constructor Detail

      • FilenamePolicy

        public FilenamePolicy()
    • Method Detail

      • unwindowedFilename

        @Experimental(FILESYSTEM)
        public abstract @Nullable ResourceId unwindowedFilename​(int shardNumber,
                                                                int numShards,
                                                                FileBasedSink.OutputFileHints outputFileHints)
        When a sink has not requested windowed or triggered output, this method will be invoked to return the file resource to be created given the base output directory and a FileBasedSink.OutputFileHints containing information about the file, including a suggested (e.g. coming from Compression).

        The shardNumber and numShards parameters, should be used by the policy to generate unique and consistent filenames.

      • populateDisplayData

        public void populateDisplayData​(DisplayData.Builder builder)
        Populates the display data.