public class HeartbeatUtils extends Object
| Constructor and Description |
|---|
HeartbeatUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
abortIfHeartbeatExpired(String instantTime,
HoodieTable table,
HoodieHeartbeatClient heartbeatClient,
HoodieWriteConfig config)
Check if the heartbeat corresponding to instantTime has expired.
|
static boolean |
deleteHeartbeatFile(org.apache.hadoop.fs.FileSystem fs,
String basePath,
String instantTime)
Deletes the heartbeat file for the specified instant.
|
static boolean |
deleteHeartbeatFile(org.apache.hadoop.fs.FileSystem fs,
String basePath,
String instantTime,
HoodieWriteConfig config)
Deletes the heartbeat file for the specified instant.
|
public static boolean deleteHeartbeatFile(org.apache.hadoop.fs.FileSystem fs,
String basePath,
String instantTime)
fs - basePath - instantTime - public static boolean deleteHeartbeatFile(org.apache.hadoop.fs.FileSystem fs,
String basePath,
String instantTime,
HoodieWriteConfig config)
fs - Hadoop FileSystem instancebasePath - Hoodie table base pathinstantTime - Commit instant timeconfig - HoodieWriteConfig instancepublic static void abortIfHeartbeatExpired(String instantTime, HoodieTable table, HoodieHeartbeatClient heartbeatClient, HoodieWriteConfig config)
instantTime - table - heartbeatClient - config - Copyright © 2023 The Apache Software Foundation. All rights reserved.