public class MarkerHandler extends Handler
conf, fileSystem, timelineServiceConfig, viewManager| Constructor and Description |
|---|
MarkerHandler(org.apache.hadoop.conf.Configuration conf,
TimelineService.Config timelineServiceConfig,
HoodieEngineContext hoodieEngineContext,
org.apache.hadoop.fs.FileSystem fileSystem,
FileSystemViewManager viewManager,
Registry metricsRegistry) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<String> |
createMarker(io.javalin.http.Context context,
String markerDir,
String markerName)
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> |
getCreateAndMergeMarkers(String markerDir) |
void |
stop()
Stops the dispatching of marker creation requests.
|
public MarkerHandler(org.apache.hadoop.conf.Configuration conf,
TimelineService.Config timelineServiceConfig,
HoodieEngineContext hoodieEngineContext,
org.apache.hadoop.fs.FileSystem fileSystem,
FileSystemViewManager viewManager,
Registry metricsRegistry)
throws IOException
IOExceptionpublic void stop()
public Set<String> getAllMarkers(String markerDir)
markerDir - marker directory pathpublic Set<String> getCreateAndMergeMarkers(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)
context - Javalin app contextmarkerDir - marker directory pathmarkerName - marker nameCompletableFuture instance for the requestCopyright © 2023 The Apache Software Foundation. All rights reserved.