org.apache.hadoop.hbase.mapreduce
Class TableSnapshotInputFormat.TableSnapshotRegionSplit
java.lang.Object
org.apache.hadoop.mapreduce.InputSplit
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TableSnapshotInputFormat.TableSnapshotRegionSplit
public TableSnapshotInputFormat.TableSnapshotRegionSplit()
- Constructor for serialization.
TableSnapshotInputFormat.TableSnapshotRegionSplit
public TableSnapshotInputFormat.TableSnapshotRegionSplit(String regionName,
List<String> locationList)
- Constructor.
- Parameters:
regionName
- Region namelocationList
- List of nodes with the region's HDFS blocks, in descending order
of weight
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.