Skip to content

Conversation

@Prajwal-banakar
Copy link

@Prajwal-banakar Prajwal-banakar commented Dec 25, 2025

This commit adds documentation for the new Typed API, which allows users to work directly with POJOs. It includes examples for writing, reading, and performing lookups, as well as a note on performance considerations.

Purpose

Linked issue: close #2230

The purpose of this change is to provide comprehensive documentation for the Typed API introduced in #1992. This API simplifies the developer experience by allowing users to interact with Fluss using POJOs (Plain Old Java Objects) rather than manually handling row and column indices, ensuring better type safety and code readability.

Brief change log

• New Documentation Page: Added website/docs/apis/java-typed-api.md covering the Typed API usage.
• Usage Examples: Included code snippets for:
◦ Defining POJOs with supported data types.
◦ Writing data using TypedAppendWriter and TypedUpsertWriter (including partial updates).
◦ Reading and scanning data using TypedLogScanner.
◦ Performing point lookups via TypedLookuper.
• Performance Notes: Added a section on the overhead of reflection/conversion vs. manual row handling and best practices for high-throughput scenarios.
• Updated Existing Docs: Updated website/docs/apis/java-client.md to link to the new Typed API page.

Tests

Documentation Build: Verified that the documentation renders correctly using the local Docusaurus build process.

Code Snippets: All Java code examples included in the documentation were cross-referenced with existing integration tests in fluss-client to ensure accuracy.

BEFORE
Screenshot 2025-12-25 225948

AFTER
Screenshot 2025-12-25 225929

NOW
Screenshot 2025-12-26 103913

API and Format

This PR is documentation only and does not change the existing API or storage format. It describes the public TypedAppendWriter, TypedUpsertWriter, TypedLogScanner, and TypedLookuper interfaces.

Documentation

Does this change introduce a new feature? No, it documents a feature previously added.

Is the documentation updated? Yes, this PR is specifically for documentation.

…ers to work directly with POJOs. It includes examples for writing, reading, and performing lookups, as well as a note on performance considerations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Docs] Document the TypedAPI

1 participant