Implementation:Treeverse LakeFS Java SDK Model DiffObjectStat
Appearance
| Knowledge Sources | |
|---|---|
| Domains | Java_SDK, Data_Model |
| Last Updated | 2026-02-08 00:00 GMT |
Overview
Concrete data transfer object representing object statistics within a diff result in the lakeFS Java SDK.
Description
The DiffObjectStat class is an auto-generated model object produced by OpenAPI Generator from the lakeFS API specification. It provides type-safe access to object stat fields used in diff operations through getter/setter methods and supports JSON serialization via Gson.
Usage
Use this model when inspecting object statistics on the right side of a diff entry 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/DiffObjectStat.java
- Lines: 1-391
Signature
public class DiffObjectStat {
// Fields with @SerializedName annotations
// Getter/setter methods
// equals, hashCode, toString
// JSON type adapter
}
Import
import io.lakefs.clients.sdk.model.DiffObjectStat;
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| checksum | String | Yes | Checksum of the object |
| mtime | Long | Yes | Last modification time as epoch seconds |
| contentType | String | No | MIME content type of the object |
| metadata | Map<String, String> | No | User-defined metadata key-value pairs |
Outputs
| Name | Type | Description |
|---|---|---|
| JSON | String | Serialized JSON representation |
Usage Examples
Creating an Instance
import io.lakefs.clients.sdk.model.DiffObjectStat;
DiffObjectStat obj = new DiffObjectStat();
obj.setChecksum("abc123def456");
obj.setMtime(1700000000L);
obj.setContentType("text/csv");
Principle
Related Pages
Page Connections
Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment