org.apache.hadoop.hbase.mapreduce
Class HLogInputFormat

java.lang.Object
  extended by org.apache.hadoop.mapreduce.InputFormat<HLogKey,WALEdit>
      extended by org.apache.hadoop.hbase.mapreduce.HLogInputFormat

public class HLogInputFormat
extends org.apache.hadoop.mapreduce.InputFormat<HLogKey,WALEdit>

Simple InputFormat for HLog files.


Field Summary
static String END_TIME_KEY
           
static String START_TIME_KEY
           
 
Constructor Summary
HLogInputFormat()
           
 
Method Summary
 org.apache.hadoop.mapreduce.RecordReader<HLogKey,WALEdit> createRecordReader(org.apache.hadoop.mapreduce.InputSplit split, org.apache.hadoop.mapreduce.TaskAttemptContext context)
           
 List<org.apache.hadoop.mapreduce.InputSplit> getSplits(org.apache.hadoop.mapreduce.JobContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

START_TIME_KEY

public static String START_TIME_KEY

END_TIME_KEY

public static String END_TIME_KEY
Constructor Detail

HLogInputFormat

public HLogInputFormat()
Method Detail

getSplits

public List<org.apache.hadoop.mapreduce.InputSplit> getSplits(org.apache.hadoop.mapreduce.JobContext context)
                                                       throws IOException,
                                                              InterruptedException
Specified by:
getSplits in class org.apache.hadoop.mapreduce.InputFormat<HLogKey,WALEdit>
Throws:
IOException
InterruptedException

createRecordReader

public org.apache.hadoop.mapreduce.RecordReader<HLogKey,WALEdit> createRecordReader(org.apache.hadoop.mapreduce.InputSplit split,
                                                                                    org.apache.hadoop.mapreduce.TaskAttemptContext context)
                                                                             throws IOException,
                                                                                    InterruptedException
Specified by:
createRecordReader in class org.apache.hadoop.mapreduce.InputFormat<HLogKey,WALEdit>
Throws:
IOException
InterruptedException


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.