Class CommitInfo

Object
io.delta.kernel.internal.actions.CommitInfo

public class CommitInfo extends Object
Delta log action representing a commit information action. According to the Delta protocol there isn't any specific schema for this action, but we use the following schema:
  • timestamp: Long - Milliseconds since epoch UTC of when this commit happened
  • engineInfo: String - Engine that made this commit
  • operation: String - Operation (e.g. insert, delete, merge etc.)
  • operationParameters: Map(String, String) - each operation depending upon the type may add zero or more parameters about the operation. E.g. when creating a table `partitionBy` key with list of partition columns is added.
  • isBlindAppend: Boolean - Is this commit a blind append?
  • txnId: String - a unique transaction id of this commit
The Delta-Spark connector adds lot more fields to this action. We can add them as needed.
  • Field Details

    • FULL_SCHEMA

      public static StructType FULL_SCHEMA
  • Constructor Details

    • CommitInfo

      public CommitInfo(long timestamp, String engineInfo, String operation, Map<String,String> operationParameters, boolean isBlindAppend, String txnId)
  • Method Details

    • getTimestamp

      public long getTimestamp()
    • getEngineInfo

      public String getEngineInfo()
    • getOperation

      public String getOperation()
    • toRow

      public Row toRow()
      Encode as a Row object with the schema FULL_SCHEMA.
      Returns:
      Row object with the schema FULL_SCHEMA