Skip to main content

Overview

Collate’s current Java SDK is the org.open-metadata:openmetadata-sdk module. It provides a simple initializer, a service-level client, and fluent helpers under org.openmetadata.sdk.fluent.*.

Start here

SDK overview

Installation, client setup, CRUD patterns, and fluent usage.

Lineage guide

Read and write lineage with the Java API layer.

Installation

Use the SDK version that matches your server release.

Basic client setup

Common entry points

  • OpenMetadata.client() returns the service-level client for tables(), glossaries(), databaseServices(), and similar REST-backed operations.
  • org.openmetadata.sdk.fluent.Tables, Glossaries, Users, and related helpers provide a higher-level fluent layer after you set a default client.
  • The lineage guide uses org.openmetadata.sdk.api.Lineage on top of the same initialized client.

Bulk Create with Conflict Outcomes

TestCases and GlossaryTerms in org.openmetadata.sdk.fluent can create several entities in one request and return a typed BulkCreateResult with an outcome for every input.
Conflict policies:
  • SKIP: The default. Inputs whose fully qualified name already exists, or that repeat inside the request, are reported as skipped. All other valid inputs are created.
  • FAIL: Conflicting inputs are reported as failed. All other valid inputs are still created. This is not an all-or-nothing request.
Existing and soft-deleted entities are never overwritten or restored. Result:
  • getCreatedCount(), getSkippedCount(), and getFailedCount(): Totals for the request.
  • getResults(): One outcome per input, in request order. Each has an index, a status, and the fully qualified name. Created entities also have an ID. Skipped and failed inputs have a reason (ALREADY_EXISTS, DUPLICATE_IN_REQUEST, or VALIDATION_ERROR) and a message.
Request-level errors still throw OpenMetadataException. Bulk create requires a server that supports the onConflict parameter. The service overload client.testCases().createMany(requests) is unchanged and still returns the list of created entities.