Class WALInputFormat.WALSplit
java.lang.Object
org.apache.hadoop.mapreduce.InputSplit
org.apache.hadoop.hbase.mapreduce.WALInputFormat.WALSplit
- All Implemented Interfaces:
org.apache.hadoop.io.Writable
- Enclosing class:
- WALInputFormat
static class WALInputFormat.WALSplit
extends org.apache.hadoop.mapreduce.InputSplit
implements org.apache.hadoop.io.Writable
InputSplit for WAL files. Each split represent exactly one log file.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonglongString[]longvoidreadFields(DataInput in) toString()voidwrite(DataOutput out) Methods inherited from class org.apache.hadoop.mapreduce.InputSplit
getLocationInfo
-
Field Details
-
logFileName
-
fileSize
-
startTime
-
endTime
-
-
Constructor Details
-
WALSplit
public WALSplit()for serialization -
WALSplit
Represent an WALSplit, i.e. a single WAL file. Start- and EndTime are managed by the split, so that WAL files can be filtered before WALEdits are passed to the mapper(s).
-
-
Method Details
-
getLength
- Specified by:
getLengthin classorg.apache.hadoop.mapreduce.InputSplit- Throws:
IOExceptionInterruptedException
-
getLocations
- Specified by:
getLocationsin classorg.apache.hadoop.mapreduce.InputSplit- Throws:
IOExceptionInterruptedException
-
getLogFileName
-
getStartTime
-
getEndTime
-
readFields
- Specified by:
readFieldsin interfaceorg.apache.hadoop.io.Writable- Throws:
IOException
-
write
- Specified by:
writein interfaceorg.apache.hadoop.io.Writable- Throws:
IOException
-
toString
-