hudi_core/
lib.rs

1/*
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements.  See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership.  The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License.  You may obtain a copy of the License at
9 *
10 *   http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied.  See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
19//! Crate `hudi-core`.
20//!
21//! # The [config] module is responsible for managing configurations.
22//!
23//! **Example**
24//!
25//! ```rust
26//! use hudi_core::config::read::HudiReadConfig::{AsOfTimestamp, InputPartitions};
27//! use hudi_core::table::Table as HudiTable;
28//!
29//! let options = [(InputPartitions, "2"), (AsOfTimestamp, "20240101010100000")];
30//! HudiTable::new_with_options("/tmp/hudi_data", options);
31//! ```
32//!
33//! # The [table] module is responsible for managing Hudi tables.
34//!
35//! **Example**
36//!
37//! create hudi table
38//! ```rust
39//! use hudi_core::table::Table;
40//!
41//! pub async fn test() {
42//!     let hudi_table = Table::new("/tmp/hudi_data").await.unwrap();
43//! }
44//! ```
45
46mod avro_to_arrow;
47pub mod config;
48pub mod error;
49pub mod expr;
50pub mod file_group;
51pub mod merge;
52pub mod metadata;
53mod record;
54pub mod schema;
55pub mod storage;
56pub mod table;
57pub mod timeline;
58pub mod util;
59
60use error::Result;