org.apache.hadoop.hbase.mapreduce
Class TableSnapshotInputFormat.TableSnapshotRegionRecordReader

java.lang.Object
  extended by org.apache.hadoop.mapreduce.RecordReader<ImmutableBytesWritable,Result>
      extended by org.apache.hadoop.hbase.mapreduce.TableSnapshotInputFormat.TableSnapshotRegionRecordReader
All Implemented Interfaces:
Closeable
Enclosing class:
TableSnapshotInputFormat

public static final class TableSnapshotInputFormat.TableSnapshotRegionRecordReader
extends org.apache.hadoop.mapreduce.RecordReader<ImmutableBytesWritable,Result>

Snapshot region record reader.


Constructor Summary
TableSnapshotInputFormat.TableSnapshotRegionRecordReader()
           
 
Method Summary
 void close()
           
 ImmutableBytesWritable getCurrentKey()
           
 Result getCurrentValue()
           
 float getProgress()
           
 void initialize(org.apache.hadoop.mapreduce.InputSplit aSplit, org.apache.hadoop.mapreduce.TaskAttemptContext context)
           
 boolean nextKeyValue()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableSnapshotInputFormat.TableSnapshotRegionRecordReader

public TableSnapshotInputFormat.TableSnapshotRegionRecordReader()
Method Detail

initialize

public void initialize(org.apache.hadoop.mapreduce.InputSplit aSplit,
                       org.apache.hadoop.mapreduce.TaskAttemptContext context)
                throws IOException,
                       InterruptedException
Specified by:
initialize in class org.apache.hadoop.mapreduce.RecordReader<ImmutableBytesWritable,Result>
Throws:
IOException
InterruptedException

nextKeyValue

public boolean nextKeyValue()
                     throws IOException,
                            InterruptedException
Specified by:
nextKeyValue in class org.apache.hadoop.mapreduce.RecordReader<ImmutableBytesWritable,Result>
Throws:
IOException
InterruptedException

getCurrentKey

public ImmutableBytesWritable getCurrentKey()
                                     throws IOException,
                                            InterruptedException
Specified by:
getCurrentKey in class org.apache.hadoop.mapreduce.RecordReader<ImmutableBytesWritable,Result>
Throws:
IOException
InterruptedException

getCurrentValue

public Result getCurrentValue()
                       throws IOException,
                              InterruptedException
Specified by:
getCurrentValue in class org.apache.hadoop.mapreduce.RecordReader<ImmutableBytesWritable,Result>
Throws:
IOException
InterruptedException

getProgress

public float getProgress()
                  throws IOException,
                         InterruptedException
Specified by:
getProgress in class org.apache.hadoop.mapreduce.RecordReader<ImmutableBytesWritable,Result>
Throws:
IOException
InterruptedException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Specified by:
close in class org.apache.hadoop.mapreduce.RecordReader<ImmutableBytesWritable,Result>
Throws:
IOException


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