From 0ff79e3f3135ee37d2fe39a23b788db50589896e Mon Sep 17 00:00:00 2001 From: sunby Date: Thu, 23 Nov 2023 14:54:13 +0800 Subject: [PATCH] [Go&Cpp]: Add Apache 2.0 license 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 00000000..3dfb3556 --- /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 5f664699..2fd041e6 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 d8c15d12..fa2dec88 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 e400780c..fd254b9a 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 bfcf9559..8fc0a9f9 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 ae76d71f..74b91f75 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 d823f103..21d56f15 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 e79b69cc..a24bf3a9 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 0805a596..1ef74a5d 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 ae948b11..627a6cc1 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 0f4949ff..8b269ff6 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 745e98fd..6b2d9316 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 d0a99a72..bd6c3dd5 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 e5a8b4aa..528bb368 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 73b95364..ae504f1f 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 45998edf..a2e494da 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 35fa5f73..1214c4e5 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 dd13e3f8..4d766851 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 bbd4bd4d..ddb2ac5b 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 f8e60e74..adb72593 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 626db081..de70f493 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 eb13eec2..711cec54 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 c16b87db..0f2a7460 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 2994aef9..72e44597 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 2ce63651..a0f190f3 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 18350c59..2790254d 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 fabc499a..31c633a6 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 c53a4b7a..61a88632 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 a0702494..2a51e554 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 8b5e1d8a..eac03c57 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 669ae5fb..0002bcea 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 3de9f1bc..4a9eb557 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 46ae7c19..7c3b9278 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 8e43c62e..debc2e45 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 248b5a95..60ddc377 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 8db04bb3..b81cd135 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 a39b58b8..f07fa8a1 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 85b023f3..d8867c04 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 88a925a8..7728aadd 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 139aa986..c511539c 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 bb9df4be..2cbf7a18 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 c20cb158..b98705a7 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 62e59747..04567539 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 15bb9a02..04f3d109 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 356be417..bfffbfc0 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 e208b848..0a704b64 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 01d9f560..fe026106 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 1afa403d..6db5034b 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 d54bd06a..40208466 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 f4a399ed..01942a67 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 99a32f00..2b34bf85 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 24f482c4..cd5af383 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 defdea93..008b5461 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 3c63633a..f554a9ac 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 ccc8a302..1dc62410 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 9ce8f130..2bae3034 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 c96f7286..e96e60e6 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 fe8cd977..ccbff606 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 ea99a6bf..24aa9868 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 84404746..b397ab9d 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 f1784dc1..5ab39ea9 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 0971a8ad..af109e08 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 16d0a938..9407d6ad 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 773b23e1..3bd2175f 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 43f51aec..74bb1ecb 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 82f7ad5d..7d928135 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 b03b159b..bd6cd8e1 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 f38437fc..fab8f371 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 2f94a71f..c4bbecd6 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 ffff10f0..9dd0bdb2 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 c0cd4bbc..24b183c0 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 5dae780e..8db75ef5 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 4b050b1d..9698f1aa 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 e78a8a80..b5ca4212 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 9c1f76f5..7d7208f6 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 bf12f086..4a4a2318 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 074a3659..2d6b2edf 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 1d73ecc8..2f8df536 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 2e28de91..3e80b385 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 645c5263..6cba13fb 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 9143189a..dd7d9b17 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 e2223ec5..ef02e2ef 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 be3ff5f5..ec73e7f9 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 ccf52561..f24fa17d 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 6100b757..c42233a5 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 e6c1bb04..156df538 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 d641c011..68b1214a 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 8256d355..b41df247 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 ad27e61a..82ec35f6 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 43124150..4ebac7ad 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 3a557829..678745dd 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 2c98a924..7e07db24 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 904cd7ba..47542227 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 f8465353..ef45dc9c 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 d0df9546..8ab9e673 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 8c6b3ec6..21e2156c 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 35607434..6a9b2544 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 c698110e..b7c374c0 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 3a7db1ba..67d6dda2 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 26f668a6..55f1a0c5 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 1baf97fa..b6dadfa5 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 c973df39..674ddce9 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 06ab7d0f..00000000 --- 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 b67e9b4d..d25f5836 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 85e2d00e..61b7c1bd 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 7e9db0b3..2f93c1b0 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 3230b066..b400fa0b 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 7bfb0541..1ddf99f6 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 bdb4d7b6..4e00be8e 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 bf6f21e5..5556cd58 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 83454544..80056791 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 7afe0af9..21f7282d 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 b3679756..9afde764 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 0fff128a..b8fb577a 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 96604b42..f2adc02e 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 540bfc7e..d636cff8 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 7c81de0b..a095a95a 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 37a3a21a..5c85d00d 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 5876c8e3..1e41ef89 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 86a75839..e667bf63 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 4fbb4b8c..e4d5c0cb 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 b66658af..633f03b4 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 73dff833..14e4f5e9 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 568d2a13..5e9a3ce9 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 06192075..a00d5f18 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