From 92c522a8a2d6deeb0591d797580a84060ae6d0c7 Mon Sep 17 00:00:00 2001 From: Bingyi Sun Date: Thu, 23 Nov 2023 15:20:16 +0800 Subject: [PATCH] [Go&Cpp]: Add Apache 2.0 license (#93) Signed-off-by: sunby --- LICENSE | 201 ++++++++++++++++++ .../milvus-storage/common/arrow_util.h | 14 ++ cpp/include/milvus-storage/common/constants.h | 14 ++ cpp/include/milvus-storage/common/fs_util.h | 14 ++ cpp/include/milvus-storage/common/log.h | 14 ++ cpp/include/milvus-storage/common/macro.h | 14 ++ .../milvus-storage/common/opendal_fs.h | 14 ++ cpp/include/milvus-storage/common/result.h | 14 ++ cpp/include/milvus-storage/common/status.h | 14 ++ cpp/include/milvus-storage/common/utils.h | 14 ++ cpp/include/milvus-storage/file/blob.h | 14 ++ .../milvus-storage/file/delete_fragment.h | 14 ++ cpp/include/milvus-storage/file/file.h | 14 ++ cpp/include/milvus-storage/file/fragment.h | 14 ++ .../filter/conjunction_filter.h | 14 ++ .../milvus-storage/filter/constant_filter.h | 14 ++ cpp/include/milvus-storage/filter/filter.h | 14 ++ cpp/include/milvus-storage/filter/value.h | 14 ++ .../format/parquet/file_reader.h | 14 ++ .../format/parquet/file_writer.h | 14 ++ cpp/include/milvus-storage/format/reader.h | 14 ++ cpp/include/milvus-storage/format/writer.h | 14 ++ .../reader/common/combine_offset_reader.h | 14 ++ .../reader/common/combine_reader.h | 14 ++ .../reader/common/delete_reader.h | 14 ++ .../reader/common/filter_reader.h | 14 ++ .../reader/common/projection_reader.h | 14 ++ .../reader/filter_query_record_reader.h | 14 ++ .../reader/merge_record_reader.h | 14 ++ .../reader/multi_files_sequential_reader.h | 14 ++ .../milvus-storage/reader/record_reader.h | 14 ++ .../reader/scan_record_reader.h | 14 ++ cpp/include/milvus-storage/storage/manifest.h | 14 ++ cpp/include/milvus-storage/storage/options.h | 14 ++ cpp/include/milvus-storage/storage/schema.h | 14 ++ cpp/include/milvus-storage/storage/space.h | 14 ++ cpp/src/common/arrow_util.cpp | 14 ++ cpp/src/common/fs_util.cpp | 14 ++ cpp/src/common/log.cpp | 14 ++ cpp/src/common/opendal_fs.cpp | 14 ++ cpp/src/common/result.cpp | 14 ++ cpp/src/common/status.cpp | 14 ++ cpp/src/common/utils.cpp | 14 ++ cpp/src/file/blob.cpp | 14 ++ cpp/src/file/delete_fragment.cpp | 14 ++ cpp/src/file/file.cpp | 14 ++ cpp/src/file/fragment.cpp | 14 ++ cpp/src/filter/conjunction_filter.cpp | 14 ++ cpp/src/filter/constant_filter.cpp | 14 ++ cpp/src/filter/value.cpp | 14 ++ cpp/src/format/parquet/file_reader.cpp | 14 ++ cpp/src/format/parquet/file_writer.cpp | 14 ++ .../reader/common/combine_offset_reader.cpp | 14 ++ cpp/src/reader/common/combine_reader.cpp | 14 ++ cpp/src/reader/common/delete_reader.cpp | 14 ++ cpp/src/reader/common/filter_reader.cpp | 14 ++ cpp/src/reader/common/projection_reader.cpp | 14 ++ cpp/src/reader/filter_query_record_reader.cpp | 14 ++ cpp/src/reader/merge_record_reader.cpp | 14 ++ .../reader/multi_files_sequential_reader.cpp | 14 ++ cpp/src/reader/record_reader.cpp | 14 ++ cpp/src/reader/scan_record_reader.cpp | 14 ++ cpp/src/storage/manifest.cpp | 14 ++ cpp/src/storage/options.cpp | 14 ++ cpp/src/storage/schema.cpp | 14 ++ cpp/src/storage/space.cpp | 14 ++ cpp/test/manifest_test.cpp | 14 ++ .../multi_files_sequential_reader_test.cpp | 14 ++ cpp/test/options_test.cpp | 14 ++ cpp/test/schema_test.cpp | 14 ++ cpp/test/space_test.cpp | 14 ++ cpp/test/test_util.cpp | 14 ++ cpp/test/test_util.h | 14 ++ go/common/arrow_util/arrow_util.go | 14 ++ go/common/constant/constant.go | 14 ++ go/common/errors/errors.go | 14 ++ go/common/log/field.go | 14 ++ go/common/log/log.go | 14 ++ go/common/log/log_test.go | 14 ++ go/common/log/options.go | 14 ++ go/common/utils/utils.go | 14 ++ go/file/blob/blob.go | 14 ++ go/file/fragment/deletefragment.go | 14 ++ go/file/fragment/fragment.go | 14 ++ go/filter/conjunction_filter.go | 14 ++ go/filter/constant_filter.go | 14 ++ go/filter/filter.go | 14 ++ go/io/format/parquet/file_reader.go | 14 ++ go/io/format/parquet/file_writer.go | 14 ++ go/io/format/reader.go | 14 ++ go/io/format/writer.go | 14 ++ go/io/fs/factory.go | 14 ++ go/io/fs/file/file.go | 14 ++ go/io/fs/file/local_file.go | 14 ++ go/io/fs/file/memory_file.go | 14 ++ go/io/fs/file/minio_file.go | 14 ++ go/io/fs/fs.go | 14 ++ go/io/fs/fs_util.go | 14 ++ go/io/fs/local_fs.go | 14 ++ go/io/fs/memory_fs.go | 14 ++ go/io/fs/minio_fs.go | 14 ++ go/io/fs/minio_fs_test.go | 14 ++ go/main.go | 1 - go/reader/common_reader/delete_reader.go | 14 ++ go/reader/common_reader/filter_reader.go | 14 ++ go/reader/common_reader/projection_reader.go | 14 ++ .../record_reader/filter_query_record.go | 14 ++ .../record_reader/merge_record_reader.go | 14 ++ .../multi_files_sequential_reader.go | 14 ++ go/reader/record_reader/record_reader.go | 14 ++ go/reader/record_reader/scan_record.go | 14 ++ go/storage/lock/lock_manager.go | 14 ++ go/storage/manifest/commit.go | 14 ++ go/storage/manifest/commit_op.go | 14 ++ go/storage/manifest/manifest.go | 14 ++ go/storage/manifest/manifest_test.go | 14 ++ go/storage/manifest/reader_writer.go | 14 ++ go/storage/options/options.go | 14 ++ go/storage/schema/schema.go | 14 ++ go/storage/schema/schema_option.go | 14 ++ go/storage/schema/schema_test.go | 14 ++ go/storage/space.go | 14 ++ go/storage/space_test.go | 14 ++ go/storage/transaction/transaction.go | 14 ++ go/storage/transaction/transaction_test.go | 14 ++ 125 files changed, 1923 insertions(+), 1 deletion(-) create mode 100644 LICENSE delete mode 100644 go/main.go diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..3dfb355 --- /dev/null +++ b/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2023 Zilliz + + 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. diff --git a/cpp/include/milvus-storage/common/arrow_util.h b/cpp/include/milvus-storage/common/arrow_util.h index 5f66469..2fd041e 100644 --- a/cpp/include/milvus-storage/common/arrow_util.h +++ b/cpp/include/milvus-storage/common/arrow_util.h @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #pragma once #include #include "parquet/arrow/reader.h" diff --git a/cpp/include/milvus-storage/common/constants.h b/cpp/include/milvus-storage/common/constants.h index d8c15d1..fa2dec8 100644 --- a/cpp/include/milvus-storage/common/constants.h +++ b/cpp/include/milvus-storage/common/constants.h @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #include namespace milvus_storage { diff --git a/cpp/include/milvus-storage/common/fs_util.h b/cpp/include/milvus-storage/common/fs_util.h index e400780..fd254b9 100644 --- a/cpp/include/milvus-storage/common/fs_util.h +++ b/cpp/include/milvus-storage/common/fs_util.h @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #pragma once #include #include diff --git a/cpp/include/milvus-storage/common/log.h b/cpp/include/milvus-storage/common/log.h index bfcf955..8fc0a9f 100644 --- a/cpp/include/milvus-storage/common/log.h +++ b/cpp/include/milvus-storage/common/log.h @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + // Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/cpp/include/milvus-storage/common/macro.h b/cpp/include/milvus-storage/common/macro.h index ae76d71..74b91f7 100644 --- a/cpp/include/milvus-storage/common/macro.h +++ b/cpp/include/milvus-storage/common/macro.h @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #pragma once #include diff --git a/cpp/include/milvus-storage/common/opendal_fs.h b/cpp/include/milvus-storage/common/opendal_fs.h index d823f10..21d56f1 100644 --- a/cpp/include/milvus-storage/common/opendal_fs.h +++ b/cpp/include/milvus-storage/common/opendal_fs.h @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #include #include #include diff --git a/cpp/include/milvus-storage/common/result.h b/cpp/include/milvus-storage/common/result.h index e79b69c..a24bf3a 100644 --- a/cpp/include/milvus-storage/common/result.h +++ b/cpp/include/milvus-storage/common/result.h @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #pragma once #include "assert.h" #include "status.h" diff --git a/cpp/include/milvus-storage/common/status.h b/cpp/include/milvus-storage/common/status.h index 0805a59..1ef74a5 100644 --- a/cpp/include/milvus-storage/common/status.h +++ b/cpp/include/milvus-storage/common/status.h @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #pragma once #include diff --git a/cpp/include/milvus-storage/common/utils.h b/cpp/include/milvus-storage/common/utils.h index ae948b1..627a6cc 100644 --- a/cpp/include/milvus-storage/common/utils.h +++ b/cpp/include/milvus-storage/common/utils.h @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #include #include "arrow/type.h" #include diff --git a/cpp/include/milvus-storage/file/blob.h b/cpp/include/milvus-storage/file/blob.h index 0f4949f..8b269ff 100644 --- a/cpp/include/milvus-storage/file/blob.h +++ b/cpp/include/milvus-storage/file/blob.h @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #pragma once #include diff --git a/cpp/include/milvus-storage/file/delete_fragment.h b/cpp/include/milvus-storage/file/delete_fragment.h index 745e98f..6b2d931 100644 --- a/cpp/include/milvus-storage/file/delete_fragment.h +++ b/cpp/include/milvus-storage/file/delete_fragment.h @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #pragma once #include #include diff --git a/cpp/include/milvus-storage/file/file.h b/cpp/include/milvus-storage/file/file.h index d0a99a7..bd6c3dd 100644 --- a/cpp/include/milvus-storage/file/file.h +++ b/cpp/include/milvus-storage/file/file.h @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #pragma once #include diff --git a/cpp/include/milvus-storage/file/fragment.h b/cpp/include/milvus-storage/file/fragment.h index e5a8b4a..528bb36 100644 --- a/cpp/include/milvus-storage/file/fragment.h +++ b/cpp/include/milvus-storage/file/fragment.h @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #pragma once #include diff --git a/cpp/include/milvus-storage/filter/conjunction_filter.h b/cpp/include/milvus-storage/filter/conjunction_filter.h index 73b9536..ae504f1 100644 --- a/cpp/include/milvus-storage/filter/conjunction_filter.h +++ b/cpp/include/milvus-storage/filter/conjunction_filter.h @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #pragma once #include "filter/filter.h" diff --git a/cpp/include/milvus-storage/filter/constant_filter.h b/cpp/include/milvus-storage/filter/constant_filter.h index 45998ed..a2e494d 100644 --- a/cpp/include/milvus-storage/filter/constant_filter.h +++ b/cpp/include/milvus-storage/filter/constant_filter.h @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #pragma once #include "arrow/array/array_base.h" #include "filter.h" diff --git a/cpp/include/milvus-storage/filter/filter.h b/cpp/include/milvus-storage/filter/filter.h index 35fa5f7..1214c4e 100644 --- a/cpp/include/milvus-storage/filter/filter.h +++ b/cpp/include/milvus-storage/filter/filter.h @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #pragma once #include diff --git a/cpp/include/milvus-storage/filter/value.h b/cpp/include/milvus-storage/filter/value.h index dd13e3f..4d76685 100644 --- a/cpp/include/milvus-storage/filter/value.h +++ b/cpp/include/milvus-storage/filter/value.h @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #pragma once #include diff --git a/cpp/include/milvus-storage/format/parquet/file_reader.h b/cpp/include/milvus-storage/format/parquet/file_reader.h index bbd4bd4..ddb2ac5 100644 --- a/cpp/include/milvus-storage/format/parquet/file_reader.h +++ b/cpp/include/milvus-storage/format/parquet/file_reader.h @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #pragma once #include "arrow/filesystem/filesystem.h" #include "format/reader.h" diff --git a/cpp/include/milvus-storage/format/parquet/file_writer.h b/cpp/include/milvus-storage/format/parquet/file_writer.h index f8e60e7..adb7259 100644 --- a/cpp/include/milvus-storage/format/parquet/file_writer.h +++ b/cpp/include/milvus-storage/format/parquet/file_writer.h @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #pragma once #include "arrow/filesystem/filesystem.h" diff --git a/cpp/include/milvus-storage/format/reader.h b/cpp/include/milvus-storage/format/reader.h index 626db08..de70f49 100644 --- a/cpp/include/milvus-storage/format/reader.h +++ b/cpp/include/milvus-storage/format/reader.h @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #pragma once #include "arrow/table.h" diff --git a/cpp/include/milvus-storage/format/writer.h b/cpp/include/milvus-storage/format/writer.h index eb13eec..711cec5 100644 --- a/cpp/include/milvus-storage/format/writer.h +++ b/cpp/include/milvus-storage/format/writer.h @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #pragma once #include "arrow/record_batch.h" #include "common/status.h" diff --git a/cpp/include/milvus-storage/reader/common/combine_offset_reader.h b/cpp/include/milvus-storage/reader/common/combine_offset_reader.h index c16b87d..0f2a746 100644 --- a/cpp/include/milvus-storage/reader/common/combine_offset_reader.h +++ b/cpp/include/milvus-storage/reader/common/combine_offset_reader.h @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #pragma once #include diff --git a/cpp/include/milvus-storage/reader/common/combine_reader.h b/cpp/include/milvus-storage/reader/common/combine_reader.h index 2994aef..72e4459 100644 --- a/cpp/include/milvus-storage/reader/common/combine_reader.h +++ b/cpp/include/milvus-storage/reader/common/combine_reader.h @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #pragma once #include diff --git a/cpp/include/milvus-storage/reader/common/delete_reader.h b/cpp/include/milvus-storage/reader/common/delete_reader.h index 2ce6365..a0f190f 100644 --- a/cpp/include/milvus-storage/reader/common/delete_reader.h +++ b/cpp/include/milvus-storage/reader/common/delete_reader.h @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #pragma once #include diff --git a/cpp/include/milvus-storage/reader/common/filter_reader.h b/cpp/include/milvus-storage/reader/common/filter_reader.h index 18350c5..2790254 100644 --- a/cpp/include/milvus-storage/reader/common/filter_reader.h +++ b/cpp/include/milvus-storage/reader/common/filter_reader.h @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #pragma once #include diff --git a/cpp/include/milvus-storage/reader/common/projection_reader.h b/cpp/include/milvus-storage/reader/common/projection_reader.h index fabc499..31c633a 100644 --- a/cpp/include/milvus-storage/reader/common/projection_reader.h +++ b/cpp/include/milvus-storage/reader/common/projection_reader.h @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #pragma once #include diff --git a/cpp/include/milvus-storage/reader/filter_query_record_reader.h b/cpp/include/milvus-storage/reader/filter_query_record_reader.h index c53a4b7..61a8863 100644 --- a/cpp/include/milvus-storage/reader/filter_query_record_reader.h +++ b/cpp/include/milvus-storage/reader/filter_query_record_reader.h @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #pragma once #include #include diff --git a/cpp/include/milvus-storage/reader/merge_record_reader.h b/cpp/include/milvus-storage/reader/merge_record_reader.h index a070249..2a51e55 100644 --- a/cpp/include/milvus-storage/reader/merge_record_reader.h +++ b/cpp/include/milvus-storage/reader/merge_record_reader.h @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #pragma once #include "arrow/record_batch.h" diff --git a/cpp/include/milvus-storage/reader/multi_files_sequential_reader.h b/cpp/include/milvus-storage/reader/multi_files_sequential_reader.h index 8b5e1d8..eac03c5 100644 --- a/cpp/include/milvus-storage/reader/multi_files_sequential_reader.h +++ b/cpp/include/milvus-storage/reader/multi_files_sequential_reader.h @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #pragma once #include diff --git a/cpp/include/milvus-storage/reader/record_reader.h b/cpp/include/milvus-storage/reader/record_reader.h index 669ae5f..0002bce 100644 --- a/cpp/include/milvus-storage/reader/record_reader.h +++ b/cpp/include/milvus-storage/reader/record_reader.h @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #pragma once #include "file/delete_fragment.h" diff --git a/cpp/include/milvus-storage/reader/scan_record_reader.h b/cpp/include/milvus-storage/reader/scan_record_reader.h index 3de9f1b..4a9eb55 100644 --- a/cpp/include/milvus-storage/reader/scan_record_reader.h +++ b/cpp/include/milvus-storage/reader/scan_record_reader.h @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #pragma once #include diff --git a/cpp/include/milvus-storage/storage/manifest.h b/cpp/include/milvus-storage/storage/manifest.h index 46ae7c1..7c3b927 100644 --- a/cpp/include/milvus-storage/storage/manifest.h +++ b/cpp/include/milvus-storage/storage/manifest.h @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #pragma once #include "schema.h" diff --git a/cpp/include/milvus-storage/storage/options.h b/cpp/include/milvus-storage/storage/options.h index 8e43c62..debc2e4 100644 --- a/cpp/include/milvus-storage/storage/options.h +++ b/cpp/include/milvus-storage/storage/options.h @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #pragma once #include diff --git a/cpp/include/milvus-storage/storage/schema.h b/cpp/include/milvus-storage/storage/schema.h index 248b5a9..60ddc37 100644 --- a/cpp/include/milvus-storage/storage/schema.h +++ b/cpp/include/milvus-storage/storage/schema.h @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #pragma once #include "options.h" #include "common/result.h" diff --git a/cpp/include/milvus-storage/storage/space.h b/cpp/include/milvus-storage/storage/space.h index 8db04bb..b81cd13 100644 --- a/cpp/include/milvus-storage/storage/space.h +++ b/cpp/include/milvus-storage/storage/space.h @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #pragma once #include #include diff --git a/cpp/src/common/arrow_util.cpp b/cpp/src/common/arrow_util.cpp index a39b58b..f07fa8a 100644 --- a/cpp/src/common/arrow_util.cpp +++ b/cpp/src/common/arrow_util.cpp @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #include "common/arrow_util.h" #include "common/log.h" #include "common/macro.h" diff --git a/cpp/src/common/fs_util.cpp b/cpp/src/common/fs_util.cpp index 85b023f..d8867c0 100644 --- a/cpp/src/common/fs_util.cpp +++ b/cpp/src/common/fs_util.cpp @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #include "common/fs_util.h" #include #include diff --git a/cpp/src/common/log.cpp b/cpp/src/common/log.cpp index 88a925a..7728aad 100644 --- a/cpp/src/common/log.cpp +++ b/cpp/src/common/log.cpp @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + // Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/cpp/src/common/opendal_fs.cpp b/cpp/src/common/opendal_fs.cpp index 139aa98..c511539 100644 --- a/cpp/src/common/opendal_fs.cpp +++ b/cpp/src/common/opendal_fs.cpp @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #include "common/opendal_fs.h" #include #include diff --git a/cpp/src/common/result.cpp b/cpp/src/common/result.cpp index bb9df4b..2cbf7a1 100644 --- a/cpp/src/common/result.cpp +++ b/cpp/src/common/result.cpp @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #include "common/result.h" namespace milvus_storage {} // namespace milvus_storage diff --git a/cpp/src/common/status.cpp b/cpp/src/common/status.cpp index c20cb15..b98705a 100644 --- a/cpp/src/common/status.cpp +++ b/cpp/src/common/status.cpp @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #include "common/status.h" #include #include diff --git a/cpp/src/common/utils.cpp b/cpp/src/common/utils.cpp index 62e5974..0456753 100644 --- a/cpp/src/common/utils.cpp +++ b/cpp/src/common/utils.cpp @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #include "common/utils.h" #include #include diff --git a/cpp/src/file/blob.cpp b/cpp/src/file/blob.cpp index 15bb9a0..04f3d10 100644 --- a/cpp/src/file/blob.cpp +++ b/cpp/src/file/blob.cpp @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #include "file/blob.h" #include #include "proto/manifest.pb.h" diff --git a/cpp/src/file/delete_fragment.cpp b/cpp/src/file/delete_fragment.cpp index 356be41..bfffbfc 100644 --- a/cpp/src/file/delete_fragment.cpp +++ b/cpp/src/file/delete_fragment.cpp @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #include "file/delete_fragment.h" #include #include "common/status.h" diff --git a/cpp/src/file/file.cpp b/cpp/src/file/file.cpp index e208b84..0a704b6 100644 --- a/cpp/src/file/file.cpp +++ b/cpp/src/file/file.cpp @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #include "file/file.h" namespace milvus_storage { diff --git a/cpp/src/file/fragment.cpp b/cpp/src/file/fragment.cpp index 01d9f56..fe02610 100644 --- a/cpp/src/file/fragment.cpp +++ b/cpp/src/file/fragment.cpp @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #include "file/fragment.h" #include #include diff --git a/cpp/src/filter/conjunction_filter.cpp b/cpp/src/filter/conjunction_filter.cpp index 1afa403..6db5034 100644 --- a/cpp/src/filter/conjunction_filter.cpp +++ b/cpp/src/filter/conjunction_filter.cpp @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #include "filter/conjunction_filter.h" #include "common/macro.h" diff --git a/cpp/src/filter/constant_filter.cpp b/cpp/src/filter/constant_filter.cpp index d54bd06..4020846 100644 --- a/cpp/src/filter/constant_filter.cpp +++ b/cpp/src/filter/constant_filter.cpp @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #include "filter/constant_filter.h" #include diff --git a/cpp/src/filter/value.cpp b/cpp/src/filter/value.cpp index f4a399e..01942a6 100644 --- a/cpp/src/filter/value.cpp +++ b/cpp/src/filter/value.cpp @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #include "filter/value.h" #include diff --git a/cpp/src/format/parquet/file_reader.cpp b/cpp/src/format/parquet/file_reader.cpp index 99a32f0..2b34bf8 100644 --- a/cpp/src/format/parquet/file_reader.cpp +++ b/cpp/src/format/parquet/file_reader.cpp @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #include "format/parquet/file_reader.h" #include diff --git a/cpp/src/format/parquet/file_writer.cpp b/cpp/src/format/parquet/file_writer.cpp index 24f482c..cd5af38 100644 --- a/cpp/src/format/parquet/file_writer.cpp +++ b/cpp/src/format/parquet/file_writer.cpp @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #include "common/macro.h" #include "format/parquet/file_writer.h" namespace milvus_storage { diff --git a/cpp/src/reader/common/combine_offset_reader.cpp b/cpp/src/reader/common/combine_offset_reader.cpp index defdea9..008b546 100644 --- a/cpp/src/reader/common/combine_offset_reader.cpp +++ b/cpp/src/reader/common/combine_offset_reader.cpp @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #include "reader/common/combine_offset_reader.h" #include "arrow/array/array_primitive.h" namespace milvus_storage { diff --git a/cpp/src/reader/common/combine_reader.cpp b/cpp/src/reader/common/combine_reader.cpp index 3c63633..f554a9a 100644 --- a/cpp/src/reader/common/combine_reader.cpp +++ b/cpp/src/reader/common/combine_reader.cpp @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #include "reader/common/combine_reader.h" #include "common/macro.h" #include "arrow/type.h" diff --git a/cpp/src/reader/common/delete_reader.cpp b/cpp/src/reader/common/delete_reader.cpp index ccc8a30..1dc6241 100644 --- a/cpp/src/reader/common/delete_reader.cpp +++ b/cpp/src/reader/common/delete_reader.cpp @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #include "reader/common/delete_reader.h" namespace milvus_storage { diff --git a/cpp/src/reader/common/filter_reader.cpp b/cpp/src/reader/common/filter_reader.cpp index 9ce8f13..2bae303 100644 --- a/cpp/src/reader/common/filter_reader.cpp +++ b/cpp/src/reader/common/filter_reader.cpp @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #include "reader/common/filter_reader.h" #include #include "arrow/record_batch.h" diff --git a/cpp/src/reader/common/projection_reader.cpp b/cpp/src/reader/common/projection_reader.cpp index c96f728..e96e60e 100644 --- a/cpp/src/reader/common/projection_reader.cpp +++ b/cpp/src/reader/common/projection_reader.cpp @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #include "reader/common/projection_reader.h" #include #include diff --git a/cpp/src/reader/filter_query_record_reader.cpp b/cpp/src/reader/filter_query_record_reader.cpp index fe8cd97..ccbff60 100644 --- a/cpp/src/reader/filter_query_record_reader.cpp +++ b/cpp/src/reader/filter_query_record_reader.cpp @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #include "reader/filter_query_record_reader.h" #include #include diff --git a/cpp/src/reader/merge_record_reader.cpp b/cpp/src/reader/merge_record_reader.cpp index ea99a6b..24aa986 100644 --- a/cpp/src/reader/merge_record_reader.cpp +++ b/cpp/src/reader/merge_record_reader.cpp @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #include "reader/merge_record_reader.h" #include #include diff --git a/cpp/src/reader/multi_files_sequential_reader.cpp b/cpp/src/reader/multi_files_sequential_reader.cpp index 8440474..b397ab9 100644 --- a/cpp/src/reader/multi_files_sequential_reader.cpp +++ b/cpp/src/reader/multi_files_sequential_reader.cpp @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #include "reader/multi_files_sequential_reader.h" #include #include diff --git a/cpp/src/reader/record_reader.cpp b/cpp/src/reader/record_reader.cpp index f1784dc..5ab39ea 100644 --- a/cpp/src/reader/record_reader.cpp +++ b/cpp/src/reader/record_reader.cpp @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #include "reader/record_reader.h" #include #include diff --git a/cpp/src/reader/scan_record_reader.cpp b/cpp/src/reader/scan_record_reader.cpp index 0971a8a..af109e0 100644 --- a/cpp/src/reader/scan_record_reader.cpp +++ b/cpp/src/reader/scan_record_reader.cpp @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #include "reader/scan_record_reader.h" #include #include "common/macro.h" diff --git a/cpp/src/storage/manifest.cpp b/cpp/src/storage/manifest.cpp index 16d0a93..9407d6a 100644 --- a/cpp/src/storage/manifest.cpp +++ b/cpp/src/storage/manifest.cpp @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #include "storage/manifest.h" #include #include diff --git a/cpp/src/storage/options.cpp b/cpp/src/storage/options.cpp index 773b23e..3bd2175 100644 --- a/cpp/src/storage/options.cpp +++ b/cpp/src/storage/options.cpp @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #include "storage/options.h" #include #include "arrow/type.h" diff --git a/cpp/src/storage/schema.cpp b/cpp/src/storage/schema.cpp index 43f51ae..74bb1ec 100644 --- a/cpp/src/storage/schema.cpp +++ b/cpp/src/storage/schema.cpp @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #include "storage/schema.h" #include #include "common/macro.h" diff --git a/cpp/src/storage/space.cpp b/cpp/src/storage/space.cpp index 82f7ad5..7d92813 100644 --- a/cpp/src/storage/space.cpp +++ b/cpp/src/storage/space.cpp @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #include #include diff --git a/cpp/test/manifest_test.cpp b/cpp/test/manifest_test.cpp index b03b159..bd6cd8e 100644 --- a/cpp/test/manifest_test.cpp +++ b/cpp/test/manifest_test.cpp @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #include #include #include diff --git a/cpp/test/multi_files_sequential_reader_test.cpp b/cpp/test/multi_files_sequential_reader_test.cpp index f38437f..fab8f37 100644 --- a/cpp/test/multi_files_sequential_reader_test.cpp +++ b/cpp/test/multi_files_sequential_reader_test.cpp @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #include #include #include diff --git a/cpp/test/options_test.cpp b/cpp/test/options_test.cpp index 2f94a71..c4bbecd 100644 --- a/cpp/test/options_test.cpp +++ b/cpp/test/options_test.cpp @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #include #include "gtest/gtest.h" #include "storage/options.h" diff --git a/cpp/test/schema_test.cpp b/cpp/test/schema_test.cpp index ffff10f..9dd0bdb 100644 --- a/cpp/test/schema_test.cpp +++ b/cpp/test/schema_test.cpp @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #include "storage/schema.h" #include "gtest/gtest.h" #include "storage/options.h" diff --git a/cpp/test/space_test.cpp b/cpp/test/space_test.cpp index c0cd4bb..24b183c 100644 --- a/cpp/test/space_test.cpp +++ b/cpp/test/space_test.cpp @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #include "storage/space.h" #include "common/log.h" #include "filter/constant_filter.h" diff --git a/cpp/test/test_util.cpp b/cpp/test/test_util.cpp index 5dae780..8db75ef 100644 --- a/cpp/test/test_util.cpp +++ b/cpp/test/test_util.cpp @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #include "test_util.h" namespace milvus_storage { std::shared_ptr CreateArrowSchema(std::vector field_names, diff --git a/cpp/test/test_util.h b/cpp/test/test_util.h index 4b050b1..9698f1a 100644 --- a/cpp/test/test_util.h +++ b/cpp/test/test_util.h @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + #pragma once #include diff --git a/go/common/arrow_util/arrow_util.go b/go/common/arrow_util/arrow_util.go index e78a8a8..b5ca421 100644 --- a/go/common/arrow_util/arrow_util.go +++ b/go/common/arrow_util/arrow_util.go @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + package arrow_util import ( diff --git a/go/common/constant/constant.go b/go/common/constant/constant.go index 9c1f76f..7d7208f 100644 --- a/go/common/constant/constant.go +++ b/go/common/constant/constant.go @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + package constant const ( diff --git a/go/common/errors/errors.go b/go/common/errors/errors.go index bf12f08..4a4a231 100644 --- a/go/common/errors/errors.go +++ b/go/common/errors/errors.go @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + package errors import "errors" diff --git a/go/common/log/field.go b/go/common/log/field.go index 074a365..2d6b2ed 100644 --- a/go/common/log/field.go +++ b/go/common/log/field.go @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + package log import "go.uber.org/zap" diff --git a/go/common/log/log.go b/go/common/log/log.go index 1d73ecc..2f8df53 100644 --- a/go/common/log/log.go +++ b/go/common/log/log.go @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + package log import ( diff --git a/go/common/log/log_test.go b/go/common/log/log_test.go index 2e28de9..3e80b38 100644 --- a/go/common/log/log_test.go +++ b/go/common/log/log_test.go @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + package log import ( diff --git a/go/common/log/options.go b/go/common/log/options.go index 645c526..6cba13f 100644 --- a/go/common/log/options.go +++ b/go/common/log/options.go @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + package log import "go.uber.org/zap" diff --git a/go/common/utils/utils.go b/go/common/utils/utils.go index 9143189..dd7d9b1 100644 --- a/go/common/utils/utils.go +++ b/go/common/utils/utils.go @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + package utils import ( diff --git a/go/file/blob/blob.go b/go/file/blob/blob.go index e2223ec..ef02e2e 100644 --- a/go/file/blob/blob.go +++ b/go/file/blob/blob.go @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + package blob import "github.com/milvus-io/milvus-storage/go/proto/manifest_proto" diff --git a/go/file/fragment/deletefragment.go b/go/file/fragment/deletefragment.go index be3ff5f..ec73e7f 100644 --- a/go/file/fragment/deletefragment.go +++ b/go/file/fragment/deletefragment.go @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + package fragment import ( diff --git a/go/file/fragment/fragment.go b/go/file/fragment/fragment.go index ccf5256..f24fa17 100644 --- a/go/file/fragment/fragment.go +++ b/go/file/fragment/fragment.go @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + package fragment import "github.com/milvus-io/milvus-storage/go/proto/manifest_proto" diff --git a/go/filter/conjunction_filter.go b/go/filter/conjunction_filter.go index 6100b75..c42233a 100644 --- a/go/filter/conjunction_filter.go +++ b/go/filter/conjunction_filter.go @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + package filter import ( diff --git a/go/filter/constant_filter.go b/go/filter/constant_filter.go index e6c1bb0..156df53 100644 --- a/go/filter/constant_filter.go +++ b/go/filter/constant_filter.go @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + package filter import ( diff --git a/go/filter/filter.go b/go/filter/filter.go index d641c01..68b1214 100644 --- a/go/filter/filter.go +++ b/go/filter/filter.go @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + package filter import ( diff --git a/go/io/format/parquet/file_reader.go b/go/io/format/parquet/file_reader.go index 8256d35..b41df24 100644 --- a/go/io/format/parquet/file_reader.go +++ b/go/io/format/parquet/file_reader.go @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + package parquet import ( diff --git a/go/io/format/parquet/file_writer.go b/go/io/format/parquet/file_writer.go index ad27e61..82ec35f 100644 --- a/go/io/format/parquet/file_writer.go +++ b/go/io/format/parquet/file_writer.go @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + package parquet import ( diff --git a/go/io/format/reader.go b/go/io/format/reader.go index 4312415..4ebac7a 100644 --- a/go/io/format/reader.go +++ b/go/io/format/reader.go @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + package format import ( diff --git a/go/io/format/writer.go b/go/io/format/writer.go index 3a55782..678745d 100644 --- a/go/io/format/writer.go +++ b/go/io/format/writer.go @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + package format import "github.com/apache/arrow/go/v12/arrow" diff --git a/go/io/fs/factory.go b/go/io/fs/factory.go index 2c98a92..7e07db2 100644 --- a/go/io/fs/factory.go +++ b/go/io/fs/factory.go @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + package fs import ( diff --git a/go/io/fs/file/file.go b/go/io/fs/file/file.go index 904cd7b..4754222 100644 --- a/go/io/fs/file/file.go +++ b/go/io/fs/file/file.go @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + package file import "io" diff --git a/go/io/fs/file/local_file.go b/go/io/fs/file/local_file.go index f846535..ef45dc9 100644 --- a/go/io/fs/file/local_file.go +++ b/go/io/fs/file/local_file.go @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + package file import ( diff --git a/go/io/fs/file/memory_file.go b/go/io/fs/file/memory_file.go index d0df954..8ab9e67 100644 --- a/go/io/fs/file/memory_file.go +++ b/go/io/fs/file/memory_file.go @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + package file import ( diff --git a/go/io/fs/file/minio_file.go b/go/io/fs/file/minio_file.go index 8c6b3ec..21e2156 100644 --- a/go/io/fs/file/minio_file.go +++ b/go/io/fs/file/minio_file.go @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + package file import ( diff --git a/go/io/fs/fs.go b/go/io/fs/fs.go index 3560743..6a9b254 100644 --- a/go/io/fs/fs.go +++ b/go/io/fs/fs.go @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + package fs import ( diff --git a/go/io/fs/fs_util.go b/go/io/fs/fs_util.go index c698110..b7c374c 100644 --- a/go/io/fs/fs_util.go +++ b/go/io/fs/fs_util.go @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + package fs import ( diff --git a/go/io/fs/local_fs.go b/go/io/fs/local_fs.go index 3a7db1b..67d6dda 100644 --- a/go/io/fs/local_fs.go +++ b/go/io/fs/local_fs.go @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + package fs import ( diff --git a/go/io/fs/memory_fs.go b/go/io/fs/memory_fs.go index 26f668a..55f1a0c 100644 --- a/go/io/fs/memory_fs.go +++ b/go/io/fs/memory_fs.go @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + package fs import ( diff --git a/go/io/fs/minio_fs.go b/go/io/fs/minio_fs.go index 1baf97f..b6dadfa 100644 --- a/go/io/fs/minio_fs.go +++ b/go/io/fs/minio_fs.go @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + package fs import ( diff --git a/go/io/fs/minio_fs_test.go b/go/io/fs/minio_fs_test.go index c973df3..674ddce 100644 --- a/go/io/fs/minio_fs_test.go +++ b/go/io/fs/minio_fs_test.go @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + package fs_test import ( diff --git a/go/main.go b/go/main.go deleted file mode 100644 index 06ab7d0..0000000 --- a/go/main.go +++ /dev/null @@ -1 +0,0 @@ -package main diff --git a/go/reader/common_reader/delete_reader.go b/go/reader/common_reader/delete_reader.go index b67e9b4..d25f583 100644 --- a/go/reader/common_reader/delete_reader.go +++ b/go/reader/common_reader/delete_reader.go @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + package common_reader import ( diff --git a/go/reader/common_reader/filter_reader.go b/go/reader/common_reader/filter_reader.go index 85e2d00..61b7c1b 100644 --- a/go/reader/common_reader/filter_reader.go +++ b/go/reader/common_reader/filter_reader.go @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + package common_reader import ( diff --git a/go/reader/common_reader/projection_reader.go b/go/reader/common_reader/projection_reader.go index 7e9db0b..2f93c1b 100644 --- a/go/reader/common_reader/projection_reader.go +++ b/go/reader/common_reader/projection_reader.go @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + package common_reader import ( diff --git a/go/reader/record_reader/filter_query_record.go b/go/reader/record_reader/filter_query_record.go index 3230b06..b400fa0 100644 --- a/go/reader/record_reader/filter_query_record.go +++ b/go/reader/record_reader/filter_query_record.go @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + package record_reader import ( diff --git a/go/reader/record_reader/merge_record_reader.go b/go/reader/record_reader/merge_record_reader.go index 7bfb054..1ddf99f 100644 --- a/go/reader/record_reader/merge_record_reader.go +++ b/go/reader/record_reader/merge_record_reader.go @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + package record_reader import ( diff --git a/go/reader/record_reader/multi_files_sequential_reader.go b/go/reader/record_reader/multi_files_sequential_reader.go index bdb4d7b..4e00be8 100644 --- a/go/reader/record_reader/multi_files_sequential_reader.go +++ b/go/reader/record_reader/multi_files_sequential_reader.go @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + package record_reader import ( diff --git a/go/reader/record_reader/record_reader.go b/go/reader/record_reader/record_reader.go index bf6f21e..5556cd5 100644 --- a/go/reader/record_reader/record_reader.go +++ b/go/reader/record_reader/record_reader.go @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + package record_reader import ( diff --git a/go/reader/record_reader/scan_record.go b/go/reader/record_reader/scan_record.go index 8345454..8005679 100644 --- a/go/reader/record_reader/scan_record.go +++ b/go/reader/record_reader/scan_record.go @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + package record_reader import ( diff --git a/go/storage/lock/lock_manager.go b/go/storage/lock/lock_manager.go index 7afe0af..21f7282 100644 --- a/go/storage/lock/lock_manager.go +++ b/go/storage/lock/lock_manager.go @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + package lock import ( diff --git a/go/storage/manifest/commit.go b/go/storage/manifest/commit.go index b367975..9afde76 100644 --- a/go/storage/manifest/commit.go +++ b/go/storage/manifest/commit.go @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + package manifest import ( diff --git a/go/storage/manifest/commit_op.go b/go/storage/manifest/commit_op.go index 0fff128..b8fb577 100644 --- a/go/storage/manifest/commit_op.go +++ b/go/storage/manifest/commit_op.go @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + package manifest import ( diff --git a/go/storage/manifest/manifest.go b/go/storage/manifest/manifest.go index 96604b4..f2adc02 100644 --- a/go/storage/manifest/manifest.go +++ b/go/storage/manifest/manifest.go @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + package manifest import ( diff --git a/go/storage/manifest/manifest_test.go b/go/storage/manifest/manifest_test.go index 540bfc7..d636cff 100644 --- a/go/storage/manifest/manifest_test.go +++ b/go/storage/manifest/manifest_test.go @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + package manifest import ( diff --git a/go/storage/manifest/reader_writer.go b/go/storage/manifest/reader_writer.go index 7c81de0..a095a95 100644 --- a/go/storage/manifest/reader_writer.go +++ b/go/storage/manifest/reader_writer.go @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + package manifest import ( diff --git a/go/storage/options/options.go b/go/storage/options/options.go index 37a3a21..5c85d00 100644 --- a/go/storage/options/options.go +++ b/go/storage/options/options.go @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + package options import ( diff --git a/go/storage/schema/schema.go b/go/storage/schema/schema.go index 5876c8e..1e41ef8 100644 --- a/go/storage/schema/schema.go +++ b/go/storage/schema/schema.go @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + package schema import ( diff --git a/go/storage/schema/schema_option.go b/go/storage/schema/schema_option.go index 86a7583..e667bf6 100644 --- a/go/storage/schema/schema_option.go +++ b/go/storage/schema/schema_option.go @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + package schema import ( diff --git a/go/storage/schema/schema_test.go b/go/storage/schema/schema_test.go index 4fbb4b8..e4d5c0c 100644 --- a/go/storage/schema/schema_test.go +++ b/go/storage/schema/schema_test.go @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + package schema import ( diff --git a/go/storage/space.go b/go/storage/space.go index b66658a..633f03b 100644 --- a/go/storage/space.go +++ b/go/storage/space.go @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + package storage import ( diff --git a/go/storage/space_test.go b/go/storage/space_test.go index 73dff83..14e4f5e 100644 --- a/go/storage/space_test.go +++ b/go/storage/space_test.go @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + package storage_test import ( diff --git a/go/storage/transaction/transaction.go b/go/storage/transaction/transaction.go index 568d2a1..5e9a3ce 100644 --- a/go/storage/transaction/transaction.go +++ b/go/storage/transaction/transaction.go @@ -1,3 +1,17 @@ +// Copyright 2023 Zilliz +// +// 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. + package transaction import ( diff --git a/go/storage/transaction/transaction_test.go b/go/storage/transaction/transaction_test.go index 0619207..a00d5f1 100644 --- a/go/storage/transaction/transaction_test.go +++ b/go/storage/transaction/transaction_test.go @@ -1 +1,15 @@ +// Copyright 2023 Zilliz +// +// 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. + package transaction