diff --git a/Cargo.lock b/Cargo.lock index ad11c98c85..5c407f4d7d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5389,6 +5389,10 @@ dependencies = [ "tokio", ] +[[package]] +name = "mito2" +version = "0.4.0" + [[package]] name = "moka" version = "0.9.7" diff --git a/Cargo.toml b/Cargo.toml index 1231c930db..be1554ce67 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,6 +33,7 @@ members = [ "src/meta-client", "src/meta-srv", "src/mito", + "src/mito2", "src/object-store", "src/partition", "src/promql", diff --git a/src/mito2/Cargo.toml b/src/mito2/Cargo.toml new file mode 100644 index 0000000000..7eba8be440 --- /dev/null +++ b/src/mito2/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "mito2" +version.workspace = true +edition.workspace = true +license.workspace = true + +[dependencies] diff --git a/src/mito2/README.md b/src/mito2/README.md new file mode 100644 index 0000000000..ae58d6d3d2 --- /dev/null +++ b/src/mito2/README.md @@ -0,0 +1,9 @@ +# Mito + +Mito is GreptimeDB's default region engine. + +## About Mito +The Alfa Romeo [MiTo](https://en.wikipedia.org/wiki/Alfa_Romeo_MiTo) is a front-wheel drive, three-door supermini designed by Centro Stile Alfa Romeo. + +> "You can't be a true petrolhead until you've owned an Alfa Romeo." +>
-- by Jeremy Clarkson
diff --git a/src/mito2/src/engine.rs b/src/mito2/src/engine.rs new file mode 100644 index 0000000000..51fea657cc --- /dev/null +++ b/src/mito2/src/engine.rs @@ -0,0 +1,17 @@ +// Copyright 2023 Greptime Team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/// Region engine implementation for timeseries data. +#[derive(Clone)] +pub struct MitoEngine {} diff --git a/src/mito2/src/lib.rs b/src/mito2/src/lib.rs new file mode 100644 index 0000000000..8f0d0d0f9a --- /dev/null +++ b/src/mito2/src/lib.rs @@ -0,0 +1,15 @@ +// Copyright 2023 Greptime Team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +pub mod engine;