Implementation:Treeverse LakeFS Java SDK Model CommitCreation
Appearance
| Knowledge Sources | |
|---|---|
| Domains | Java_SDK, Data_Model |
| Last Updated | 2026-02-08 00:00 GMT |
Overview
Concrete data transfer object representing a commit creation request in the lakeFS Java SDK.
Description
The CommitCreation class is an auto-generated model object produced by OpenAPI Generator from the lakeFS API specification. It provides type-safe access to commit creation parameters through getter/setter methods and supports JSON serialization via Gson.
Usage
Use this model when creating new commits on a branch 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/CommitCreation.java
- Lines: 1-414
Signature
public class CommitCreation {
// Fields with @SerializedName annotations
// Getter/setter methods
// equals, hashCode, toString
// JSON type adapter
}
Import
import io.lakefs.clients.sdk.model.CommitCreation;
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| message | String | Yes | Commit message describing the changes |
| metadata | Map<String, String> | No | User-defined metadata key-value pairs |
| date | Long | No | Epoch timestamp to use as the commit date |
| allowEmpty | Boolean | No | Allow creating a commit with no changes (default: false) |
| force | Boolean | No | Force the commit even if branch is protected (default: false) |
Outputs
| Name | Type | Description |
|---|---|---|
| JSON | String | Serialized JSON representation |
Usage Examples
Creating an Instance
import io.lakefs.clients.sdk.model.CommitCreation;
CommitCreation obj = new CommitCreation();
obj.setMessage("Add new data files");
obj.setAllowEmpty(false);
obj.setForce(false);
Principle
Related Pages
Page Connections
Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment