Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
H

hardwood

> 数据库
Open source

A fast minimal dependency implementation of Apache Parquet

354 stars0 likes1 views
WebsiteGitHub

About

A fast minimal dependency implementation of Apache Parquet

Hardwood

A reader and writer for the Apache Parquet file format, optimized for minimal dependencies and great performance. Available as a Java library and a command-line tool.

Hardwood gives applications fast and efficient support for reading and writing Parquet, without pulling in Hadoop, Avro, or the wider parquet-java dependency tree. It is built to be:

  • Light-weight: Zero transitive dependencies beyond optional compression libraries (Snappy, ZSTD, LZ4, Brotli)
  • Fast: Hardwood aims to be the fastest Parquet reader and writer for the JVM — see the read benchmarks
  • Complete: Read and write support for flat and nested schemas, every logical type, every primitive type in current use, and the encodings and codecs in current use, with new format additions tracked as they land
  • Scalable: Hardwood is multi-threaded at the core, pages are decoded in parallel, with cross-file prefetching for multi-file reads
  • Embeddable: The Hardwood library can be used in GraalVM native binaries; WASM support coming soon (preview)
  • Agent-friendly: Hardwood's CLI comes with a skill which lets your agents inspect and analyse Parquet files
  • Compatible: Supports all Parquet files which the canonical parquet-java library supports, and a drop-in shim module eases migration from it, with documented divergences where Hardwood applies stricter semantics (e.g. SQL three-valued notEq)

Besides the core library, Hardwood provides a ready-to-use CLI for inspecting and analysing Parquet files, including an interactive TUI for exploring a file's schema, row groups, pages, and data.

Latest version: 1.1.0.Beta1, 2026-08-31

Documentation

Full documentation is available at hardwood.dev.

Quick Start

xml

    dev.hardwood
    hardwood-core
    1.1.0.Beta1

Here's how you read a file with the row-based API:

java
import dev.hardwood.InputFile;
import dev.hardwood.reader.ParquetFileReader;
import dev.hardwood.reader.RowReader;

try (ParquetFileReader fileReader = ParquetFileReader.open(InputFile.of(path));
    RowReader rowReader = fileReader.rowReader()) {

    while (rowReader.hasNext()) {
        rowReader.next();

        long id = rowReader.getLong("id");
        String name = rowReader.getString("name");
        LocalDate birthDate = rowReader.getDate("birth_date");
        Instant createdAt = rowReader.getTimestamp("created_at");
    }
}

And here's how you write a file:

java
import dev.hardwood.OutputFile;
import dev.hardwood.writer.ParquetFileWriter;
import dev.hardwood.writer.RowWriter;

try (ParquetFileWriter writer = ParquetFileWriter.create(OutputFile.of(path), schema)) {
    RowWriter rows = writer.rowWriter();

    for (Person person : people) {
        rows.writeRow(row -> row
                .setLong("id", person.id())
                .setString("name", person.name())
                .setDate("birth_date", person.birthDate()));
    }
}

See the Getting Started guide for detailed setup instructions.

Limitations

  • Local files (memory-mapped via InputFile.of(Path)) may be arbitrarily large; each individual column chunk must be at most 2 GB of compressed data.
  • In-memory (InputFile.of(ByteBuffer)) and object-store sources are limited to 2 GB per file. Split larger datasets across multiple files and read them with Hardwood.openAll(...) or ParquetFileReader.openAll(...).
  • Writing is under active development as of Hardwood 1.1, and is documented in the development docs until 1.1 is released. It targets local files via OutputFile.of(Path); output to object storage is coming soon.

Repository Documentation

Document Purpose
ARCHITECTURE.md High-level architecture and module layout.
CONTRIBUTING.md How to contribute: workflow, commit format, PR expectations.
ROADMAP.md Implementation status, roadmap, and milestones.
NATIVE_BUILD.md How the GraalVM native CLI build works.
PERFORMANCE.md Benchmark results and how to run performance tests.
TESTING.md Manual testing recipes (e.g. S3 via s3proxy).
RELEASING.md Release process.

Articles, Talks & Podcasts

See hardwood.dev for a list of articles, talks, and podcasts about Hardwood.


Contributing

Contributions are welcome! See CONTRIBUTING.md for the full guide — how to find work, the issue-first workflow, commit message format, and PR expectations.

  • File bugs and feature requests on the issue tracker.
  • Ask questions or discuss ideas on GitHub Discussions.
  • Looking for something to work on? Browse good first issue and help wanted.

LLM-assisted contributions are welcome, but vibe coding — accepting AI-generated changes without understanding them — is not. The aspiration is a high-quality, maintainable, performant, safe codebase.

See ROADMAP.md for the detailed implementation status, roadmap, and milestones.


Build

This project requires Java 25 or newer for building (to create the multi-release JAR with Java 22+ FFM support). The resulting JAR runs on Java 21+ (libdeflate support requires Java 22+).

Docker must be running for a full build to succeed, as the integration tests use Testcontainers to spin up services (e.g. an S3 proxy). Without Docker, build with -DskipITs to run the unit test suite on its own.

It comes with the Apache Maven wrapper, i.e. a Maven distribution will be downloaded automatically, if needed.

Run the following command to build this project:

bash
./mvnw clean verify

On Windows, run the following command:

bash
mvnw.cmd clean verify

Pass the -Dquick option to skip all non-essential plug-ins and create the output artifact as quickly as possible:

bash
./mvnw clean verify -Dquick

Run the following command to format the source code and organize the imports as per the project's conventions:

bash
./mvnw process-sources

Building the Native CLI

The hardwood CLI compiles to a GraalVM native binary. Requires GraalVM (Java 25+) installed locally — install via SDKMAN:

bash
sdk install java 25.0.2-graalce

Then build the cli module and its dependencies:

bash
./mvnw -Dnative package -pl cli -am

The resulting binary is at cli/target/hardwood-cli.

See NATIVE_BUILD.md for the full build guide — obtaining a Linux binary, the Docker image, and how the native build works (codec handling, build arguments).

Building the Documentation

The documentation site can be previewed locally using Docker:

bash
# Build the image (once, or after changing requirements.txt)
docker build -t hardwood-docs docs/

# Serve locally with hot reload — preview at http://127.0.0.1:8000
docker run --rm -p 8000:8000 -v "$(pwd):/repo" hardwood-docs

# Build static site (output in docs/site/)
docker run --rm -v "$(pwd):/repo" hardwood-docs build -f docs/mkdocs.yml

The serve command polls the mounted repository, so edits to docs/content, docs/overrides, docs/hooks, and docs/mkdocs.yml rebuild the site and refresh the open browser tab. Changes to docs/requirements.txt require a rebuild of the image.

Running Claude Code

A Docker Compose set-up is provided for running Claude Code with all build dependencies (Java 25, Maven, gh) pre-installed.

bash
GH_TOKEN= docker compose run --rm claude

Set GH_TOKEN to a GitHub personal access token so that Claude Code can interact with issues and pull requests. The project directory is mounted into the container at /workspace, and Claude Code configuration is persisted in a named volume across sessions.

Creating a Release

See RELEASING.md.

API Change Report

To generate an API change report across all published modules (hardwood-core, hardwood-avro, hardwood-s3, hardwood-aws-auth):

bash
tools/api-report.sh                   # HEAD (snapshot) vs 
tools/api-report.sh    # compare two published versions

In the default (single-argument) form the script installs the snapshot jars and compares HEAD against ``. With both arguments the build step is skipped and both sides are resolved from the Maven repository — useful to diff arbitrary released pairs (e.g. Beta2 against CR1).

The script writes a unified target/japicmp/api-report.diff (text) and target/japicmp/api-report.html (one document with a TOC linking to per-module sections). Per-module reports also land under target/japicmp// (HTML / Markdown / XML / diff). Internal packages (dev.hardwood.internal) are excluded. This is run automatically during releases.

Performance

See PERFORMANCE.md for benchmark results and instructions on running performance tests.


License

This code base is available under the Apache License, version 2.


Resources

  • Parquet Format Specification
  • Thrift Compact Protocol Spec
  • Dremel Paper
  • parquet-java Reference
  • parquet-testing Files
  • arrow-testing Files

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Javaapache-parquetcolumnar-formathardwoodparquet

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category数据库
PricingOpen source

> Related tools

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库