public class CommitInfo
extends Object
| Modifier and Type | Field and Description |
|---|---|
static StructType |
FULL_SCHEMA |
| Constructor and Description |
|---|
CommitInfo(java.util.Optional<Long> inCommitTimestamp,
long timestamp,
String engineInfo,
String operation,
java.util.Map<String,String> operationParameters,
boolean isBlindAppend,
String txnId,
java.util.Map<String,String> operationMetrics) |
| Modifier and Type | Method and Description |
|---|---|
static CommitInfo |
fromColumnVector(ColumnVector vector,
int rowId) |
static java.util.Optional<CommitInfo> |
getCommitInfoOpt(Engine engine,
Path logPath,
long version)
Get the persisted commit info (if available) for the given delta file.
|
String |
getEngineInfo() |
java.util.Optional<Long> |
getInCommitTimestamp() |
String |
getOperation() |
static long |
getRequiredInCommitTimestamp(java.util.Optional<CommitInfo> commitInfoOpt,
String version,
Path dataPath)
Returns the `inCommitTimestamp` of the given `commitInfoOpt` if it is defined.
|
long |
getTimestamp() |
void |
setInCommitTimestamp(java.util.Optional<Long> inCommitTimestamp) |
Row |
toRow()
Encode as a
Row object with the schema FULL_SCHEMA. |
public static StructType FULL_SCHEMA
public CommitInfo(java.util.Optional<Long> inCommitTimestamp,
long timestamp,
String engineInfo,
String operation,
java.util.Map<String,String> operationParameters,
boolean isBlindAppend,
String txnId,
java.util.Map<String,String> operationMetrics)
public static CommitInfo fromColumnVector(ColumnVector vector, int rowId)
public java.util.Optional<Long> getInCommitTimestamp()
public void setInCommitTimestamp(java.util.Optional<Long> inCommitTimestamp)
public long getTimestamp()
public String getEngineInfo()
public String getOperation()
public Row toRow()
Row object with the schema FULL_SCHEMA.Row object with the schema FULL_SCHEMApublic static long getRequiredInCommitTimestamp(java.util.Optional<CommitInfo> commitInfoOpt, String version, Path dataPath)
public static java.util.Optional<CommitInfo> getCommitInfoOpt(Engine engine, Path logPath, long version)