Enum InputType

    • Enum Constant Detail

      • DOCUMENTS

        public static final InputType DOCUMENTS
      • AGGREGATES

        public static final InputType AGGREGATES
      • DELIMITED_TEXT

        public static final InputType DELIMITED_TEXT
      • ARCHIVE

        public static final InputType ARCHIVE
      • SEQUENCEFILE

        public static final InputType SEQUENCEFILE
      • FOREST

        public static final InputType FOREST
      • DELIMITED_JSON

        public static final InputType DELIMITED_JSON
    • Field Detail

      • LOG

        public static final org.apache.commons.logging.Log LOG
    • Method Detail

      • values

        public static InputType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (InputType c : InputType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static InputType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getInputFormatClass

        public abstract Class<? extends org.apache.hadoop.mapreduce.lib.input.FileInputFormat> getInputFormatClass​(org.apache.commons.cli.CommandLine cmdline,
                                                                                                                   org.apache.hadoop.conf.Configuration conf)
        Get InputFormat class based on content type.
        Parameters:
        cmdline - command line options
        conf - configuration
        Returns:
        InputFormat class
      • getMapperClass

        public <K1,​V1,​K2,​V2> Class<? extends BaseMapper<K1,​V1,​K2,​V2>> getMapperClass​(org.apache.commons.cli.CommandLine cmdline,
                                                                                                                         org.apache.hadoop.conf.Configuration conf)
        Get Mapper class based on content type.
        Parameters:
        cmdline - command line options
        conf - configuration
        Returns:
        Mapper class
      • getOutputFormatClass

        public abstract Class<? extends org.apache.hadoop.mapreduce.OutputFormat> getOutputFormatClass​(org.apache.commons.cli.CommandLine cmdline,
                                                                                                       org.apache.hadoop.conf.Configuration conf)
      • getContentType

        public abstract ContentType getContentType​(org.apache.commons.cli.CommandLine cmdline)
      • applyConfigOptions

        public abstract void applyConfigOptions​(org.apache.hadoop.conf.Configuration conf,
                                                org.apache.commons.cli.CommandLine cmdline)
                                         throws IOException
        Throws:
        IOException
      • getMinThreads

        public int getMinThreads()