Package org.apache.hadoop.hbase.rest
Class PerformanceEvaluation.PeInputSplit
java.lang.Object
org.apache.hadoop.mapreduce.InputSplit
org.apache.hadoop.hbase.rest.PerformanceEvaluation.PeInputSplit
- All Implemented Interfaces:
org.apache.hadoop.io.Writable
- Enclosing class:
- PerformanceEvaluation
public static class PerformanceEvaluation.PeInputSplit
extends org.apache.hadoop.mapreduce.InputSplit
implements org.apache.hadoop.io.Writable
This class works as the InputSplit of Performance Evaluation MapReduce InputFormat, and the
Record Value of RecordReader. Each map task will only read one record from a PeInputSplit, the
record value is the PeInputSplit itself.
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private boolean
private int
private int
private int
private org.apache.hadoop.hbase.TableName
private int
private boolean
private boolean
-
Constructor Summary
ConstructorDescriptionPeInputSplit
(org.apache.hadoop.hbase.TableName tableName, int startRow, int rows, int totalRows, int clients, boolean flushCommits, boolean writeToWAL, boolean useTags, int noOfTags) -
Method Summary
Modifier and TypeMethodDescriptionlong
String[]
int
int
getRows()
int
org.apache.hadoop.hbase.TableName
int
boolean
boolean
boolean
void
readFields
(DataInput in) void
write
(DataOutput out) Methods inherited from class org.apache.hadoop.mapreduce.InputSplit
getLocationInfo
-
Field Details
-
tableName
-
startRow
-
rows
-
totalRows
-
clients
-
flushCommits
-
writeToWAL
-
useTags
-
noOfTags
-
-
Constructor Details
-
PeInputSplit
public PeInputSplit(org.apache.hadoop.hbase.TableName tableName, int startRow, int rows, int totalRows, int clients, boolean flushCommits, boolean writeToWAL, boolean useTags, int noOfTags)
-
-
Method Details
-
readFields
- Specified by:
readFields
in interfaceorg.apache.hadoop.io.Writable
- Throws:
IOException
-
write
- Specified by:
write
in interfaceorg.apache.hadoop.io.Writable
- Throws:
IOException
-
getLength
- Specified by:
getLength
in classorg.apache.hadoop.mapreduce.InputSplit
-
getLocations
- Specified by:
getLocations
in classorg.apache.hadoop.mapreduce.InputSplit
-
getStartRow
-
getTableName
-
getRows
-
getTotalRows
-
isFlushCommits
-
isWriteToWAL
-
isUseTags
-
getNoOfTags
-