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

java.lang.Object
  extended by org.apache.hadoop.mapreduce.InputSplit
      extended by org.apache.hadoop.hbase.mapreduce.TableSnapshotInputFormat.TableSnapshotRegionSplit
All Implemented Interfaces:
org.apache.hadoop.io.Writable
Enclosing class:
TableSnapshotInputFormat

public static final class TableSnapshotInputFormat.TableSnapshotRegionSplit
extends org.apache.hadoop.mapreduce.InputSplit
implements org.apache.hadoop.io.Writable

Snapshot region split.


Constructor Summary
TableSnapshotInputFormat.TableSnapshotRegionSplit()
          Constructor for serialization.
TableSnapshotInputFormat.TableSnapshotRegionSplit(String regionName, List<String> locationList)
          Constructor.
 
Method Summary
 long getLength()
           
 String[] getLocations()
           
 void readFields(DataInput in)
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableSnapshotInputFormat.TableSnapshotRegionSplit

public TableSnapshotInputFormat.TableSnapshotRegionSplit()
Constructor for serialization.


TableSnapshotInputFormat.TableSnapshotRegionSplit

public TableSnapshotInputFormat.TableSnapshotRegionSplit(String regionName,
                                                         List<String> locationList)
Constructor.

Parameters:
regionName - Region name
locationList - List of nodes with the region's HDFS blocks, in descending order of weight
Method Detail

getLength

public long getLength()
               throws IOException,
                      InterruptedException
Specified by:
getLength in class org.apache.hadoop.mapreduce.InputSplit
Throws:
IOException
InterruptedException

getLocations

public String[] getLocations()
                      throws IOException,
                             InterruptedException
Specified by:
getLocations in class org.apache.hadoop.mapreduce.InputSplit
Throws:
IOException
InterruptedException

readFields

public void readFields(DataInput in)
                throws IOException
Specified by:
readFields in interface org.apache.hadoop.io.Writable
Throws:
IOException

write

public void write(DataOutput out)
           throws IOException
Specified by:
write in interface org.apache.hadoop.io.Writable
Throws:
IOException


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