public class TimelineServerBasedWriteMarkers extends WriteMarkers
basePath, instantTime, markerDirPath| Constructor and Description |
|---|
TimelineServerBasedWriteMarkers(HoodieTable table,
String instantTime) |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
allMarkerFilePaths() |
protected Option<org.apache.hadoop.fs.Path> |
create(String partitionPath,
String dataFileName,
IOType type,
boolean checkIfExists)
Creates a marker.
|
Set<String> |
createdAndMergedDataPaths(HoodieEngineContext context,
int parallelism) |
boolean |
deleteMarkerDir(HoodieEngineContext context,
int parallelism)
Deletes the marker directory.
|
boolean |
doesMarkerDirExist() |
create, createIfNotExists, getMarkerFileName, getMarkerPath, quietDeleteMarkerDir, stripMarkerSuffixpublic TimelineServerBasedWriteMarkers(HoodieTable table, String instantTime)
public boolean deleteMarkerDir(HoodieEngineContext context, int parallelism)
WriteMarkersdeleteMarkerDir in class WriteMarkerscontext - HoodieEngineContext instance.parallelism - parallelism for deleting the marker files in the directory.public boolean doesMarkerDirExist()
doesMarkerDirExist in class WriteMarkerspublic Set<String> createdAndMergedDataPaths(HoodieEngineContext context, int parallelism) throws IOException
createdAndMergedDataPaths in class WriteMarkerscontext - HoodieEngineContext instance.parallelism - parallelism for reading the marker files in the directory.IOExceptionpublic Set<String> allMarkerFilePaths()
allMarkerFilePaths in class WriteMarkersprotected Option<org.apache.hadoop.fs.Path> create(String partitionPath, String dataFileName, IOType type, boolean checkIfExists)
WriteMarkerspartitionPath - partition path in the tabledataFileName - data file nametype - write IO typecheckIfExists - whether to check if the marker already existscheckIfExists is trueCopyright © 2022 The Apache Software Foundation. All rights reserved.