Skip to content

Commit 69813af

Browse files
committed
chore: add apache license checker
1 parent 61a7446 commit 69813af

File tree

405 files changed

+5245
-408
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

405 files changed

+5245
-408
lines changed

analytic_engine/src/compaction/metrics.rs

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
1-
// Copyright 2022 CeresDB Project Authors. Licensed under Apache-2.0.
1+
// Copyright 2023 The CeresDB Authors
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.
214

315
//! Metrics of compaction.
416

analytic_engine/src/compaction/mod.rs

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
1-
// Copyright 2022-2023 CeresDB Project Authors. Licensed under Apache-2.0.
1+
// Copyright 2023 The CeresDB Authors
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.
214

315
//! Compaction.
416

analytic_engine/src/compaction/picker.rs

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
1-
// Copyright 2022-2023 CeresDB Project Authors. Licensed under Apache-2.0.
1+
// Copyright 2023 The CeresDB Authors
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.
214

315
//! Compaction picker.
416

analytic_engine/src/compaction/scheduler.rs

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
1-
// Copyright 2022-2023 CeresDB Project Authors. Licensed under Apache-2.0.
1+
// Copyright 2023 The CeresDB Authors
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.
214

315
// Compaction scheduler.
416

analytic_engine/src/context.rs

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
1-
// Copyright 2022 CeresDB Project Authors. Licensed under Apache-2.0.
1+
// Copyright 2023 The CeresDB Authors
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.
214

315
//! Context for instance
416

analytic_engine/src/engine.rs

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
1-
// Copyright 2022-2023 CeresDB Project Authors. Licensed under Apache-2.0.
1+
// Copyright 2023 The CeresDB Authors
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.
214

315
//! Implements the TableEngine trait
416

analytic_engine/src/instance/alter.rs

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
1-
// Copyright 2022-2023 CeresDB Project Authors. Licensed under Apache-2.0.
1+
// Copyright 2023 The CeresDB Authors
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.
214

315
//! Alter [Schema] and [TableOptions] logic of instance.
416

analytic_engine/src/instance/close.rs

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
1-
// Copyright 2022-2023 CeresDB Project Authors. Licensed under Apache-2.0.
1+
// Copyright 2023 The CeresDB Authors
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.
214

315
//! Close table logic of instance
416

analytic_engine/src/instance/create.rs

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
1-
// Copyright 2022-2023 CeresDB Project Authors. Licensed under Apache-2.0.
1+
// Copyright 2023 The CeresDB Authors
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.
214

315
//! Create table logic of instance
416

analytic_engine/src/instance/drop.rs

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
1-
// Copyright 2022-2023 CeresDB Project Authors. Licensed under Apache-2.0.
1+
// Copyright 2023 The CeresDB Authors
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.
214

315
//! Drop table logic of instance
416

analytic_engine/src/instance/engine.rs

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
1-
// Copyright 2022-2023 CeresDB Project Authors. Licensed under Apache-2.0.
1+
// Copyright 2023 The CeresDB Authors
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.
214

315
//! Table engine logic of instance
416

analytic_engine/src/instance/flush_compaction.rs

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
1-
// Copyright 2022-2023 CeresDB Project Authors. Licensed under Apache-2.0.
1+
// Copyright 2023 The CeresDB Authors
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.
214

315
// Flush and compaction logic of instance
416

analytic_engine/src/instance/mem_collector.rs

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
1-
// Copyright 2022 CeresDB Project Authors. Licensed under Apache-2.0.
1+
// Copyright 2023 The CeresDB Authors
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.
214

315
use std::sync::atomic::{AtomicUsize, Ordering};
416

analytic_engine/src/instance/mod.rs

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
1-
// Copyright 2022-2023 CeresDB Project Authors. Licensed under Apache-2.0.
1+
// Copyright 2023 The CeresDB Authors
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.
214

315
//! A table engine instance
416
//!

analytic_engine/src/instance/open.rs

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
1-
// Copyright 2022-2023 CeresDB Project Authors. Licensed under Apache-2.0.
1+
// Copyright 2023 The CeresDB Authors
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.
214

315
//! Open logic of instance
416

analytic_engine/src/instance/read.rs

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
1-
// Copyright 2022-2023 CeresDB Project Authors. Licensed under Apache-2.0.
1+
// Copyright 2023 The CeresDB Authors
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.
214

315
//! Read logic of instance
416

analytic_engine/src/instance/serial_executor.rs

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
1-
// Copyright 2023 CeresDB Project Authors. Licensed under Apache-2.0.
1+
// Copyright 2023 The CeresDB Authors
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.
214

315
use std::{
416
sync::{

analytic_engine/src/instance/wal_replayer.rs

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
1-
// Copyright 2023 CeresDB Project Authors. Licensed under Apache-2.0.
1+
// Copyright 2023 The CeresDB Authors
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.
214

315
//! Wal replayer
416

analytic_engine/src/instance/write.rs

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
1-
// Copyright 2022-2023 CeresDB Project Authors. Licensed under Apache-2.0.
1+
// Copyright 2023 The CeresDB Authors
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.
214

315
//! Write logic of instance
416

analytic_engine/src/lib.rs

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
1-
// Copyright 2022-2023 CeresDB Project Authors. Licensed under Apache-2.0.
1+
// Copyright 2023 The CeresDB Authors
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.
214

315
//! Analytic table engine implementations
416

analytic_engine/src/manifest/details.rs

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
1-
// Copyright 2022-2023 CeresDB Project Authors. Licensed under Apache-2.0.
1+
// Copyright 2023 The CeresDB Authors
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.
214

315
//! Implementation of Manifest
416

analytic_engine/src/manifest/meta_edit.rs

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
1-
// Copyright 2022-2023 CeresDB Project Authors. Licensed under Apache-2.0.
1+
// Copyright 2023 The CeresDB Authors
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.
214

315
//! Update to meta
416

0 commit comments

Comments
 (0)