public class HoodieHeartbeatUtils extends Object
| Constructor and Description |
|---|
HoodieHeartbeatUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Long |
getLastHeartbeatTime(HoodieStorage storage,
String basePath,
String instantTime)
Use modification time as last heart beat time.
|
static boolean |
isHeartbeatExpired(String instantTime,
long maxAllowableHeartbeatIntervalInMs,
HoodieStorage storage,
String basePath)
Whether a heartbeat is expired.
|
public static Long getLastHeartbeatTime(HoodieStorage storage, String basePath, String instantTime) throws IOException
storage - HoodieStorage instance.basePath - Base path of the table.instantTime - Instant time.IOExceptionpublic static boolean isHeartbeatExpired(String instantTime, long maxAllowableHeartbeatIntervalInMs, HoodieStorage storage, String basePath) throws IOException
instantTime - Instant time.maxAllowableHeartbeatIntervalInMs - Heartbeat timeout in milliseconds.storage - HoodieStorage instance.basePath - Base path of the table.true if expired; false otherwise.IOException - upon errors.Copyright © 2024 The Apache Software Foundation. All rights reserved.