public class HoodieCombineRealtimeFileSplit
extends org.apache.hadoop.mapred.lib.CombineFileSplit
| Modifier and Type | Class and Description |
|---|---|
static class |
HoodieCombineRealtimeFileSplit.Builder |
| Constructor and Description |
|---|
HoodieCombineRealtimeFileSplit() |
HoodieCombineRealtimeFileSplit(org.apache.hadoop.mapred.JobConf jobConf,
List<org.apache.hadoop.mapred.FileSplit> realtimeFileSplits) |
| Modifier and Type | Method and Description |
|---|---|
long |
getLength() |
long |
getLength(int i)
Returns the length of the ith Path.
|
long[] |
getLengths()
Returns an array containing the lengths of the files in the split.
|
String[] |
getLocations()
Returns all the Paths where this input-split resides.
|
int |
getNumPaths()
Returns the number of Paths in the split.
|
long |
getOffset(int i)
Returns the start offset of the ith Path.
|
org.apache.hadoop.fs.Path |
getPath(int i)
Returns the ith Path.
|
org.apache.hadoop.fs.Path[] |
getPaths()
Returns all the Paths in the split.
|
List<org.apache.hadoop.mapred.FileSplit> |
getRealtimeFileSplits() |
long[] |
getStartOffsets()
Returns an array containing the start offsets of the files in the split.
|
void |
readFields(DataInput in) |
String |
toString() |
void |
write(DataOutput out)
Writable interface.
|
public HoodieCombineRealtimeFileSplit()
public HoodieCombineRealtimeFileSplit(org.apache.hadoop.mapred.JobConf jobConf,
List<org.apache.hadoop.mapred.FileSplit> realtimeFileSplits)
public List<org.apache.hadoop.mapred.FileSplit> getRealtimeFileSplits()
public String toString()
toString in class org.apache.hadoop.mapreduce.lib.input.CombineFileSplitpublic void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.Writablewrite in class org.apache.hadoop.mapreduce.lib.input.CombineFileSplitIOExceptionpublic void readFields(DataInput in) throws IOException
readFields in interface org.apache.hadoop.io.WritablereadFields in class org.apache.hadoop.mapreduce.lib.input.CombineFileSplitIOExceptionpublic long getLength()
getLength in interface org.apache.hadoop.mapred.InputSplitgetLength in class org.apache.hadoop.mapreduce.lib.input.CombineFileSplitpublic long[] getStartOffsets()
getStartOffsets in class org.apache.hadoop.mapreduce.lib.input.CombineFileSplitpublic long[] getLengths()
getLengths in class org.apache.hadoop.mapreduce.lib.input.CombineFileSplitpublic long getOffset(int i)
getOffset in class org.apache.hadoop.mapreduce.lib.input.CombineFileSplitpublic long getLength(int i)
getLength in class org.apache.hadoop.mapreduce.lib.input.CombineFileSplitpublic int getNumPaths()
getNumPaths in class org.apache.hadoop.mapreduce.lib.input.CombineFileSplitpublic org.apache.hadoop.fs.Path getPath(int i)
getPath in class org.apache.hadoop.mapreduce.lib.input.CombineFileSplitpublic org.apache.hadoop.fs.Path[] getPaths()
getPaths in class org.apache.hadoop.mapreduce.lib.input.CombineFileSplitpublic String[] getLocations() throws IOException
getLocations in interface org.apache.hadoop.mapred.InputSplitgetLocations in class org.apache.hadoop.mapreduce.lib.input.CombineFileSplitIOExceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.