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) |
Option<org.apache.hadoop.fs.Path> |
createWithEarlyConflictDetection(String partitionPath,
String dataFileName,
IOType type,
boolean checkIfExists,
HoodieWriteConfig config,
String fileId,
HoodieActiveTimeline activeTimeline)
Creates a marker with early conflict detection for multi-writers.
|
boolean |
deleteMarkerDir(HoodieEngineContext context,
int parallelism)
Deletes the marker directory.
|
boolean |
doesMarkerDirExist() |
create, create, createIfNotExists, 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 truepublic Option<org.apache.hadoop.fs.Path> createWithEarlyConflictDetection(String partitionPath, String dataFileName, IOType type, boolean checkIfExists, HoodieWriteConfig config, String fileId, HoodieActiveTimeline activeTimeline)
WriteMarkerscreateWithEarlyConflictDetection in class WriteMarkerspartitionPath - partition path in the table.dataFileName - data file name.type - write IO type.checkIfExists - whether to check if the marker already exists.config - Hudi write configs.fileId - File ID.activeTimeline - Active timeline for the write operation.checkIfExists is true.Copyright © 2023 The Apache Software Foundation. All rights reserved.