Implementation:Treeverse LakeFS Java SDK Model ImportLocation
Appearance
| Knowledge Sources | |
|---|---|
| Domains | Java_SDK, Data_Model |
| Last Updated | 2026-02-08 00:00 GMT |
Overview
Concrete data transfer object representing an import source location in the lakeFS Java SDK.
Description
The ImportLocation class is an auto-generated model object produced by OpenAPI Generator from the lakeFS API specification. It provides type-safe access to import location fields through getter/setter methods and supports JSON serialization via Gson. It includes a TypeEnum inner enum with values COMMON_PREFIX and OBJECT.
Usage
Use this model when specifying individual source locations for data import operations 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/ImportLocation.java
- Lines: 1-403
Signature
public class ImportLocation {
// Fields with @SerializedName annotations
// Getter/setter methods
// equals, hashCode, toString
// JSON type adapter
}
Import
import io.lakefs.clients.sdk.model.ImportLocation;
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| type | TypeEnum | Yes | Path type, either COMMON_PREFIX or OBJECT |
| path | String | Yes | Source path in external storage to import from |
| destination | String | Yes | Destination path within the lakeFS repository |
Outputs
| Name | Type | Description |
|---|---|---|
| JSON | String | Serialized JSON representation |
Usage Examples
Creating an Instance
import io.lakefs.clients.sdk.model.ImportLocation;
ImportLocation obj = new ImportLocation();
obj.setType(ImportLocation.TypeEnum.COMMON_PREFIX);
obj.setPath("s3://bucket/data/");
obj.setDestination("imported/data/");
Principle
Related Pages
Page Connections
Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment