Jump to content

Connect Leeroopedia MCP: Equip your AI agents to search best practices, build plans, verify code, diagnose failures, and look up hyperparameter defaults.

Implementation:Treeverse LakeFS Java SDK Model Merge

From Leeroopedia


Knowledge Sources
Domains Java_SDK, Data_Model
Last Updated 2026-02-08 00:00 GMT

Overview

Concrete data transfer object representing a branch merge operation in the lakeFS Java SDK.

Description

The Merge class is an auto-generated model object produced by OpenAPI Generator from the lakeFS API specification. It provides type-safe access to branch merge operation fields through getter/setter methods and supports JSON serialization via Gson.

Usage

Use this model when performing branch merge operations through the lakeFS Java SDK API classes.

Code Reference

Source Location

Signature

public class Merge {
    // Fields with @SerializedName annotations
    // Getter/setter methods
    // equals, hashCode, toString
    // JSON type adapter
}

Import

import io.lakefs.clients.sdk.model.Merge;

I/O Contract

Inputs

Name Type Required Description
message String No Commit message for the merge
metadata Map<String, String> No User-defined metadata key-value pairs
strategy String No Merge strategy to use
force Boolean No Force the merge operation (default false)
allow_empty Boolean No Allow merge with no changes (default false)
squash_merge Boolean No Whether to squash commits on merge (default false)

Outputs

Name Type Description
JSON String Serialized JSON representation of the object

Usage Examples

Creating an Instance

import io.lakefs.clients.sdk.model.Merge;

Merge obj = new Merge();
obj.setMessage("Merging feature branch");
obj.setStrategy("dest-wins");
obj.setForce(false);

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment