common_datasource/lib.rs
1// Copyright 2023 Greptime Team
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15#![feature(assert_matches)]
16#![feature(type_alias_impl_trait)]
17
18pub mod buffered_writer;
19pub mod compressed_writer;
20pub mod compression;
21pub mod error;
22pub mod file_format;
23pub mod lister;
24pub mod object_store;
25pub mod parquet_writer;
26pub mod share_buffer;
27#[cfg(test)]
28pub mod test_util;
29#[cfg(test)]
30pub mod tests;
31pub mod util;
32
33use common_base::readable_size::ReadableSize;
34
35/// Default write buffer size, it should be greater than the default minimum upload part of S3 (5mb).
36pub const DEFAULT_WRITE_BUFFER_SIZE: ReadableSize = ReadableSize::mb(8);