Skip to main content

ailake_file/
lib.rs

1// SPDX-License-Identifier: MIT OR Apache-2.0
2//! ailake-file — unified file format
3//!
4//! Owns the combined Parquet + AI-Lake footer file.
5//! The single file that Iceberg manifests point to.
6//!
7//! Layout: [PAR1][row groups][AILK header+centroid+HNSW+trailer][Parquet footer][footer_len][PAR1]
8//!
9//! See docs/specs/FILE_FORMAT.md for the binary specification.
10
11pub mod footer;
12pub mod reader;
13pub mod writer;
14
15pub use footer::{
16    AilakeHeader, AilakeTrailer, DistanceMetric, Precision, AILAKE_FORMAT_VERSION, AILAKE_MAGIC,
17    FLAG_INDEX_IVF_PQ, HEADER_SIZE, TRAILER_SIZE,
18};
19pub use reader::AilakeFileReader;
20pub use writer::{AilakeFileWriter, IndexType, VectorColumnBatch};