public class HoodieRealtimeBootstrapBaseFileSplit extends BootstrapBaseFileSplit implements RealtimeSplit
FileSplit with external base file
NOTE: If you're adding fields here you need to make sure that you appropriately de-/serialize them
in RealtimeSplit.readFromInput(DataInput) and RealtimeSplit.writeToOutput(DataOutput)BootstrapBaseFileSplit.WrapperFileSplit| Constructor and Description |
|---|
HoodieRealtimeBootstrapBaseFileSplit()
NOTE: This ctor is necessary for Hive to be able to serialize and
then instantiate it when deserializing back
|
HoodieRealtimeBootstrapBaseFileSplit(org.apache.hadoop.mapred.FileSplit baseSplit,
String basePath,
List<HoodieLogFile> deltaLogFiles,
String maxInstantTime,
org.apache.hadoop.mapred.FileSplit externalFileSplit,
boolean belongsToIncrementalQuery,
Option<HoodieVirtualKeyInfo> virtualKeyInfoOpt) |
| 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 maxInstantTime)
Update Maximum valid instant time.
|
void |
setVirtualKeyInfo(Option<HoodieVirtualKeyInfo> virtualKeyInfo) |
void |
write(DataOutput out) |
getBootstrapFileSplitgetLength, getLocationInfo, getLocations, getPath, getStart, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDeltaLogPaths, getLength, getPath, getStart, readFromInput, writeToOutputpublic HoodieRealtimeBootstrapBaseFileSplit()
public HoodieRealtimeBootstrapBaseFileSplit(org.apache.hadoop.mapred.FileSplit baseSplit,
String basePath,
List<HoodieLogFile> deltaLogFiles,
String maxInstantTime,
org.apache.hadoop.mapred.FileSplit externalFileSplit,
boolean belongsToIncrementalQuery,
Option<HoodieVirtualKeyInfo> virtualKeyInfoOpt)
throws IOException
IOExceptionpublic void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.Writablewrite in class BootstrapBaseFileSplitIOExceptionpublic void readFields(DataInput in) throws IOException
readFields in interface org.apache.hadoop.io.WritablereadFields in class BootstrapBaseFileSplitIOExceptionpublic List<HoodieLogFile> getDeltaLogFiles()
getDeltaLogFiles in interface RealtimeSplitpublic void setDeltaLogFiles(List<HoodieLogFile> deltaLogFiles)
setDeltaLogFiles in interface RealtimeSplitpublic String getMaxCommitTime()
RealtimeSplitgetMaxCommitTime in interface RealtimeSplitpublic String getBasePath()
RealtimeSplitgetBasePath 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 setMaxCommitTime(String maxInstantTime)
RealtimeSplitsetMaxCommitTime in interface RealtimeSplitpublic void setBasePath(String basePath)
RealtimeSplitsetBasePath in interface RealtimeSplitpublic void setVirtualKeyInfo(Option<HoodieVirtualKeyInfo> virtualKeyInfo)
setVirtualKeyInfo in interface RealtimeSplitCopyright © 2022 The Apache Software Foundation. All rights reserved.