public class HoodieRealtimeFileSplit extends org.apache.hadoop.mapred.FileSplit implements RealtimeSplit
FileSplit implementation that holds
HoodieLogFile that holds the delta to be merged (upon reading)RealtimeSplit.readFromInput(DataInput) and RealtimeSplit.writeToOutput(DataOutput)| Constructor and Description |
|---|
HoodieRealtimeFileSplit() |
HoodieRealtimeFileSplit(org.apache.hadoop.mapred.FileSplit baseSplit,
HoodieRealtimePath path) |
HoodieRealtimeFileSplit(org.apache.hadoop.mapred.FileSplit baseSplit,
String basePath,
List<HoodieLogFile> deltaLogFiles,
String maxCommitTime,
boolean belongsToIncrementalQuery,
Option<HoodieVirtualKeyInfo> virtualKeyInfo) |
| Modifier and Type | Method and Description |
|---|---|
String |
getBasePath()
Return Base Path of the dataset.
|
boolean |
getBelongsToIncrementalQuery()
Returns the flag whether this split belongs to an Incremental Query
|
List<HoodieLogFile> |
getDeltaLogFiles() |
String |
getMaxCommitTime()
Return Max Instant Time.
|
Option<HoodieVirtualKeyInfo> |
getVirtualKeyInfo()
Returns Virtual key info if meta fields are disabled.
|
void |
readFields(DataInput in) |
void |
setBasePath(String basePath)
Set Base Path.
|
void |
setBelongsToIncrementalQuery(boolean belongsToIncrementalPath)
Sets the flag whether this split belongs to an Incremental Query
|
void |
setDeltaLogFiles(List<HoodieLogFile> deltaLogFiles) |
void |
setMaxCommitTime(String maxCommitTime)
Update Maximum valid instant time.
|
void |
setVirtualKeyInfo(Option<HoodieVirtualKeyInfo> virtualKeyInfo) |
String |
toString() |
void |
write(DataOutput out) |
getLength, getLocationInfo, getLocations, getPath, getStartclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDeltaLogPaths, getLength, getPath, getStart, readFromInput, writeToOutputpublic HoodieRealtimeFileSplit()
public HoodieRealtimeFileSplit(org.apache.hadoop.mapred.FileSplit baseSplit,
HoodieRealtimePath path)
throws IOException
IOExceptionpublic HoodieRealtimeFileSplit(org.apache.hadoop.mapred.FileSplit baseSplit,
String basePath,
List<HoodieLogFile> deltaLogFiles,
String maxCommitTime,
boolean belongsToIncrementalQuery,
Option<HoodieVirtualKeyInfo> virtualKeyInfo)
throws IOException
IOExceptionpublic List<HoodieLogFile> getDeltaLogFiles()
getDeltaLogFiles in interface RealtimeSplitpublic void setDeltaLogFiles(List<HoodieLogFile> deltaLogFiles)
setDeltaLogFiles in interface RealtimeSplitpublic String getMaxCommitTime()
RealtimeSplitgetMaxCommitTime in interface RealtimeSplitpublic void setMaxCommitTime(String maxCommitTime)
RealtimeSplitsetMaxCommitTime in interface RealtimeSplitpublic String getBasePath()
RealtimeSplitgetBasePath in interface RealtimeSplitpublic void setBasePath(String basePath)
RealtimeSplitsetBasePath in interface RealtimeSplitpublic void setVirtualKeyInfo(Option<HoodieVirtualKeyInfo> virtualKeyInfo)
setVirtualKeyInfo in interface RealtimeSplitpublic Option<HoodieVirtualKeyInfo> getVirtualKeyInfo()
RealtimeSplitgetVirtualKeyInfo in interface RealtimeSplitpublic boolean getBelongsToIncrementalQuery()
RealtimeSplitgetBelongsToIncrementalQuery in interface RealtimeSplitpublic void setBelongsToIncrementalQuery(boolean belongsToIncrementalPath)
RealtimeSplitsetBelongsToIncrementalQuery in interface RealtimeSplitpublic void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.Writablewrite in class org.apache.hadoop.mapred.FileSplitIOExceptionpublic void readFields(DataInput in) throws IOException
readFields in interface org.apache.hadoop.io.WritablereadFields in class org.apache.hadoop.mapred.FileSplitIOExceptionpublic String toString()
toString in class org.apache.hadoop.mapred.FileSplitCopyright © 2022 The Apache Software Foundation. All rights reserved.