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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
long
String[]
long
void
readFields
(DataInput in) toString()
void
write
(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:
getLength
in classorg.apache.hadoop.mapreduce.InputSplit
- Throws:
IOException
InterruptedException
-
getLocations
- Specified by:
getLocations
in classorg.apache.hadoop.mapreduce.InputSplit
- Throws:
IOException
InterruptedException
-
getLogFileName
-
getStartTime
-
getEndTime
-
readFields
- Specified by:
readFields
in interfaceorg.apache.hadoop.io.Writable
- Throws:
IOException
-
write
- Specified by:
write
in interfaceorg.apache.hadoop.io.Writable
- Throws:
IOException
-
toString
-