public class HoodieInstant extends Object implements Serializable, Comparable<HoodieInstant>
HoodieTimeline,
Serialized Form| Modifier and Type | Class and Description |
|---|---|
static class |
HoodieInstant.State
Instant State.
|
| Modifier and Type | Field and Description |
|---|---|
static Comparator<HoodieInstant> |
ACTION_COMPARATOR |
static Comparator<HoodieInstant> |
COMPARATOR |
static String |
EMPTY_FILE_EXTENSION |
static Comparator<HoodieInstant> |
STATE_TRANSITION_COMPARATOR |
| Constructor and Description |
|---|
HoodieInstant(boolean isInflight,
String action,
String timestamp) |
HoodieInstant(HoodieInstant.State state,
String action,
String timestamp) |
HoodieInstant(HoodieInstant.State state,
String action,
String timestamp,
String stateTransitionTime) |
HoodieInstant(StoragePathInfo pathInfo)
Load the instant from the meta FileStatus.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(HoodieInstant o) |
boolean |
equals(Object o) |
static String |
extractTimestamp(String fileName) |
String |
getAction() |
static String |
getComparableAction(String action) |
String |
getFileName()
Get the filename for this instant.
|
HoodieInstant.State |
getState() |
String |
getStateTransitionTime() |
static String |
getTimelineFileExtension(String fileName) |
String |
getTimestamp() |
int |
hashCode() |
boolean |
isCompleted() |
boolean |
isInflight() |
boolean |
isRequested() |
String |
toString() |
public static final Comparator<HoodieInstant> ACTION_COMPARATOR
public static final Comparator<HoodieInstant> COMPARATOR
public static final Comparator<HoodieInstant> STATE_TRANSITION_COMPARATOR
public static final String EMPTY_FILE_EXTENSION
public HoodieInstant(StoragePathInfo pathInfo)
public HoodieInstant(HoodieInstant.State state, String action, String timestamp)
public HoodieInstant(HoodieInstant.State state, String action, String timestamp, String stateTransitionTime)
public static String extractTimestamp(String fileName) throws IllegalArgumentException
IllegalArgumentExceptionpublic boolean isCompleted()
public boolean isInflight()
public boolean isRequested()
public String getAction()
public String getTimestamp()
public String getFileName()
public HoodieInstant.State getState()
public String getStateTransitionTime()
public int compareTo(HoodieInstant o)
compareTo in interface Comparable<HoodieInstant>Copyright © 2024 The Apache Software Foundation. All rights reserved.