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
FieldsModifier and TypeFieldDescriptionprivate intprivate booleanprivate intprivate intprivate intprivate org.apache.hadoop.hbase.TableNameprivate intprivate booleanprivate boolean -
Constructor Summary
ConstructorsConstructorDescriptionPeInputSplit(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 TypeMethodDescriptionlongString[]intintgetRows()intorg.apache.hadoop.hbase.TableNameintbooleanbooleanbooleanvoidreadFields(DataInput in) voidwrite(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:
readFieldsin interfaceorg.apache.hadoop.io.Writable- Throws:
IOException
-
write
- Specified by:
writein interfaceorg.apache.hadoop.io.Writable- Throws:
IOException
-
getLength
- Specified by:
getLengthin classorg.apache.hadoop.mapreduce.InputSplit
-
getLocations
- Specified by:
getLocationsin classorg.apache.hadoop.mapreduce.InputSplit
-
getStartRow
-
getTableName
-
getRows
-
getTotalRows
-
isFlushCommits
-
isWriteToWAL
-
isUseTags
-
getNoOfTags
-