public class MarkerHandler extends Handler
conf, storage, timelineServiceConfig, viewManager| Constructor and Description |
|---|
MarkerHandler(StorageConfiguration<?> conf,
TimelineService.Config timelineServiceConfig,
HoodieEngineContext hoodieEngineContext,
HoodieStorage storage,
FileSystemViewManager viewManager,
org.apache.hudi.common.metrics.Registry metricsRegistry) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<String> |
createMarker(io.javalin.http.Context context,
String markerDir,
String markerName,
String basePath)
Generates a future for an async marker creation request
The future is added to the marker creation future list and waits for the next batch processing
of marker creation requests.
|
Boolean |
deleteMarkers(String markerDir)
Deletes markers in the directory.
|
boolean |
doesMarkerDirExist(String markerDir) |
Set<String> |
getAllMarkers(String markerDir) |
Set<String> |
getAppendMarkers(String markerDir) |
Set<String> |
getCreateAndMergeMarkers(String markerDir) |
Set<String> |
getPendingMarkersToProcess(String markerDir) |
void |
stop()
Stops the dispatching of marker creation requests.
|
public MarkerHandler(StorageConfiguration<?> conf, TimelineService.Config timelineServiceConfig, HoodieEngineContext hoodieEngineContext, HoodieStorage storage, FileSystemViewManager viewManager, org.apache.hudi.common.metrics.Registry metricsRegistry) throws IOException
IOExceptionpublic void stop()
public Set<String> getAllMarkers(String markerDir)
markerDir - marker directory pathpublic Set<String> getPendingMarkersToProcess(String markerDir)
markerDir - marker directory path.public Set<String> getCreateAndMergeMarkers(String markerDir)
markerDir - marker directory pathpublic Set<String> getAppendMarkers(String markerDir)
markerDir - marker directory pathpublic boolean doesMarkerDirExist(String markerDir)
markerDir - marker directory pathtrue if the marker directory exists; false otherwise.public CompletableFuture<String> createMarker(io.javalin.http.Context context, String markerDir, String markerName, String basePath)
context - Javalin app contextmarkerDir - marker directory pathmarkerName - marker nameCompletableFuture instance for the requestCopyright © 2024 The Apache Software Foundation. All rights reserved.