Implementation:Treeverse LakeFS Java SDK Model ObjectStats
Appearance
| Knowledge Sources | |
|---|---|
| Domains | Java_SDK, Data_Model |
| Last Updated | 2026-02-08 00:00 GMT |
Overview
Concrete data transfer object representing metadata and statistics for a stored object in the lakeFS Java SDK.
Description
The ObjectStats class is an auto-generated model object produced by OpenAPI Generator from the lakeFS API specification. It provides type-safe access to object statistics fields through getter/setter methods and supports JSON serialization via Gson.
Usage
Use this model when retrieving object metadata and statistics 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/ObjectStats.java
- Lines: 1-589
Signature
public class ObjectStats {
// Fields with @SerializedName annotations
// Getter/setter methods
// equals, hashCode, toString
// JSON type adapter
}
Import
import io.lakefs.clients.sdk.model.ObjectStats;
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| path | String | Yes | Logical path of the object in the repository |
| path_type | PathTypeEnum | Yes | Type of path entry (common_prefix or object) |
| physical_address | String | Yes | Physical storage address of the object |
| physical_address_expiry | Long | No | Expiry time for physical address access |
| checksum | String | Yes | Checksum of the object content |
| size_bytes | Long | No | Size of the object in bytes |
| mtime | Long | Yes | Modification time as epoch milliseconds |
| metadata | Map<String, String> | No | User-defined metadata key-value pairs |
| content_type | String | No | MIME content type of the object |
Outputs
| Name | Type | Description |
|---|---|---|
| JSON | String | Serialized JSON representation of the object |
Usage Examples
Creating an Instance
import io.lakefs.clients.sdk.model.ObjectStats;
ObjectStats obj = new ObjectStats();
obj.setPath("data/file.parquet");
obj.setPathType(ObjectStats.PathTypeEnum.OBJECT);
obj.setChecksum("abc123");
Related Pages
Page Connections
Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment