Class AccumuloInputFormat

  • All Implemented Interfaces:
    org.apache.hadoop.mapred.InputFormat<Key,​Value>

    public class AccumuloInputFormat
    extends Object
    implements org.apache.hadoop.mapred.InputFormat<Key,​Value>
    Since:
    2.0
    See Also:
    AccumuloInputFormat
    • Constructor Detail

      • AccumuloInputFormat

        public AccumuloInputFormat()
    • Method Detail

      • getSplits

        public org.apache.hadoop.mapred.InputSplit[] getSplits​(org.apache.hadoop.mapred.JobConf job,
                                                               int numSplits)
                                                        throws IOException
        Gets the splits of the tables that have been set on the job by reading the metadata table for the specified ranges.
        Specified by:
        getSplits in interface org.apache.hadoop.mapred.InputFormat<Key,​Value>
        Returns:
        the splits from the tables based on the ranges.
        Throws:
        IOException - if a table set on the job doesn't exist or an error occurs initializing the tablet locator
      • getRecordReader

        public org.apache.hadoop.mapred.RecordReader<Key,​Value> getRecordReader​(org.apache.hadoop.mapred.InputSplit split,
                                                                                      org.apache.hadoop.mapred.JobConf job,
                                                                                      org.apache.hadoop.mapred.Reporter reporter)
                                                                               throws IOException
        Specified by:
        getRecordReader in interface org.apache.hadoop.mapred.InputFormat<Key,​Value>
        Throws:
        IOException
      • configure

        public static InputFormatBuilder.ClientParams<org.apache.hadoop.mapred.JobConf> configure()
        Sets all the information required for this map reduce job.