Implementation:Treeverse LakeFS Java SDK Model Repository
Appearance
| Knowledge Sources | |
|---|---|
| Domains | Java_SDK, Data_Model |
| Last Updated | 2026-02-08 00:00 GMT |
Overview
Concrete data transfer object representing a lakeFS repository in the lakeFS Java SDK.
Description
The Repository class is an auto-generated model object produced by OpenAPI Generator from the lakeFS API specification. It provides type-safe access to repository metadata fields through getter/setter methods and supports JSON serialization via Gson.
Usage
Use this model when retrieving or managing repository information 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/Repository.java
- Lines: 1-444
Signature
public class Repository {
// Fields with @SerializedName annotations
// Getter/setter methods
// equals, hashCode, toString
// JSON type adapter
}
Import
import io.lakefs.clients.sdk.model.Repository;
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| id | String | Yes | Unique identifier for the repository |
| creation_date | Long | Yes | Epoch timestamp when the repository was created |
| default_branch | String | Yes | Name of the default branch |
| storage_id | String | No | Storage backend identifier |
| storage_namespace | String | Yes | Storage namespace (e.g., s3://bucket/prefix) |
| read_only | Boolean | No | Whether the repository is read-only |
Outputs
| Name | Type | Description |
|---|---|---|
| JSON | String | Serialized JSON representation of the object |
Usage Examples
Creating an Instance
import io.lakefs.clients.sdk.model.Repository;
Repository obj = new Repository();
obj.setId("my-repo");
obj.setDefaultBranch("main");
obj.setStorageNamespace("s3://my-bucket/repos/my-repo");
Related Pages
Page Connections
Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment