Skip to content

GH-40: Add MapVector usage example - #1475

Open
yashdotdev13 wants to merge 1 commit into
apache:mainfrom
yashdotdev13:docs/40-mapvector-example
Open

yashdotdev13 wants to merge 1 commit into
apache:mainfrom
yashdotdev13:docs/40-mapvector-example

Conversation

@yashdotdev13

Copy link
Copy Markdown

Summary

Adds a practical MapVector example to the Java documentation.

The example demonstrates:

  • Creating a MapVector with BIGINT keys and INT values.
  • Writing multiple key-value entries using UnionMapWriter.
  • Reading entries using UnionMapReader.
  • Managing the allocator and vector lifecycle with try-with-resources.

It also explains how MapVector supports different key and value data types.

Validation

  • git diff --check passed.
  • Sphinx HTML documentation build: [report result after running the build].

Related Issue

Closes #40

@yashdotdev13 yashdotdev13 changed the title docs: Add MapVector usage example GH-40: Add MapVector usage example Nov 14, 2026
@github-actions

Copy link
Copy Markdown

Thank you for opening a pull request!

Please label the PR with one or more of:

  • bug-fix
  • chore
  • dependencies
  • documentation
  • enhancement

Also, add the 'breaking-change' label if appropriate.

See CONTRIBUTING.md for details.

@yashdotdev13

Copy link
Copy Markdown
Author

Hi maintainers,

The PR is a documentation-only contribution. The required PR-format check is asking for a label.

Could someone with repository permissions please apply the documentation label so the checks can proceed?

Thanks!

@lidavidm

Copy link
Copy Markdown
Member

git diff --check passed.

This is not a test.

Sphinx HTML documentation build: [report result after running the build].

Were the docs built?

Additionally, the original issue refers to the Cookbook, which is at https://github.com/apache/arrow-cookbook.

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.

[Java] MapVector written data does not meet expectations

2 participants