public class ActiveAction extends Object implements Serializable, Comparable<ActiveAction>
| Modifier | Constructor and Description |
|---|---|
protected |
ActiveAction(HoodieInstant requested,
HoodieInstant inflight,
List<HoodieInstant> completed)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(ActiveAction other) |
static ActiveAction |
fromInstants(List<HoodieInstant> instants) |
String |
getAction() |
Option<byte[]> |
getCleanPlan(HoodieTableMetaClient metaClient) |
Option<byte[]> |
getCommitMetadata(HoodieTableMetaClient metaClient) |
Option<byte[]> |
getCompactionPlan(HoodieTableMetaClient metaClient) |
List<HoodieInstant> |
getCompletedInstants() |
String |
getCompletionTime() |
Option<byte[]> |
getInflightCommitMetadata(HoodieTableMetaClient metaClient) |
String |
getInstantTime() |
Option<byte[]> |
getLogCompactionPlan(HoodieTableMetaClient metaClient) |
String |
getPendingAction()
A COMPACTION action eventually becomes COMMIT when completed.
|
protected Option<HoodieInstant> |
getPendingInstant() |
List<HoodieInstant> |
getPendingInstants() |
Option<byte[]> |
getRequestedCommitMetadata(HoodieTableMetaClient metaClient) |
String |
toString() |
protected ActiveAction(@Nullable HoodieInstant requested, @Nullable HoodieInstant inflight, List<HoodieInstant> completed)
public static ActiveAction fromInstants(List<HoodieInstant> instants)
public List<HoodieInstant> getPendingInstants()
public List<HoodieInstant> getCompletedInstants()
public String getAction()
public String getPendingAction()
public String getInstantTime()
public String getCompletionTime()
public Option<byte[]> getCommitMetadata(HoodieTableMetaClient metaClient)
public Option<byte[]> getRequestedCommitMetadata(HoodieTableMetaClient metaClient)
public Option<byte[]> getInflightCommitMetadata(HoodieTableMetaClient metaClient)
public Option<byte[]> getCleanPlan(HoodieTableMetaClient metaClient)
public Option<byte[]> getCompactionPlan(HoodieTableMetaClient metaClient)
public Option<byte[]> getLogCompactionPlan(HoodieTableMetaClient metaClient)
protected Option<HoodieInstant> getPendingInstant()
public int compareTo(ActiveAction other)
compareTo in interface Comparable<ActiveAction>Copyright © 2024 The Apache Software Foundation. All rights reserved.