Implementation:Treeverse LakeFS Java SDK Model CustomViewer
Appearance
| Knowledge Sources | |
|---|---|
| Domains | Java_SDK, Data_Model |
| Last Updated | 2026-02-08 00:00 GMT |
Overview
Concrete data transfer object representing a custom viewer configuration in the lakeFS Java SDK.
Description
The CustomViewer class is an auto-generated model object produced by OpenAPI Generator from the lakeFS API specification. It provides type-safe access to custom viewer configuration fields through getter/setter methods and supports JSON serialization via Gson.
Usage
Use this model when configuring custom file viewers (matching by extension or content type) 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/CustomViewer.java
- Lines: 1-406
Signature
public class CustomViewer {
// Fields with @SerializedName annotations
// Getter/setter methods
// equals, hashCode, toString
// JSON type adapter
}
Import
import io.lakefs.clients.sdk.model.CustomViewer;
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| name | String | Yes | Display name for the custom viewer |
| url | String | Yes | URL template for the viewer |
| extensions | List<String> | No | File extensions this viewer handles |
| contentTypes | List<String> | No | MIME content types this viewer handles |
Outputs
| Name | Type | Description |
|---|---|---|
| JSON | String | Serialized JSON representation |
Usage Examples
Creating an Instance
import io.lakefs.clients.sdk.model.CustomViewer;
CustomViewer obj = new CustomViewer();
obj.setName("Parquet Viewer");
obj.setUrl("https://viewer.example.com/view?file={path}");
Principle
Related Pages
Page Connections
Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment