Class FileFormatUtils


  • public class FileFormatUtils
    extends java.lang.Object
    Utility class to be shared between various bulk storages.
    • Method Detail

      • getNamingConvention

        public static NamingConvention getNamingConvention​(java.lang.String cfgPrefix,
                                                           java.util.Map<java.lang.String,​java.lang.Object> cfg,
                                                           long rollPeriodMs,
                                                           FileFormat format)
        Retrieve NamingConvention from configuration.
        Parameters:
        cfgPrefix - config prefix
        cfg - config
        rollPeriodMs - roll period
        format - FileFormat file format
        Returns:
        NamingConvention file naming convention
      • getFileFormat

        public static FileFormat getFileFormat​(java.lang.String cfgPrefix,
                                               java.util.Map<java.lang.String,​java.lang.Object> cfg)
        Get FileFormat from configuration.
        Parameters:
        cfgPrefix - prefix to add to default config settings
        cfg - the configuration
        Returns:
        FileFormat