Implementation:Treeverse LakeFS Java SDK Model Commit
Appearance
| Knowledge Sources | |
|---|---|
| Domains | Java_SDK, Data_Model |
| Last Updated | 2026-02-08 00:00 GMT |
Overview
Concrete data transfer object representing a commit record in the lakeFS Java SDK.
Description
The Commit class is an auto-generated model object produced by OpenAPI Generator from the lakeFS API specification. It provides type-safe access to commit metadata fields through getter/setter methods and supports JSON serialization via Gson.
Usage
Use this model when working with commit objects returned from branch operations and commit history through the lakeFS Java SDK API classes.
Code Reference
Source Location
- Repository: Treeverse_LakeFS
- File: clients/java/src/main/java/io/lakefs/clients/sdk/model/Commit.java
- Lines: 1-558
Signature
public class Commit {
// Fields with @SerializedName annotations
// Getter/setter methods
// equals, hashCode, toString
// JSON type adapter
}
Import
import io.lakefs.clients.sdk.model.Commit;
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| id | String | Yes | Unique commit identifier (SHA-256 hash) |
| parents | List<String> | Yes | List of parent commit IDs |
| committer | String | Yes | Identity of the committer |
| message | String | Yes | Commit message |
| creationDate | Long | Yes | Epoch timestamp of commit creation |
| metaRangeId | String | Yes | Meta-range ID for the committed data |
| metadata | Map<String, String> | No | User-defined metadata key-value pairs |
| generation | Long | No | Commit generation number |
| version | Integer | No | Commit version |
Outputs
| Name | Type | Description |
|---|---|---|
| JSON | String | Serialized JSON representation |
Usage Examples
Creating an Instance
import io.lakefs.clients.sdk.model.Commit;
Commit obj = new Commit();
obj.setId("abc123def456");
obj.setMessage("Initial commit");
obj.setCommitter("user@example.com");
Principle
Related Pages
Page Connections
Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment