From a1a77119ed8b5e684dce048910585d07fa4d13a2 Mon Sep 17 00:00:00 2001 From: lipanpan03 <41904587+lipanpan03@users.noreply.github.com> Date: Fri, 6 Jan 2023 21:27:32 +0800 Subject: [PATCH] Version 3.3.3 fix issues (#144) Version 3.3.3 fix issue Co-authored-by: tugraph --- LICENSE | 2 +- ci/ut.sh | 4 - cpplint/README.md | 11 + cpplint/cpplint.py | 3 +- deps/tugraph-web | 2 +- include/lgraph/base64_encode.h | 14 +- include/lgraph/lgraph.h | 14 +- include/lgraph/lgraph_atomic.h | 14 +- include/lgraph/lgraph_date_time.h | 14 +- include/lgraph/lgraph_db.h | 14 +- include/lgraph/lgraph_edge_index_iterator.h | 14 +- include/lgraph/lgraph_edge_iterator.h | 14 +- include/lgraph/lgraph_exceptions.h | 14 +- include/lgraph/lgraph_galaxy.h | 14 +- include/lgraph/lgraph_result.h | 14 +- include/lgraph/lgraph_rpc_client.h | 14 +- include/lgraph/lgraph_traversal.h | 14 +- include/lgraph/lgraph_txn.h | 14 +- include/lgraph/lgraph_types.h | 14 +- include/lgraph/lgraph_utils.h | 14 +- include/lgraph/lgraph_vertex_index_iterator.h | 14 +- include/lgraph/lgraph_vertex_iterator.h | 14 +- include/lgraph/olap_base.h | 14 +- include/lgraph/olap_on_db.h | 14 +- include/lgraph/olap_profile.h | 14 +- plugins/cpp/algo.h | 14 +- plugins/cpp/bfs_core.cpp | 14 +- plugins/cpp/bfs_procedure.cpp | 14 +- plugins/cpp/bfs_standalone.cpp | 14 +- plugins/cpp/echo_binary.cpp | 14 +- plugins/cpp/khop_kth.cpp | 14 +- plugins/cpp/khop_within.cpp | 14 +- plugins/cpp/lcc_core.cpp | 14 +- plugins/cpp/lcc_procedure.cpp | 14 +- plugins/cpp/lcc_standalone.cpp | 14 +- plugins/cpp/lpa_core.cpp | 14 +- plugins/cpp/lpa_procedure.cpp | 14 +- plugins/cpp/lpa_standalone.cpp | 14 +- plugins/cpp/merge.h | 14 +- plugins/cpp/merge_reduced.h | 14 +- plugins/cpp/pagerank_core.cpp | 14 +- plugins/cpp/pagerank_procedure.cpp | 14 +- plugins/cpp/pagerank_standalone.cpp | 14 +- plugins/cpp/sssp_core.cpp | 14 +- plugins/cpp/sssp_procedure.cpp | 14 +- plugins/cpp/sssp_standalone.cpp | 14 +- plugins/cpp/wcc_core.cpp | 14 +- plugins/cpp/wcc_procedure.cpp | 14 +- plugins/cpp/wcc_standalone.cpp | 14 +- plugins/embed_main.cpp | 14 +- src/BuildCypherLib.cmake | 1 + src/client/cpp/restful/rest_client.cpp | 14 +- src/client/cpp/restful/rest_client.h | 14 +- src/client/cpp/restful/restful_exception.h | 14 +- src/client/cpp/rpc/field_spec_serializer.h | 14 +- src/client/cpp/rpc/lgraph_rpc.h | 14 +- src/client/cpp/rpc/lgraph_rpc_client.cpp | 14 +- src/client/cpp/rpc/rpc_exception.h | 14 +- src/client/python/rpc/client.cpp | 14 +- src/client/python/rpc/lgraph_python_client.h | 14 +- src/core/audit_logger.cpp | 14 +- src/core/audit_logger.h | 14 +- src/core/backup_log.h | 14 +- src/core/blob_manager.h | 14 +- src/core/cache_aligned_vector.h | 14 +- src/core/data_type.cpp | 14 +- src/core/data_type.h | 14 +- src/core/defs.h | 14 +- src/core/edge_index.cpp | 14 +- src/core/edge_index.h | 14 +- src/core/field_data_helper.h | 14 +- src/core/field_extractor.cpp | 14 +- src/core/field_extractor.h | 14 +- src/core/full_text_index.cpp | 14 +- src/core/full_text_index.h | 14 +- src/core/global_config.cpp | 14 +- src/core/global_config.h | 14 +- src/core/graph.cpp | 14 +- src/core/graph.h | 14 +- src/core/graph_data_pack.h | 14 +- src/core/graph_edge_iterator.cpp | 14 +- src/core/graph_edge_iterator.h | 14 +- src/core/graph_vertex_iterator.cpp | 14 +- src/core/graph_vertex_iterator.h | 14 +- src/core/index_manager.cpp | 14 +- src/core/index_manager.h | 14 +- src/core/iterator_base.cpp | 14 +- src/core/iterator_base.h | 14 +- src/core/killable_rw_lock.h | 14 +- src/core/kv_store.h | 14 +- src/core/kv_store_exception.h | 14 +- src/core/kv_store_iterator.cpp | 14 +- src/core/kv_store_iterator.h | 14 +- src/core/kv_store_mdb.cpp | 14 +- src/core/kv_store_mdb.h | 14 +- src/core/kv_store_table.cpp | 14 +- src/core/kv_store_table.h | 14 +- src/core/kv_store_transaction.cpp | 14 +- src/core/kv_store_transaction.h | 14 +- src/core/kv_table_comparators.cpp | 14 +- src/core/kv_table_comparators.h | 14 +- src/core/lgraph_date_time.cpp | 14 +- src/core/lightning_graph.cpp | 14 +- src/core/lightning_graph.h | 14 +- src/core/lmdb_profiler.h | 14 +- src/core/managed_object.h | 14 +- src/core/mem_profiler.h | 14 +- src/core/mock_kv.h | 14 +- src/core/schema.cpp | 14 +- src/core/schema.h | 14 +- src/core/schema_common.h | 14 +- src/core/schema_manager.h | 14 +- src/core/sync_file.cpp | 14 +- src/core/sync_file.h | 14 +- src/core/task_tracker.h | 14 +- src/core/thread_id.cpp | 14 +- src/core/thread_id.h | 14 +- src/core/transaction.cpp | 14 +- src/core/transaction.h | 14 +- src/core/type_convert.h | 14 +- src/core/value.h | 14 +- src/core/version.h.in | 14 +- src/core/vertex_index.cpp | 14 +- src/core/vertex_index.h | 14 +- src/core/wal.cpp | 14 +- src/core/wal.h | 14 +- src/cypher/arithmetic/agg_ctx.h | 14 +- src/cypher/arithmetic/agg_funcs.cpp | 14 +- src/cypher/arithmetic/agg_funcs.h | 14 +- .../arithmetic/arithmetic_expression.cpp | 14 +- src/cypher/arithmetic/arithmetic_expression.h | 14 +- src/cypher/cypher_exception.h | 14 +- src/cypher/cypher_types.h | 14 +- src/cypher/execution_plan/execution_plan.cpp | 14 +- src/cypher/execution_plan/execution_plan.h | 14 +- src/cypher/execution_plan/lru_cache.h | 14 +- src/cypher/execution_plan/ops/op.h | 21 +- .../execution_plan/ops/op_aggregate.cpp | 14 +- src/cypher/execution_plan/ops/op_aggregate.h | 31 +- .../execution_plan/ops/op_all_node_scan.cpp | 14 +- .../execution_plan/ops/op_all_node_scan.h | 14 +- .../ops/op_all_node_scan_dynamic.cpp | 14 +- .../ops/op_all_node_scan_dynamic.h | 14 +- src/cypher/execution_plan/ops/op_apply.cpp | 14 +- src/cypher/execution_plan/ops/op_apply.h | 14 +- src/cypher/execution_plan/ops/op_argument.cpp | 14 +- src/cypher/execution_plan/ops/op_argument.h | 14 +- .../ops/op_cartesian_product.cpp | 14 +- .../execution_plan/ops/op_cartesian_product.h | 14 +- src/cypher/execution_plan/ops/op_create.cpp | 14 +- src/cypher/execution_plan/ops/op_create.h | 14 +- src/cypher/execution_plan/ops/op_delete.cpp | 14 +- src/cypher/execution_plan/ops/op_delete.h | 14 +- src/cypher/execution_plan/ops/op_distinct.cpp | 14 +- src/cypher/execution_plan/ops/op_distinct.h | 14 +- .../execution_plan/ops/op_expand_all.cpp | 14 +- src/cypher/execution_plan/ops/op_expand_all.h | 14 +- src/cypher/execution_plan/ops/op_filter.cpp | 14 +- src/cypher/execution_plan/ops/op_filter.h | 14 +- .../ops/op_immediate_argument.cpp | 14 +- .../ops/op_immediate_argument.h | 14 +- .../execution_plan/ops/op_inquery_call.cpp | 14 +- .../execution_plan/ops/op_inquery_call.h | 14 +- src/cypher/execution_plan/ops/op_limit.cpp | 14 +- src/cypher/execution_plan/ops/op_limit.h | 14 +- src/cypher/execution_plan/ops/op_merge.cpp | 14 +- src/cypher/execution_plan/ops/op_merge.h | 14 +- .../ops/op_node_by_label_scan.cpp | 14 +- .../ops/op_node_by_label_scan.h | 16 +- .../ops/op_node_by_label_scan_dynamic.cpp | 14 +- .../ops/op_node_by_label_scan_dynamic.h | 14 +- .../execution_plan/ops/op_node_index_seek.cpp | 14 +- .../execution_plan/ops/op_node_index_seek.h | 14 +- .../ops/op_node_index_seek_dynamic.cpp | 14 +- .../ops/op_node_index_seek_dynamic.h | 14 +- src/cypher/execution_plan/ops/op_optional.cpp | 14 +- src/cypher/execution_plan/ops/op_optional.h | 14 +- .../execution_plan/ops/op_produce_results.cpp | 14 +- .../execution_plan/ops/op_produce_results.h | 14 +- src/cypher/execution_plan/ops/op_project.cpp | 14 +- src/cypher/execution_plan/ops/op_project.h | 14 +- .../ops/op_relationship_count.cpp | 14 +- .../ops/op_relationship_count.h | 14 +- src/cypher/execution_plan/ops/op_remove.cpp | 14 +- src/cypher/execution_plan/ops/op_remove.h | 14 +- src/cypher/execution_plan/ops/op_set.cpp | 14 +- src/cypher/execution_plan/ops/op_set.h | 14 +- src/cypher/execution_plan/ops/op_skip.cpp | 14 +- src/cypher/execution_plan/ops/op_skip.h | 14 +- src/cypher/execution_plan/ops/op_sort.cpp | 14 +- src/cypher/execution_plan/ops/op_sort.h | 14 +- .../execution_plan/ops/op_standalone_call.cpp | 14 +- .../execution_plan/ops/op_standalone_call.h | 14 +- src/cypher/execution_plan/ops/op_topn.cpp | 14 +- src/cypher/execution_plan/ops/op_topn.h | 14 +- .../execution_plan/ops/op_traversal.cpp | 7 + src/cypher/execution_plan/ops/op_traversal.h | 276 ++++++++++++++++++ src/cypher/execution_plan/ops/op_union.cpp | 14 +- src/cypher/execution_plan/ops/op_union.h | 14 +- src/cypher/execution_plan/ops/op_unwind.cpp | 14 +- src/cypher/execution_plan/ops/op_unwind.h | 14 +- .../execution_plan/ops/op_var_len_expand.cpp | 14 +- .../execution_plan/ops/op_var_len_expand.h | 14 +- .../ops/op_var_len_expand_into.cpp | 14 +- .../ops/op_var_len_expand_into.h | 14 +- src/cypher/execution_plan/ops/ops.h | 15 +- .../edge_filter_pushdown_expand.h | 14 +- .../optimization/lazy_project_topn.h | 14 +- .../locate_node_by_indexed_prop.h | 16 +- .../optimization/locate_node_by_vid.h | 10 +- .../execution_plan/optimization/opt_pass.h | 14 +- .../optimization/parallel_traversal.h | 133 +++++++++ .../optimization/pass_manager.h | 16 +- .../optimization/reduce_count.h | 14 +- .../optimization/var_len_expand_with_limit.h | 14 +- src/cypher/execution_plan/runtime_context.h | 14 +- src/cypher/execution_plan/scheduler.cpp | 14 +- src/cypher/execution_plan/scheduler.h | 14 +- .../execution_plan/validation/check_graph.h | 1 + src/cypher/execution_plan/visitor/visitor.h | 16 +- src/cypher/filter/filter.cpp | 14 +- src/cypher/filter/filter.h | 27 +- src/cypher/filter/iterator.cpp | 14 +- src/cypher/filter/iterator.h | 14 +- src/cypher/graph/common.h | 14 +- src/cypher/graph/graph.cpp | 14 +- src/cypher/graph/graph.h | 14 +- src/cypher/graph/node.cpp | 14 +- src/cypher/graph/node.h | 14 +- src/cypher/graph/relationship.cpp | 14 +- src/cypher/graph/relationship.h | 14 +- src/cypher/grouping/group.cpp | 14 +- src/cypher/grouping/group.h | 14 +- src/cypher/monitor/memory_monitor_allocator.h | 14 +- src/cypher/monitor/monitor_manager.cpp | 14 +- src/cypher/monitor/monitor_manager.h | 14 +- src/cypher/parser/clause.h | 14 +- src/cypher/parser/cypher_base_visitor.cpp | 14 +- src/cypher/parser/cypher_base_visitor.h | 14 +- src/cypher/parser/cypher_error_listener.cpp | 14 +- src/cypher/parser/cypher_error_listener.h | 14 +- src/cypher/parser/data_typedef.h | 14 +- src/cypher/parser/expression.h | 14 +- src/cypher/parser/symbol_table.cpp | 14 +- src/cypher/parser/symbol_table.h | 14 +- src/cypher/procedure/procedure.cpp | 14 +- src/cypher/procedure/procedure.h | 14 +- src/cypher/procedure/utils.h | 14 +- src/cypher/resultset/record.cpp | 14 +- src/cypher/resultset/record.h | 14 +- src/cypher/resultset/result_info.h | 14 +- src/cypher/resultset/resultset_statistics.h | 14 +- src/db/acl.cpp | 14 +- src/db/acl.h | 14 +- src/db/db.cpp | 14 +- src/db/db.h | 14 +- src/db/galaxy.cpp | 14 +- src/db/galaxy.h | 14 +- src/db/graph_manager.cpp | 14 +- src/db/graph_manager.h | 14 +- src/db/token_manager.cpp | 14 +- src/db/token_manager.h | 14 +- src/import/column_parser.h | 14 +- src/import/dense_string.h | 14 +- src/import/file_cutter.h | 14 +- src/import/import_client.cpp | 14 +- src/import/import_client.h | 14 +- src/import/import_config_parser.h | 14 +- src/import/import_data_file.h | 14 +- src/import/import_exception.h | 14 +- src/import/import_online.cpp | 14 +- src/import/import_online.h | 14 +- src/import/import_planner.h | 14 +- src/import/import_v2.cpp | 14 +- src/import/import_v2.h | 14 +- src/import/parse_delimiter.h | 14 +- src/import/vid_table.h | 14 +- src/lgraph_api/lgraph_db.cpp | 14 +- src/lgraph_api/lgraph_edge_index_iterator.cpp | 14 +- src/lgraph_api/lgraph_edge_iterator.cpp | 14 +- src/lgraph_api/lgraph_galaxy.cpp | 14 +- src/lgraph_api/lgraph_result.cpp | 14 +- src/lgraph_api/lgraph_traversal.cpp | 14 +- src/lgraph_api/lgraph_txn.cpp | 14 +- src/lgraph_api/lgraph_utils.cpp | 14 +- .../lgraph_vertex_index_iterator.cpp | 14 +- src/lgraph_api/lgraph_vertex_iterator.cpp | 14 +- src/lgraph_api/olap_base.cpp | 14 +- src/lgraph_api/olap_profile.cpp | 14 +- src/lgraph_api/result_element.cpp | 14 +- src/lgraph_api/result_element.h | 14 +- src/monitor/prometheus_monitor.cpp | 14 +- src/monitor/prometheus_monitor.h | 14 +- src/olap/olap_config.h | 14 +- src/olap/olap_io.h | 14 +- src/olap/olap_on_disk.h | 14 +- src/plugin/cpp_plugin.cpp | 14 +- src/plugin/cpp_plugin.h | 14 +- src/plugin/load_library.h | 14 +- src/plugin/plugin_context.cpp | 14 +- src/plugin/plugin_context.h | 14 +- src/plugin/plugin_desc.h | 14 +- src/plugin/plugin_manager.cpp | 14 +- src/plugin/plugin_manager.h | 14 +- src/plugin/plugin_manager_impl.h | 14 +- src/plugin/python_plugin.cpp | 14 +- src/plugin/python_plugin.h | 14 +- src/python/FMA_shell/pkg/install.sh | 2 +- src/python/python_api.cpp | 14 +- src/restful/server/json_convert.h | 14 +- src/restful/server/rest_server.cpp | 14 +- src/restful/server/rest_server.h | 14 +- src/restful/server/stdafx.cpp | 14 +- src/restful/server/stdafx.h | 14 +- src/restful/server/test_server.cpp | 14 +- src/server/json_convert.h | 14 +- src/server/lgraph_server.cpp | 17 +- src/server/lgraph_server.h | 18 +- src/server/proto_convert.h | 14 +- src/server/server_main.cpp | 14 +- src/server/service.h | 14 +- src/server/state_machine.cpp | 14 +- src/server/state_machine.h | 14 +- test/cypher_plan_validate.json | 22 ++ test/graph_factory.h | 14 +- test/graph_gen.h | 14 +- .../cpp/CppClientTest/client_test.cpp | 14 +- .../rpc_client/java/JavaClientTest/pom.xml | 7 + .../java/TuGraphOGMTest/local_build.sh | 12 +- .../rpc_client/java/TuGraphOGMTest/pom.xml | 25 +- .../src/main/java/entity/Actor.java | 6 +- .../src/main/java/entity/Movie.java | 8 +- .../src/main/java/test/Client.java | 6 +- .../src/main/java/test/TestBase.java | 14 +- test/integration/test_issues.py | 15 +- test/integration/test_tugraph_ogm.py | 2 +- test/main.cpp | 14 +- test/random_port.h | 14 +- test/test_audit_logger.cpp | 14 +- test/test_backup_restore.cpp | 14 +- test/test_batch_edge_index.cpp | 14 +- test/test_batch_vertex_index.cpp | 14 +- test/test_blob_manager.cpp | 14 +- test/test_cache_aligned_vector.cpp | 14 +- test/test_concurrent_gettime.cpp | 14 +- test/test_core_exception.cpp | 14 +- test/test_cpp_plugin.cpp | 14 +- test/test_cppresetsdk_json.cpp | 14 +- test/test_cypher.cpp | 29 +- test/test_cypher_plan.cpp | 14 +- test/test_data_type.cpp | 14 +- test/test_dense_string.cpp | 14 +- test/test_edge_constraint.cpp | 14 +- test/test_edge_index.cpp | 14 +- test/test_embed.cpp | 14 +- test/test_field_data_helper.cpp | 14 +- test/test_field_extractor.cpp | 14 +- test/test_fulltext.cpp | 14 +- test/test_galaxy.cpp | 14 +- test/test_global_config.cpp | 14 +- test/test_graph.cpp | 14 +- test/test_graph_data_pack.cpp | 14 +- test/test_graph_edge_iterator.cpp | 14 +- test/test_graph_simple.cpp | 14 +- test/test_graph_traversal.cpp | 14 +- test/test_graph_vertex_iterator.cpp | 14 +- test/test_import_column_parser.cpp | 14 +- test/test_import_config_parser.cpp | 14 +- test/test_import_data_file.cpp | 14 +- test/test_import_online.cpp | 14 +- test/test_import_parse_delimiter.cpp | 14 +- test/test_import_planner.cpp | 14 +- test/test_import_v2.cpp | 14 +- test/test_json_convert.cpp | 14 +- test/test_kv_store.cpp | 14 +- test/test_lgraph.cpp | 14 +- test/test_lgraph_api.cpp | 14 +- test/test_lgraph_backup.cpp | 14 +- test/test_lgraph_date_time.cpp | 14 +- test/test_lgraph_export.cpp | 14 +- test/test_lgraph_monkey.cpp | 14 +- test/test_lgraph_server.cpp | 14 +- test/test_lgraph_utils.cpp | 14 +- test/test_managed_object.cpp | 14 +- test/test_mdb.cpp | 14 +- test/test_mdb_wal_perf.cpp | 14 +- test/test_memorylimit.cpp | 14 +- test/test_merge.cpp | 14 +- test/test_move_constructors.cpp | 14 +- test/test_mthread.cpp | 14 +- test/test_olap_vertex_traversal.cpp | 14 +- test/test_parallelvector.cpp | 14 +- test/test_perf_db.cpp | 14 +- test/test_perf_graph.cpp | 14 +- test/test_perf_kv.cpp | 14 +- test/test_perf_kv_fatkey.cpp | 14 +- test/test_perf_multi_writer.cpp | 14 +- test/test_perf_unaligned.cpp | 14 +- test/test_plugins/add_label_v.cpp | 14 +- test/test_plugins/scan_graph.cpp | 14 +- test/test_plugins/sortstr.cpp | 14 +- test/test_plugins/standard_result.cpp | 14 +- test/test_proto_convert.cpp | 14 +- test/test_python_plugin_manager.cpp | 14 +- test/test_python_plugin_manager_impl.cpp | 14 +- test/test_random_delete.cpp | 14 +- test/test_rest_client.cpp | 14 +- test/test_restful_abnormal_branch.cpp | 14 +- test/test_restful_base_operation.cpp | 14 +- test/test_restful_import_online.cpp | 14 +- test/test_rpc.cpp | 14 +- test/test_schema.cpp | 14 +- test/test_schema_change.cpp | 14 +- test/test_schema_common.cpp | 14 +- test/test_schema_manager.cpp | 14 +- test/test_service.cpp | 14 +- test/test_snapshot.cpp | 14 +- test/test_static_vector.cpp | 14 +- test/test_sync_file_implementations.cpp | 14 +- test/test_task_tracker.cpp | 14 +- test/test_token_manager.cpp | 14 +- test/test_tools.h | 14 +- test/test_transaction.cpp | 14 +- test/test_txn_fork.cpp | 14 +- test/test_type_convert.cpp | 14 +- test/test_value.cpp | 14 +- test/test_vertex_index.cpp | 14 +- test/test_vid_table.cpp | 14 +- test/ut_utils.cpp | 14 +- test/ut_utils.h | 14 +- toolkits/lgraph_backup.cpp | 14 +- toolkits/lgraph_binlog.cpp | 14 +- toolkits/lgraph_export.cpp | 14 +- toolkits/lgraph_import.cpp | 14 +- toolkits/lgraph_monitor.cpp | 14 +- toolkits/lgraph_peek.cpp | 14 +- toolkits/lgraph_validate.cpp | 14 +- toolkits/lgraph_warmup.cpp | 14 +- 438 files changed, 5980 insertions(+), 481 deletions(-) create mode 100644 src/cypher/execution_plan/ops/op_traversal.cpp create mode 100644 src/cypher/execution_plan/ops/op_traversal.h create mode 100644 src/cypher/execution_plan/optimization/parallel_traversal.h diff --git a/LICENSE b/LICENSE index 50080edf8d..067f13f27d 100644 --- a/LICENSE +++ b/LICENSE @@ -187,7 +187,7 @@ same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright 2022 AntGroup + Copyright 2022 AntGroup CO., Ltd. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/ci/ut.sh b/ci/ut.sh index cb50947c3b..6b2f19c46c 100644 --- a/ci/ut.sh +++ b/ci/ut.sh @@ -52,8 +52,4 @@ mv $MY_WORKSPACE/* $MY_WORKSPACE/.[^.]* $WORKSPACE fi cd $WORKSPACE -cd $WORKSPACE/testresult/ -ls -al -cd $WORKSPACE/testresult/gtest -ls -al python3 ./ci/lcov_cobertura.py $WORKSPACE/testresult/coverage.info --output $WORKSPACE/testresult/coverage.xml --demangle diff --git a/cpplint/README.md b/cpplint/README.md index c33957a141..9ec6033f14 100644 --- a/cpplint/README.md +++ b/cpplint/README.md @@ -28,3 +28,14 @@ clang-format -i src/algo/algo.cpp clang-format tool needs to be installed on your own computer by yourself. clang-format will look for the default configuration file `.clang-format` from the root path, which has been placed in the code repository and describes Google's cpp style. For more Google's cpp style details, see [English Version](https://google.github.io/styleguide/cppguide.html#Forward_Declarations) or [中文版](https://google-styleguide.readthedocs.io/zh_CN/latest/google-cpp-styleguide/contents.html) + +## Attention + +If you get errors that cpplint DO NOT recognize the Copyright, just take care of the BOM character with the next command(ueff). +``` bash +find src test include toolkits plugins -name "*.cpp" -o -name "*.h" | grep -v "/lmdb/" | xargs sed -i '' '1s/^\xef\xbb\xbf//' +``` +In cpplint/cpplint.py:1850, the code are also modified to ignore BOM marker +``` python +if lines[lineix].replace('\ufeff', '').strip().startswith('/*'): +``` \ No newline at end of file diff --git a/cpplint/cpplint.py b/cpplint/cpplint.py index ab7610d429..18df51a5cc 100755 --- a/cpplint/cpplint.py +++ b/cpplint/cpplint.py @@ -1846,7 +1846,8 @@ def CleanseRawStrings(raw_lines): def FindNextMultiLineCommentStart(lines, lineix): """Find the beginning marker for a multiline comment.""" while lineix < len(lines): - if lines[lineix].strip().startswith('/*'): + # Modified to ignore the BOM marker before Copyright + if lines[lineix].replace('\ufeff', '').strip().startswith('/*'): # Only return this marker if the comment goes beyond this line if lines[lineix].strip().find('*/', 2) < 0: return lineix diff --git a/deps/tugraph-web b/deps/tugraph-web index 3cdfa8a16a..d02e09a783 160000 --- a/deps/tugraph-web +++ b/deps/tugraph-web @@ -1 +1 @@ -Subproject commit 3cdfa8a16a65db73c010851be3ed71ac0b4318c6 +Subproject commit d02e09a78371551514a25ad2621e38e57ed04554 diff --git a/include/lgraph/base64_encode.h b/include/lgraph/base64_encode.h index 757e96928c..7257c49235 100644 --- a/include/lgraph/base64_encode.h +++ b/include/lgraph/base64_encode.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved.*/ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ /** * @brief Base64 encode and decode. Simple implementation, to be used with BLOB fields. diff --git a/include/lgraph/lgraph.h b/include/lgraph/lgraph.h index b7c7eefcf3..8d32e9d6eb 100644 --- a/include/lgraph/lgraph.h +++ b/include/lgraph/lgraph.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once #include "lgraph/lgraph_db.h" diff --git a/include/lgraph/lgraph_atomic.h b/include/lgraph/lgraph_atomic.h index 201be7f72a..6c1a526278 100644 --- a/include/lgraph/lgraph_atomic.h +++ b/include/lgraph/lgraph_atomic.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ /** * @brief Implementation of atomic operations, used in lgraph_traversal. diff --git a/include/lgraph/lgraph_date_time.h b/include/lgraph/lgraph_date_time.h index c2997372b8..1dba53eb7d 100644 --- a/include/lgraph/lgraph_date_time.h +++ b/include/lgraph/lgraph_date_time.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ /** * @brief Implemnets the DateTime, Date and TimeZone classes. diff --git a/include/lgraph/lgraph_db.h b/include/lgraph/lgraph_db.h index c708e87440..b4d647a649 100644 --- a/include/lgraph/lgraph_db.h +++ b/include/lgraph/lgraph_db.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/include/lgraph/lgraph_edge_index_iterator.h b/include/lgraph/lgraph_edge_index_iterator.h index eb38b8db30..c81e26d0e7 100644 --- a/include/lgraph/lgraph_edge_index_iterator.h +++ b/include/lgraph/lgraph_edge_index_iterator.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once #include diff --git a/include/lgraph/lgraph_edge_iterator.h b/include/lgraph/lgraph_edge_iterator.h index a8d5797671..0eb144db97 100644 --- a/include/lgraph/lgraph_edge_iterator.h +++ b/include/lgraph/lgraph_edge_iterator.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/include/lgraph/lgraph_exceptions.h b/include/lgraph/lgraph_exceptions.h index 445fe4074e..02cc3127c0 100644 --- a/include/lgraph/lgraph_exceptions.h +++ b/include/lgraph/lgraph_exceptions.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/include/lgraph/lgraph_galaxy.h b/include/lgraph/lgraph_galaxy.h index 7aac4541d1..a3c17e165e 100644 --- a/include/lgraph/lgraph_galaxy.h +++ b/include/lgraph/lgraph_galaxy.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/include/lgraph/lgraph_result.h b/include/lgraph/lgraph_result.h index 5e5e24d5b0..99ffb171b3 100644 --- a/include/lgraph/lgraph_result.h +++ b/include/lgraph/lgraph_result.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ /** * Result interface for plugins and built-in procedures. The result of a plugin should be provided diff --git a/include/lgraph/lgraph_rpc_client.h b/include/lgraph/lgraph_rpc_client.h index e50f62c289..42719e858d 100644 --- a/include/lgraph/lgraph_rpc_client.h +++ b/include/lgraph/lgraph_rpc_client.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once #include diff --git a/include/lgraph/lgraph_traversal.h b/include/lgraph/lgraph_traversal.h index 66ce24d9ff..6fd139f861 100644 --- a/include/lgraph/lgraph_traversal.h +++ b/include/lgraph/lgraph_traversal.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/include/lgraph/lgraph_txn.h b/include/lgraph/lgraph_txn.h index ca93818595..ff46d94e73 100644 --- a/include/lgraph/lgraph_txn.h +++ b/include/lgraph/lgraph_txn.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once #include diff --git a/include/lgraph/lgraph_types.h b/include/lgraph/lgraph_types.h index 9ad0c03163..e203f4a528 100644 --- a/include/lgraph/lgraph_types.h +++ b/include/lgraph/lgraph_types.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/include/lgraph/lgraph_utils.h b/include/lgraph/lgraph_utils.h index 6ce3809a96..7fe99a33e4 100644 --- a/include/lgraph/lgraph_utils.h +++ b/include/lgraph/lgraph_utils.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/include/lgraph/lgraph_vertex_index_iterator.h b/include/lgraph/lgraph_vertex_index_iterator.h index 4d11abdf7d..4cbcf3a64b 100644 --- a/include/lgraph/lgraph_vertex_index_iterator.h +++ b/include/lgraph/lgraph_vertex_index_iterator.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once #include diff --git a/include/lgraph/lgraph_vertex_iterator.h b/include/lgraph/lgraph_vertex_iterator.h index f5e13510db..3e475c322d 100644 --- a/include/lgraph/lgraph_vertex_iterator.h +++ b/include/lgraph/lgraph_vertex_iterator.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once #include diff --git a/include/lgraph/olap_base.h b/include/lgraph/olap_base.h index 5e7f8a5c92..7db7215b63 100644 --- a/include/lgraph/olap_base.h +++ b/include/lgraph/olap_base.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ /** * This is an implementation of the TuGraph graph analytics engine. The graph analytics engine diff --git a/include/lgraph/olap_on_db.h b/include/lgraph/olap_on_db.h index f948f0d4bc..d7c3259ddf 100644 --- a/include/lgraph/olap_on_db.h +++ b/include/lgraph/olap_on_db.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ /** * TuGraph OLAP interface. To implement a plugin that perform graph analytics on TuGraph, user diff --git a/include/lgraph/olap_profile.h b/include/lgraph/olap_profile.h index 03b011a851..a7a4c8dd0d 100644 --- a/include/lgraph/olap_profile.h +++ b/include/lgraph/olap_profile.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/plugins/cpp/algo.h b/plugins/cpp/algo.h index 75eea032c6..8a90fee916 100644 --- a/plugins/cpp/algo.h +++ b/plugins/cpp/algo.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/plugins/cpp/bfs_core.cpp b/plugins/cpp/bfs_core.cpp index a0b80ac2e8..35ee7491f4 100644 --- a/plugins/cpp/bfs_core.cpp +++ b/plugins/cpp/bfs_core.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "lgraph/olap_base.h" #include "./algo.h" diff --git a/plugins/cpp/bfs_procedure.cpp b/plugins/cpp/bfs_procedure.cpp index f3e09f756c..71f00974cd 100644 --- a/plugins/cpp/bfs_procedure.cpp +++ b/plugins/cpp/bfs_procedure.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "lgraph/olap_on_db.h" #include "tools/json.hpp" diff --git a/plugins/cpp/bfs_standalone.cpp b/plugins/cpp/bfs_standalone.cpp index f37766a8f7..b5d0931785 100644 --- a/plugins/cpp/bfs_standalone.cpp +++ b/plugins/cpp/bfs_standalone.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "olap/olap_on_disk.h" #include "tools/json.hpp" diff --git a/plugins/cpp/echo_binary.cpp b/plugins/cpp/echo_binary.cpp index 241d9edebb..95558318cf 100644 --- a/plugins/cpp/echo_binary.cpp +++ b/plugins/cpp/echo_binary.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include #include "lgraph/lgraph.h" diff --git a/plugins/cpp/khop_kth.cpp b/plugins/cpp/khop_kth.cpp index 08121ed888..5565e43754 100644 --- a/plugins/cpp/khop_kth.cpp +++ b/plugins/cpp/khop_kth.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ /* * Returns the number of vertices in the k-th layer diff --git a/plugins/cpp/khop_within.cpp b/plugins/cpp/khop_within.cpp index 07dd881c02..4b0196eb80 100644 --- a/plugins/cpp/khop_within.cpp +++ b/plugins/cpp/khop_within.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ /* * According to the given vertex, diff --git a/plugins/cpp/lcc_core.cpp b/plugins/cpp/lcc_core.cpp index 1ab5831430..fb5f0bde1d 100644 --- a/plugins/cpp/lcc_core.cpp +++ b/plugins/cpp/lcc_core.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "lgraph/olap_base.h" #include "./algo.h" diff --git a/plugins/cpp/lcc_procedure.cpp b/plugins/cpp/lcc_procedure.cpp index d8d9225bb8..26c813e7e2 100644 --- a/plugins/cpp/lcc_procedure.cpp +++ b/plugins/cpp/lcc_procedure.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "lgraph/olap_on_db.h" #include "tools/json.hpp" diff --git a/plugins/cpp/lcc_standalone.cpp b/plugins/cpp/lcc_standalone.cpp index 15c41b0acd..5fd66971e8 100644 --- a/plugins/cpp/lcc_standalone.cpp +++ b/plugins/cpp/lcc_standalone.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "olap/olap_on_disk.h" #include "tools/json.hpp" diff --git a/plugins/cpp/lpa_core.cpp b/plugins/cpp/lpa_core.cpp index 52dc239ce9..c187dda216 100644 --- a/plugins/cpp/lpa_core.cpp +++ b/plugins/cpp/lpa_core.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include #include "lgraph/olap_base.h" diff --git a/plugins/cpp/lpa_procedure.cpp b/plugins/cpp/lpa_procedure.cpp index d31434144a..d31494f7b7 100644 --- a/plugins/cpp/lpa_procedure.cpp +++ b/plugins/cpp/lpa_procedure.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "lgraph/olap_on_db.h" #include "tools/json.hpp" diff --git a/plugins/cpp/lpa_standalone.cpp b/plugins/cpp/lpa_standalone.cpp index 2ffe6dc1d1..8ad4d12bdf 100644 --- a/plugins/cpp/lpa_standalone.cpp +++ b/plugins/cpp/lpa_standalone.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "olap/olap_on_disk.h" #include "tools/json.hpp" diff --git a/plugins/cpp/merge.h b/plugins/cpp/merge.h index 84b7a18eb7..bd004297d5 100644 --- a/plugins/cpp/merge.h +++ b/plugins/cpp/merge.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/plugins/cpp/merge_reduced.h b/plugins/cpp/merge_reduced.h index 42c7ff1202..4674e9ee06 100644 --- a/plugins/cpp/merge_reduced.h +++ b/plugins/cpp/merge_reduced.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/plugins/cpp/pagerank_core.cpp b/plugins/cpp/pagerank_core.cpp index fe2374f2d7..9f1a5f956f 100644 --- a/plugins/cpp/pagerank_core.cpp +++ b/plugins/cpp/pagerank_core.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "lgraph/olap_base.h" #include "./algo.h" diff --git a/plugins/cpp/pagerank_procedure.cpp b/plugins/cpp/pagerank_procedure.cpp index 6d44a7e0e7..d55588f652 100644 --- a/plugins/cpp/pagerank_procedure.cpp +++ b/plugins/cpp/pagerank_procedure.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "lgraph/olap_on_db.h" #include "tools/json.hpp" diff --git a/plugins/cpp/pagerank_standalone.cpp b/plugins/cpp/pagerank_standalone.cpp index db3f1a2be7..7349ac0517 100644 --- a/plugins/cpp/pagerank_standalone.cpp +++ b/plugins/cpp/pagerank_standalone.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "olap/olap_on_disk.h" #include "tools/json.hpp" diff --git a/plugins/cpp/sssp_core.cpp b/plugins/cpp/sssp_core.cpp index 8ad36a0040..e32e58c791 100644 --- a/plugins/cpp/sssp_core.cpp +++ b/plugins/cpp/sssp_core.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "lgraph/olap_base.h" #include "./algo.h" diff --git a/plugins/cpp/sssp_procedure.cpp b/plugins/cpp/sssp_procedure.cpp index a54c3a2d69..60cdbc56e2 100644 --- a/plugins/cpp/sssp_procedure.cpp +++ b/plugins/cpp/sssp_procedure.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "lgraph/olap_on_db.h" #include "tools/json.hpp" diff --git a/plugins/cpp/sssp_standalone.cpp b/plugins/cpp/sssp_standalone.cpp index 161984f50a..8caf3660cf 100644 --- a/plugins/cpp/sssp_standalone.cpp +++ b/plugins/cpp/sssp_standalone.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "olap/olap_on_disk.h" #include "tools/json.hpp" diff --git a/plugins/cpp/wcc_core.cpp b/plugins/cpp/wcc_core.cpp index b98266cdba..7cf277b95b 100644 --- a/plugins/cpp/wcc_core.cpp +++ b/plugins/cpp/wcc_core.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "lgraph/olap_base.h" #include "./algo.h" diff --git a/plugins/cpp/wcc_procedure.cpp b/plugins/cpp/wcc_procedure.cpp index 30231ecfc8..f9872c1b51 100644 --- a/plugins/cpp/wcc_procedure.cpp +++ b/plugins/cpp/wcc_procedure.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "lgraph/olap_on_db.h" #include "tools/json.hpp" diff --git a/plugins/cpp/wcc_standalone.cpp b/plugins/cpp/wcc_standalone.cpp index d07c56d7f3..e8ada0f891 100644 --- a/plugins/cpp/wcc_standalone.cpp +++ b/plugins/cpp/wcc_standalone.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "olap/olap_on_disk.h" diff --git a/plugins/embed_main.cpp b/plugins/embed_main.cpp index 4dd1d2f7eb..d4eb8e9972 100644 --- a/plugins/embed_main.cpp +++ b/plugins/embed_main.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ /** * This file shows how to write an embedding application that uses TuGraph as a library. * Embedding mode can come in handy when you want to debug your plugin. diff --git a/src/BuildCypherLib.cmake b/src/BuildCypherLib.cmake index 0e3939617b..c80e97133d 100644 --- a/src/BuildCypherLib.cmake +++ b/src/BuildCypherLib.cmake @@ -37,6 +37,7 @@ set(LGRAPH_CYPHER_SRC # find cypher/ -name "*.cpp" | sort cypher/execution_plan/ops/op_var_len_expand_into.cpp cypher/execution_plan/ops/op_merge.cpp cypher/execution_plan/ops/op_node_by_id_seek.cpp + cypher/execution_plan/ops/op_traversal.cpp cypher/execution_plan/scheduler.cpp cypher/filter/filter.cpp cypher/filter/iterator.cpp diff --git a/src/client/cpp/restful/rest_client.cpp b/src/client/cpp/restful/rest_client.cpp index e984432140..3b4ecd16fb 100644 --- a/src/client/cpp/restful/rest_client.cpp +++ b/src/client/cpp/restful/rest_client.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "client/cpp/restful/rest_client.h" #include "client/cpp/restful/restful_exception.h" diff --git a/src/client/cpp/restful/rest_client.h b/src/client/cpp/restful/rest_client.h index 5b34b21c80..244675a5cb 100644 --- a/src/client/cpp/restful/rest_client.h +++ b/src/client/cpp/restful/rest_client.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/client/cpp/restful/restful_exception.h b/src/client/cpp/restful/restful_exception.h index 66c5f4c731..bf8d3c2bfb 100644 --- a/src/client/cpp/restful/restful_exception.h +++ b/src/client/cpp/restful/restful_exception.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/client/cpp/rpc/field_spec_serializer.h b/src/client/cpp/rpc/field_spec_serializer.h index 49c04d8e26..fb08d15883 100644 --- a/src/client/cpp/rpc/field_spec_serializer.h +++ b/src/client/cpp/rpc/field_spec_serializer.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/client/cpp/rpc/lgraph_rpc.h b/src/client/cpp/rpc/lgraph_rpc.h index 2c1df5013c..a042b15f64 100644 --- a/src/client/cpp/rpc/lgraph_rpc.h +++ b/src/client/cpp/rpc/lgraph_rpc.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/client/cpp/rpc/lgraph_rpc_client.cpp b/src/client/cpp/rpc/lgraph_rpc_client.cpp index c76c35487d..3e14ca075e 100644 --- a/src/client/cpp/rpc/lgraph_rpc_client.cpp +++ b/src/client/cpp/rpc/lgraph_rpc_client.cpp @@ -1,5 +1,17 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "lgraph/lgraph_rpc_client.h" #include "client/cpp/rpc/lgraph_rpc.h" diff --git a/src/client/cpp/rpc/rpc_exception.h b/src/client/cpp/rpc/rpc_exception.h index 9993161a74..a266855403 100644 --- a/src/client/cpp/rpc/rpc_exception.h +++ b/src/client/cpp/rpc/rpc_exception.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/client/python/rpc/client.cpp b/src/client/python/rpc/client.cpp index 5cc87baa34..860f41dfdf 100644 --- a/src/client/python/rpc/client.cpp +++ b/src/client/python/rpc/client.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include #include diff --git a/src/client/python/rpc/lgraph_python_client.h b/src/client/python/rpc/lgraph_python_client.h index 821642b8f7..85809ab9cd 100644 --- a/src/client/python/rpc/lgraph_python_client.h +++ b/src/client/python/rpc/lgraph_python_client.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once #include diff --git a/src/core/audit_logger.cpp b/src/core/audit_logger.cpp index 058bd8c387..32a06f4a84 100644 --- a/src/core/audit_logger.cpp +++ b/src/core/audit_logger.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "core/audit_logger.h" diff --git a/src/core/audit_logger.h b/src/core/audit_logger.h index 4bd2f0d33d..3d680a6ddd 100644 --- a/src/core/audit_logger.h +++ b/src/core/audit_logger.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once #include diff --git a/src/core/backup_log.h b/src/core/backup_log.h index 812a082656..16a70a045a 100644 --- a/src/core/backup_log.h +++ b/src/core/backup_log.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/core/blob_manager.h b/src/core/blob_manager.h index b83143fac8..afea5bbe2e 100644 --- a/src/core/blob_manager.h +++ b/src/core/blob_manager.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/core/cache_aligned_vector.h b/src/core/cache_aligned_vector.h index de0d82efa5..a7c267c20f 100644 --- a/src/core/cache_aligned_vector.h +++ b/src/core/cache_aligned_vector.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/core/data_type.cpp b/src/core/data_type.cpp index e95bb8c248..d3023a98c7 100644 --- a/src/core/data_type.cpp +++ b/src/core/data_type.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/file_system.h" diff --git a/src/core/data_type.h b/src/core/data_type.h index 3d4e5a634b..f0a3758800 100644 --- a/src/core/data_type.h +++ b/src/core/data_type.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/core/defs.h b/src/core/defs.h index 8d9e802898..1f9e86f7a2 100644 --- a/src/core/defs.h +++ b/src/core/defs.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/core/edge_index.cpp b/src/core/edge_index.cpp index 172eb41af6..4e5d417ac8 100644 --- a/src/core/edge_index.cpp +++ b/src/core/edge_index.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "core/edge_index.h" #include "core/transaction.h" diff --git a/src/core/edge_index.h b/src/core/edge_index.h index 2c28d09322..3bd02d6920 100644 --- a/src/core/edge_index.h +++ b/src/core/edge_index.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/core/field_data_helper.h b/src/core/field_data_helper.h index fec79f94fe..970b2501c8 100644 --- a/src/core/field_data_helper.h +++ b/src/core/field_data_helper.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/core/field_extractor.cpp b/src/core/field_extractor.cpp index 847db80f30..b691205cce 100644 --- a/src/core/field_extractor.cpp +++ b/src/core/field_extractor.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "core/field_extractor.h" diff --git a/src/core/field_extractor.h b/src/core/field_extractor.h index 5323658041..69b0275236 100644 --- a/src/core/field_extractor.h +++ b/src/core/field_extractor.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/core/full_text_index.cpp b/src/core/full_text_index.cpp index db9f6f9502..15cd6eaa21 100644 --- a/src/core/full_text_index.cpp +++ b/src/core/full_text_index.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #if LGRAPH_ENABLE_FULLTEXT_INDEX diff --git a/src/core/full_text_index.h b/src/core/full_text_index.h index 20aa1eb231..d45bed4a7f 100644 --- a/src/core/full_text_index.h +++ b/src/core/full_text_index.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once #if LGRAPH_ENABLE_FULLTEXT_INDEX diff --git a/src/core/global_config.cpp b/src/core/global_config.cpp index 92f4ce4eaa..58974da9ab 100644 --- a/src/core/global_config.cpp +++ b/src/core/global_config.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/string_formatter.h" diff --git a/src/core/global_config.h b/src/core/global_config.h index fc5918f195..46fed9f764 100644 --- a/src/core/global_config.h +++ b/src/core/global_config.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/core/graph.cpp b/src/core/graph.cpp index 88f228c258..a77d7beed6 100644 --- a/src/core/graph.cpp +++ b/src/core/graph.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "core/graph.h" diff --git a/src/core/graph.h b/src/core/graph.h index 607fbb1d43..3f1a957b6c 100644 --- a/src/core/graph.h +++ b/src/core/graph.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/core/graph_data_pack.h b/src/core/graph_data_pack.h index 3409c75b39..d717b07c06 100644 --- a/src/core/graph_data_pack.h +++ b/src/core/graph_data_pack.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/core/graph_edge_iterator.cpp b/src/core/graph_edge_iterator.cpp index ad81a4485e..624365950e 100644 --- a/src/core/graph_edge_iterator.cpp +++ b/src/core/graph_edge_iterator.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "core/graph_edge_iterator.h" #include "core/transaction.h" diff --git a/src/core/graph_edge_iterator.h b/src/core/graph_edge_iterator.h index 533a567068..49aff0e536 100644 --- a/src/core/graph_edge_iterator.h +++ b/src/core/graph_edge_iterator.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/core/graph_vertex_iterator.cpp b/src/core/graph_vertex_iterator.cpp index 9de734a2af..b51fddd815 100644 --- a/src/core/graph_vertex_iterator.cpp +++ b/src/core/graph_vertex_iterator.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "core/kv_store.h" #include "core/graph_vertex_iterator.h" diff --git a/src/core/graph_vertex_iterator.h b/src/core/graph_vertex_iterator.h index 78117d2996..a804aeded7 100644 --- a/src/core/graph_vertex_iterator.h +++ b/src/core/graph_vertex_iterator.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/core/index_manager.cpp b/src/core/index_manager.cpp index 87de2d427c..8370080cdb 100644 --- a/src/core/index_manager.cpp +++ b/src/core/index_manager.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "core/index_manager.h" #include "core/kv_store.h" diff --git a/src/core/index_manager.h b/src/core/index_manager.h index 5058d32e7d..46c735bee8 100644 --- a/src/core/index_manager.h +++ b/src/core/index_manager.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/core/iterator_base.cpp b/src/core/iterator_base.cpp index d7a0668cc1..6523d9ca13 100644 --- a/src/core/iterator_base.cpp +++ b/src/core/iterator_base.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "core/iterator_base.h" #include "core/transaction.h" diff --git a/src/core/iterator_base.h b/src/core/iterator_base.h index 71c7dee909..5bcc1c74bd 100644 --- a/src/core/iterator_base.h +++ b/src/core/iterator_base.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/core/killable_rw_lock.h b/src/core/killable_rw_lock.h index 814b4ea1c8..8ba8a350e1 100644 --- a/src/core/killable_rw_lock.h +++ b/src/core/killable_rw_lock.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/core/kv_store.h b/src/core/kv_store.h index 841829dac4..8cd76c5ebd 100644 --- a/src/core/kv_store.h +++ b/src/core/kv_store.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/core/kv_store_exception.h b/src/core/kv_store_exception.h index 86766f6ef7..8c96c8a87b 100644 --- a/src/core/kv_store_exception.h +++ b/src/core/kv_store_exception.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/core/kv_store_iterator.cpp b/src/core/kv_store_iterator.cpp index fce5a4daaa..79603b6526 100644 --- a/src/core/kv_store_iterator.cpp +++ b/src/core/kv_store_iterator.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #if (!LGRAPH_USE_MOCK_KV) #include "core/kv_store_iterator.h" diff --git a/src/core/kv_store_iterator.h b/src/core/kv_store_iterator.h index 24ccd0edea..e67dbbc1ed 100644 --- a/src/core/kv_store_iterator.h +++ b/src/core/kv_store_iterator.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/core/kv_store_mdb.cpp b/src/core/kv_store_mdb.cpp index 424421ca92..58656326e6 100644 --- a/src/core/kv_store_mdb.cpp +++ b/src/core/kv_store_mdb.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #if (!LGRAPH_USE_MOCK_KV) #include diff --git a/src/core/kv_store_mdb.h b/src/core/kv_store_mdb.h index 8c5c4f94bb..faabfb8d75 100644 --- a/src/core/kv_store_mdb.h +++ b/src/core/kv_store_mdb.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/core/kv_store_table.cpp b/src/core/kv_store_table.cpp index a022054a38..27fb797a80 100644 --- a/src/core/kv_store_table.cpp +++ b/src/core/kv_store_table.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #if (!LGRAPH_USE_MOCK_KV) #include diff --git a/src/core/kv_store_table.h b/src/core/kv_store_table.h index e13fb97d18..4172e44160 100644 --- a/src/core/kv_store_table.h +++ b/src/core/kv_store_table.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/core/kv_store_transaction.cpp b/src/core/kv_store_transaction.cpp index 5db60ca184..e75460dc41 100644 --- a/src/core/kv_store_transaction.cpp +++ b/src/core/kv_store_transaction.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #if (!LGRAPH_USE_MOCK_KV) #include diff --git a/src/core/kv_store_transaction.h b/src/core/kv_store_transaction.h index 532aa935a9..53cd179203 100644 --- a/src/core/kv_store_transaction.h +++ b/src/core/kv_store_transaction.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once #if (!LGRAPH_USE_MOCK_KV) diff --git a/src/core/kv_table_comparators.cpp b/src/core/kv_table_comparators.cpp index 83d427deb3..a495b836e1 100644 --- a/src/core/kv_table_comparators.cpp +++ b/src/core/kv_table_comparators.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "core/data_type.h" #include "core/field_data_helper.h" diff --git a/src/core/kv_table_comparators.h b/src/core/kv_table_comparators.h index 24a0c6ef5e..7b0a7de644 100644 --- a/src/core/kv_table_comparators.h +++ b/src/core/kv_table_comparators.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/core/lgraph_date_time.cpp b/src/core/lgraph_date_time.cpp index 6b0f25fa3f..81d6f04ea7 100644 --- a/src/core/lgraph_date_time.cpp +++ b/src/core/lgraph_date_time.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/date.h" #include "fma-common/string_formatter.h" diff --git a/src/core/lightning_graph.cpp b/src/core/lightning_graph.cpp index 22aceccfd2..5df96f8f23 100644 --- a/src/core/lightning_graph.cpp +++ b/src/core/lightning_graph.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "db/galaxy.h" #include "core/index_manager.h" diff --git a/src/core/lightning_graph.h b/src/core/lightning_graph.h index c732addaa5..8d0b91b4b7 100644 --- a/src/core/lightning_graph.h +++ b/src/core/lightning_graph.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once #include diff --git a/src/core/lmdb_profiler.h b/src/core/lmdb_profiler.h index f567b32edd..f339b8c12f 100644 --- a/src/core/lmdb_profiler.h +++ b/src/core/lmdb_profiler.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once #include diff --git a/src/core/managed_object.h b/src/core/managed_object.h index 17a61d184b..a8f2b48666 100644 --- a/src/core/managed_object.h +++ b/src/core/managed_object.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/core/mem_profiler.h b/src/core/mem_profiler.h index 0ee263cabd..a3e5f05e63 100644 --- a/src/core/mem_profiler.h +++ b/src/core/mem_profiler.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once #include diff --git a/src/core/mock_kv.h b/src/core/mock_kv.h index 0d04d83dc1..21b6e0857d 100644 --- a/src/core/mock_kv.h +++ b/src/core/mock_kv.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/core/schema.cpp b/src/core/schema.cpp index e55678d048..471ff5a934 100644 --- a/src/core/schema.cpp +++ b/src/core/schema.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/string_formatter.h" diff --git a/src/core/schema.h b/src/core/schema.h index 8965bfe80d..73d54691f9 100644 --- a/src/core/schema.h +++ b/src/core/schema.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once #include diff --git a/src/core/schema_common.h b/src/core/schema_common.h index fe1ba9f8d1..5ed644f596 100644 --- a/src/core/schema_common.h +++ b/src/core/schema_common.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/core/schema_manager.h b/src/core/schema_manager.h index 190a4f4fa2..07feff91d6 100644 --- a/src/core/schema_manager.h +++ b/src/core/schema_manager.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/core/sync_file.cpp b/src/core/sync_file.cpp index 8f7fd487b1..ccbcc4c96b 100644 --- a/src/core/sync_file.cpp +++ b/src/core/sync_file.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #ifndef _WIN32 #include diff --git a/src/core/sync_file.h b/src/core/sync_file.h index f0a40c8516..78298a2358 100644 --- a/src/core/sync_file.h +++ b/src/core/sync_file.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/core/task_tracker.h b/src/core/task_tracker.h index e67659eae5..788b0a4c36 100644 --- a/src/core/task_tracker.h +++ b/src/core/task_tracker.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/core/thread_id.cpp b/src/core/thread_id.cpp index 75bd5ff311..01def64ae2 100644 --- a/src/core/thread_id.cpp +++ b/src/core/thread_id.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "core/thread_id.h" diff --git a/src/core/thread_id.h b/src/core/thread_id.h index ce5e964fa6..a1174411fa 100644 --- a/src/core/thread_id.h +++ b/src/core/thread_id.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/core/transaction.cpp b/src/core/transaction.cpp index d332faebf9..77fe2051e4 100644 --- a/src/core/transaction.cpp +++ b/src/core/transaction.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "core/blob_manager.h" #include "core/field_data_helper.h" diff --git a/src/core/transaction.h b/src/core/transaction.h index e7771abe94..6695fbd944 100644 --- a/src/core/transaction.h +++ b/src/core/transaction.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/core/type_convert.h b/src/core/type_convert.h index 74c2e9bdf5..db840ea250 100644 --- a/src/core/type_convert.h +++ b/src/core/type_convert.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once #include "core/data_type.h" diff --git a/src/core/value.h b/src/core/value.h index 79345c337c..6411bf223d 100644 --- a/src/core/value.h +++ b/src/core/value.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/core/version.h.in b/src/core/version.h.in index ab3cd5e2ae..8ef8ed9fcd 100644 --- a/src/core/version.h.in +++ b/src/core/version.h.in @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/core/vertex_index.cpp b/src/core/vertex_index.cpp index 7e03b4bdae..2234af7c68 100644 --- a/src/core/vertex_index.cpp +++ b/src/core/vertex_index.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "core/vertex_index.h" #include "core/transaction.h" diff --git a/src/core/vertex_index.h b/src/core/vertex_index.h index a99af6dd2f..4ed67cc28e 100644 --- a/src/core/vertex_index.h +++ b/src/core/vertex_index.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/core/wal.cpp b/src/core/wal.cpp index 3e2dcf3726..9c62202a1c 100644 --- a/src/core/wal.cpp +++ b/src/core/wal.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/file_system.h" diff --git a/src/core/wal.h b/src/core/wal.h index 09833e2d16..520e5d0dd6 100644 --- a/src/core/wal.h +++ b/src/core/wal.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/cypher/arithmetic/agg_ctx.h b/src/cypher/arithmetic/agg_ctx.h index 81a45d5c3e..8ede2f7b77 100644 --- a/src/cypher/arithmetic/agg_ctx.h +++ b/src/cypher/arithmetic/agg_ctx.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 19-2-15. diff --git a/src/cypher/arithmetic/agg_funcs.cpp b/src/cypher/arithmetic/agg_funcs.cpp index d8acb7c1c0..661b4ce35f 100644 --- a/src/cypher/arithmetic/agg_funcs.cpp +++ b/src/cypher/arithmetic/agg_funcs.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 19-2-15. diff --git a/src/cypher/arithmetic/agg_funcs.h b/src/cypher/arithmetic/agg_funcs.h index eeb5d395ca..6e6c29c090 100644 --- a/src/cypher/arithmetic/agg_funcs.h +++ b/src/cypher/arithmetic/agg_funcs.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 19-2-15. diff --git a/src/cypher/arithmetic/arithmetic_expression.cpp b/src/cypher/arithmetic/arithmetic_expression.cpp index f620cd58b7..6e57928d1a 100644 --- a/src/cypher/arithmetic/arithmetic_expression.cpp +++ b/src/cypher/arithmetic/arithmetic_expression.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 6/15/18. diff --git a/src/cypher/arithmetic/arithmetic_expression.h b/src/cypher/arithmetic/arithmetic_expression.h index 33d54dd523..9eb1291ee3 100644 --- a/src/cypher/arithmetic/arithmetic_expression.h +++ b/src/cypher/arithmetic/arithmetic_expression.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 6/15/18. diff --git a/src/cypher/cypher_exception.h b/src/cypher/cypher_exception.h index 9b64c6766e..45533a7909 100644 --- a/src/cypher/cypher_exception.h +++ b/src/cypher/cypher_exception.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/cypher/cypher_types.h b/src/cypher/cypher_types.h index df45d5cc87..ba5b818eec 100644 --- a/src/cypher/cypher_types.h +++ b/src/cypher/cypher_types.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 19-11-20. diff --git a/src/cypher/execution_plan/execution_plan.cpp b/src/cypher/execution_plan/execution_plan.cpp index 94a20a0676..ee277cd1ef 100644 --- a/src/cypher/execution_plan/execution_plan.cpp +++ b/src/cypher/execution_plan/execution_plan.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 6/12/18. diff --git a/src/cypher/execution_plan/execution_plan.h b/src/cypher/execution_plan/execution_plan.h index 3d2b394eda..0c348d68ac 100644 --- a/src/cypher/execution_plan/execution_plan.h +++ b/src/cypher/execution_plan/execution_plan.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 6/12/18. diff --git a/src/cypher/execution_plan/lru_cache.h b/src/cypher/execution_plan/lru_cache.h index 3006c7f287..14591a42ba 100644 --- a/src/cypher/execution_plan/lru_cache.h +++ b/src/cypher/execution_plan/lru_cache.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 21-3-23. diff --git a/src/cypher/execution_plan/ops/op.h b/src/cypher/execution_plan/ops/op.h index 93edc7b4e5..f88464df1d 100644 --- a/src/cypher/execution_plan/ops/op.h +++ b/src/cypher/execution_plan/ops/op.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 6/12/18. @@ -20,10 +32,11 @@ namespace cypher { enum OpType { AGGREGATE, ALL_NODE_SCAN, - ALL_NODE_SCAN_DYNAMIC, // 新增 - NODE_BY_LABEL_SCAN_DYNAMIC, // 新增 + ALL_NODE_SCAN_DYNAMIC, + NODE_BY_LABEL_SCAN_DYNAMIC, EXPAND_ALL, EXPAND_INTO, + TRAVERSAl, REVERSED_EXPAND_ALL, VAR_LEN_EXPAND, VAR_LEN_EXPAND_INTO, @@ -146,9 +159,9 @@ struct OpBase { /* Disconnect every child from parent * Add each parent's child to only child. */ for (auto child : children) { - RemoveChild(child); onlyChild->AddChild(child); } + children.clear(); AddChild(onlyChild); } diff --git a/src/cypher/execution_plan/ops/op_aggregate.cpp b/src/cypher/execution_plan/ops/op_aggregate.cpp index 603e70a008..1d9aafa330 100644 --- a/src/cypher/execution_plan/ops/op_aggregate.cpp +++ b/src/cypher/execution_plan/ops/op_aggregate.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 19-2-13. diff --git a/src/cypher/execution_plan/ops/op_aggregate.h b/src/cypher/execution_plan/ops/op_aggregate.h index cb156b7374..cf9dc4f341 100644 --- a/src/cypher/execution_plan/ops/op_aggregate.h +++ b/src/cypher/execution_plan/ops/op_aggregate.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 19-2-13. @@ -177,6 +189,23 @@ class Aggregate : public OpBase { return HandOff(ctx); } + ResultSetHeader GetResultSetHeader() { + return result_set_header_; + } + + std::vector GetNoneAggregatedExpressions() { + return noneaggregated_expressions_; + } + + std::vector GetAggregatedExpressions() { + std::vector agg_exprs; + for (auto &ae : aggregated_expressions_) { + ArithExprNode new_ae(ae, sym_tab_); + agg_exprs.emplace_back(new_ae); + } + return agg_exprs; + } + /* Restart */ OpResult ResetImpl(bool complete) override { if (complete) { diff --git a/src/cypher/execution_plan/ops/op_all_node_scan.cpp b/src/cypher/execution_plan/ops/op_all_node_scan.cpp index c9d3a21c1d..e9e71d6362 100644 --- a/src/cypher/execution_plan/ops/op_all_node_scan.cpp +++ b/src/cypher/execution_plan/ops/op_all_node_scan.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 6/14/18. diff --git a/src/cypher/execution_plan/ops/op_all_node_scan.h b/src/cypher/execution_plan/ops/op_all_node_scan.h index d0c4d6815a..4bd619fd33 100644 --- a/src/cypher/execution_plan/ops/op_all_node_scan.h +++ b/src/cypher/execution_plan/ops/op_all_node_scan.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 6/14/18. diff --git a/src/cypher/execution_plan/ops/op_all_node_scan_dynamic.cpp b/src/cypher/execution_plan/ops/op_all_node_scan_dynamic.cpp index 0a2c18e660..d34f9e340b 100644 --- a/src/cypher/execution_plan/ops/op_all_node_scan_dynamic.cpp +++ b/src/cypher/execution_plan/ops/op_all_node_scan_dynamic.cpp @@ -1,3 +1,15 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "op_all_node_scan_dynamic.h" \ No newline at end of file diff --git a/src/cypher/execution_plan/ops/op_all_node_scan_dynamic.h b/src/cypher/execution_plan/ops/op_all_node_scan_dynamic.h index 3a1b7a36bb..c465c2ced4 100644 --- a/src/cypher/execution_plan/ops/op_all_node_scan_dynamic.h +++ b/src/cypher/execution_plan/ops/op_all_node_scan_dynamic.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by ll on 7/7/21. diff --git a/src/cypher/execution_plan/ops/op_apply.cpp b/src/cypher/execution_plan/ops/op_apply.cpp index 808bb53c7d..6e66232d3f 100644 --- a/src/cypher/execution_plan/ops/op_apply.cpp +++ b/src/cypher/execution_plan/ops/op_apply.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 19-10-22. diff --git a/src/cypher/execution_plan/ops/op_apply.h b/src/cypher/execution_plan/ops/op_apply.h index 40d2ef3407..1e552b3070 100644 --- a/src/cypher/execution_plan/ops/op_apply.h +++ b/src/cypher/execution_plan/ops/op_apply.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 19-10-22. diff --git a/src/cypher/execution_plan/ops/op_argument.cpp b/src/cypher/execution_plan/ops/op_argument.cpp index 5f69bf03fa..44fe75c28f 100644 --- a/src/cypher/execution_plan/ops/op_argument.cpp +++ b/src/cypher/execution_plan/ops/op_argument.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 19-10-11. diff --git a/src/cypher/execution_plan/ops/op_argument.h b/src/cypher/execution_plan/ops/op_argument.h index 358ef94085..33b04e173f 100644 --- a/src/cypher/execution_plan/ops/op_argument.h +++ b/src/cypher/execution_plan/ops/op_argument.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 19-10-11. diff --git a/src/cypher/execution_plan/ops/op_cartesian_product.cpp b/src/cypher/execution_plan/ops/op_cartesian_product.cpp index 7b87f21839..42e8a41d3b 100644 --- a/src/cypher/execution_plan/ops/op_cartesian_product.cpp +++ b/src/cypher/execution_plan/ops/op_cartesian_product.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 19-7-18. diff --git a/src/cypher/execution_plan/ops/op_cartesian_product.h b/src/cypher/execution_plan/ops/op_cartesian_product.h index 220b545ebc..4a802e1bfc 100644 --- a/src/cypher/execution_plan/ops/op_cartesian_product.h +++ b/src/cypher/execution_plan/ops/op_cartesian_product.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 19-7-18. diff --git a/src/cypher/execution_plan/ops/op_create.cpp b/src/cypher/execution_plan/ops/op_create.cpp index e40102a0fd..47145b125c 100644 --- a/src/cypher/execution_plan/ops/op_create.cpp +++ b/src/cypher/execution_plan/ops/op_create.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 18-7-27. diff --git a/src/cypher/execution_plan/ops/op_create.h b/src/cypher/execution_plan/ops/op_create.h index 19514a8f79..291ce1d087 100644 --- a/src/cypher/execution_plan/ops/op_create.h +++ b/src/cypher/execution_plan/ops/op_create.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 18-7-27. diff --git a/src/cypher/execution_plan/ops/op_delete.cpp b/src/cypher/execution_plan/ops/op_delete.cpp index d9af0e86dd..32f8ffde1f 100644 --- a/src/cypher/execution_plan/ops/op_delete.cpp +++ b/src/cypher/execution_plan/ops/op_delete.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by dcy on 19-8-22. diff --git a/src/cypher/execution_plan/ops/op_delete.h b/src/cypher/execution_plan/ops/op_delete.h index 47b69c3064..dcb0e3cded 100644 --- a/src/cypher/execution_plan/ops/op_delete.h +++ b/src/cypher/execution_plan/ops/op_delete.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by dcy on 19-8-22. diff --git a/src/cypher/execution_plan/ops/op_distinct.cpp b/src/cypher/execution_plan/ops/op_distinct.cpp index b679f3f6a8..09b1ff1c14 100644 --- a/src/cypher/execution_plan/ops/op_distinct.cpp +++ b/src/cypher/execution_plan/ops/op_distinct.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 2019/12/19. diff --git a/src/cypher/execution_plan/ops/op_distinct.h b/src/cypher/execution_plan/ops/op_distinct.h index 3963c10e68..60ff20c610 100644 --- a/src/cypher/execution_plan/ops/op_distinct.h +++ b/src/cypher/execution_plan/ops/op_distinct.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 2019/12/19. diff --git a/src/cypher/execution_plan/ops/op_expand_all.cpp b/src/cypher/execution_plan/ops/op_expand_all.cpp index 0c35f8731c..bcc568af56 100644 --- a/src/cypher/execution_plan/ops/op_expand_all.cpp +++ b/src/cypher/execution_plan/ops/op_expand_all.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 7/3/18. diff --git a/src/cypher/execution_plan/ops/op_expand_all.h b/src/cypher/execution_plan/ops/op_expand_all.h index 626026a591..241d4e1c67 100644 --- a/src/cypher/execution_plan/ops/op_expand_all.h +++ b/src/cypher/execution_plan/ops/op_expand_all.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 7/3/18. diff --git a/src/cypher/execution_plan/ops/op_filter.cpp b/src/cypher/execution_plan/ops/op_filter.cpp index c78f04a59f..2e92dacb69 100644 --- a/src/cypher/execution_plan/ops/op_filter.cpp +++ b/src/cypher/execution_plan/ops/op_filter.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 6/29/18. diff --git a/src/cypher/execution_plan/ops/op_filter.h b/src/cypher/execution_plan/ops/op_filter.h index 3f376a6c02..3853cc4e8d 100644 --- a/src/cypher/execution_plan/ops/op_filter.h +++ b/src/cypher/execution_plan/ops/op_filter.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 6/29/18. diff --git a/src/cypher/execution_plan/ops/op_immediate_argument.cpp b/src/cypher/execution_plan/ops/op_immediate_argument.cpp index 9872f23789..8315ad77fa 100644 --- a/src/cypher/execution_plan/ops/op_immediate_argument.cpp +++ b/src/cypher/execution_plan/ops/op_immediate_argument.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 2022/4/1. diff --git a/src/cypher/execution_plan/ops/op_immediate_argument.h b/src/cypher/execution_plan/ops/op_immediate_argument.h index 5e5f30a15a..0bb364c0e3 100644 --- a/src/cypher/execution_plan/ops/op_immediate_argument.h +++ b/src/cypher/execution_plan/ops/op_immediate_argument.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 22-4-1. diff --git a/src/cypher/execution_plan/ops/op_inquery_call.cpp b/src/cypher/execution_plan/ops/op_inquery_call.cpp index 1585e0969c..57debc7c73 100644 --- a/src/cypher/execution_plan/ops/op_inquery_call.cpp +++ b/src/cypher/execution_plan/ops/op_inquery_call.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 19-1-21. diff --git a/src/cypher/execution_plan/ops/op_inquery_call.h b/src/cypher/execution_plan/ops/op_inquery_call.h index 5618130ab4..55005eaf83 100644 --- a/src/cypher/execution_plan/ops/op_inquery_call.h +++ b/src/cypher/execution_plan/ops/op_inquery_call.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 19-1-21. diff --git a/src/cypher/execution_plan/ops/op_limit.cpp b/src/cypher/execution_plan/ops/op_limit.cpp index 487f60129b..f8ce2c4733 100644 --- a/src/cypher/execution_plan/ops/op_limit.cpp +++ b/src/cypher/execution_plan/ops/op_limit.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 19-6-25. diff --git a/src/cypher/execution_plan/ops/op_limit.h b/src/cypher/execution_plan/ops/op_limit.h index 40af70b2e7..01385cd40d 100644 --- a/src/cypher/execution_plan/ops/op_limit.h +++ b/src/cypher/execution_plan/ops/op_limit.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 19-6-25. diff --git a/src/cypher/execution_plan/ops/op_merge.cpp b/src/cypher/execution_plan/ops/op_merge.cpp index 08aedb1854..79e5bc2403 100644 --- a/src/cypher/execution_plan/ops/op_merge.cpp +++ b/src/cypher/execution_plan/ops/op_merge.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by ljp on 20-02-16 diff --git a/src/cypher/execution_plan/ops/op_merge.h b/src/cypher/execution_plan/ops/op_merge.h index 998c3329a8..9b02f5c688 100644 --- a/src/cypher/execution_plan/ops/op_merge.h +++ b/src/cypher/execution_plan/ops/op_merge.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by ljp on 20-2-16. diff --git a/src/cypher/execution_plan/ops/op_node_by_label_scan.cpp b/src/cypher/execution_plan/ops/op_node_by_label_scan.cpp index 576a2caab3..7c26f45b08 100644 --- a/src/cypher/execution_plan/ops/op_node_by_label_scan.cpp +++ b/src/cypher/execution_plan/ops/op_node_by_label_scan.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 6/13/18. diff --git a/src/cypher/execution_plan/ops/op_node_by_label_scan.h b/src/cypher/execution_plan/ops/op_node_by_label_scan.h index 7149ac363f..f6052e0fc6 100644 --- a/src/cypher/execution_plan/ops/op_node_by_label_scan.h +++ b/src/cypher/execution_plan/ops/op_node_by_label_scan.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 6/13/18. @@ -95,6 +107,8 @@ class NodeByLabelScan : public OpBase { Node *GetNode() const { return node_; } + const std::string& GetLabel() { return label_; } + CYPHER_DEFINE_VISITABLE() CYPHER_DEFINE_CONST_VISITABLE() diff --git a/src/cypher/execution_plan/ops/op_node_by_label_scan_dynamic.cpp b/src/cypher/execution_plan/ops/op_node_by_label_scan_dynamic.cpp index 2957de135e..3b74a2c4f0 100644 --- a/src/cypher/execution_plan/ops/op_node_by_label_scan_dynamic.cpp +++ b/src/cypher/execution_plan/ops/op_node_by_label_scan_dynamic.cpp @@ -1,3 +1,15 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "op_node_by_label_scan_dynamic.h" \ No newline at end of file diff --git a/src/cypher/execution_plan/ops/op_node_by_label_scan_dynamic.h b/src/cypher/execution_plan/ops/op_node_by_label_scan_dynamic.h index 9241dd46c9..2e9f980d9a 100644 --- a/src/cypher/execution_plan/ops/op_node_by_label_scan_dynamic.h +++ b/src/cypher/execution_plan/ops/op_node_by_label_scan_dynamic.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by ll on 7/7/21. diff --git a/src/cypher/execution_plan/ops/op_node_index_seek.cpp b/src/cypher/execution_plan/ops/op_node_index_seek.cpp index eb23f644a7..db6ec4f3c4 100644 --- a/src/cypher/execution_plan/ops/op_node_index_seek.cpp +++ b/src/cypher/execution_plan/ops/op_node_index_seek.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 7/2/18. diff --git a/src/cypher/execution_plan/ops/op_node_index_seek.h b/src/cypher/execution_plan/ops/op_node_index_seek.h index c420f4c8df..ec5e036efb 100644 --- a/src/cypher/execution_plan/ops/op_node_index_seek.h +++ b/src/cypher/execution_plan/ops/op_node_index_seek.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 7/2/18. diff --git a/src/cypher/execution_plan/ops/op_node_index_seek_dynamic.cpp b/src/cypher/execution_plan/ops/op_node_index_seek_dynamic.cpp index a5520e99a8..15638a4a4c 100644 --- a/src/cypher/execution_plan/ops/op_node_index_seek_dynamic.cpp +++ b/src/cypher/execution_plan/ops/op_node_index_seek_dynamic.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 11/26/19. diff --git a/src/cypher/execution_plan/ops/op_node_index_seek_dynamic.h b/src/cypher/execution_plan/ops/op_node_index_seek_dynamic.h index 16b00e5551..fe10f209e0 100644 --- a/src/cypher/execution_plan/ops/op_node_index_seek_dynamic.h +++ b/src/cypher/execution_plan/ops/op_node_index_seek_dynamic.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 11/26/19. diff --git a/src/cypher/execution_plan/ops/op_optional.cpp b/src/cypher/execution_plan/ops/op_optional.cpp index c29a40460e..530778f978 100644 --- a/src/cypher/execution_plan/ops/op_optional.cpp +++ b/src/cypher/execution_plan/ops/op_optional.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 19-8-16. diff --git a/src/cypher/execution_plan/ops/op_optional.h b/src/cypher/execution_plan/ops/op_optional.h index 42aeeeea6b..65b3e4de2d 100644 --- a/src/cypher/execution_plan/ops/op_optional.h +++ b/src/cypher/execution_plan/ops/op_optional.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 19-8-16. diff --git a/src/cypher/execution_plan/ops/op_produce_results.cpp b/src/cypher/execution_plan/ops/op_produce_results.cpp index b3509ff98d..1fb5eb2cd6 100644 --- a/src/cypher/execution_plan/ops/op_produce_results.cpp +++ b/src/cypher/execution_plan/ops/op_produce_results.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 6/14/18. diff --git a/src/cypher/execution_plan/ops/op_produce_results.h b/src/cypher/execution_plan/ops/op_produce_results.h index 75c371868f..7fa548f7ea 100644 --- a/src/cypher/execution_plan/ops/op_produce_results.h +++ b/src/cypher/execution_plan/ops/op_produce_results.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 6/14/18. diff --git a/src/cypher/execution_plan/ops/op_project.cpp b/src/cypher/execution_plan/ops/op_project.cpp index 1e1d9abc7d..ddb1d1e4fa 100644 --- a/src/cypher/execution_plan/ops/op_project.cpp +++ b/src/cypher/execution_plan/ops/op_project.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 6/18/19. diff --git a/src/cypher/execution_plan/ops/op_project.h b/src/cypher/execution_plan/ops/op_project.h index a29fc1d2c2..8a2f1b0a41 100644 --- a/src/cypher/execution_plan/ops/op_project.h +++ b/src/cypher/execution_plan/ops/op_project.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 6/14/18. diff --git a/src/cypher/execution_plan/ops/op_relationship_count.cpp b/src/cypher/execution_plan/ops/op_relationship_count.cpp index 6ceaf6eb1b..83ea4137f6 100644 --- a/src/cypher/execution_plan/ops/op_relationship_count.cpp +++ b/src/cypher/execution_plan/ops/op_relationship_count.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 19-11-28. diff --git a/src/cypher/execution_plan/ops/op_relationship_count.h b/src/cypher/execution_plan/ops/op_relationship_count.h index a9f5c0fea6..fa9ed5ae82 100644 --- a/src/cypher/execution_plan/ops/op_relationship_count.h +++ b/src/cypher/execution_plan/ops/op_relationship_count.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 19-11-28. diff --git a/src/cypher/execution_plan/ops/op_remove.cpp b/src/cypher/execution_plan/ops/op_remove.cpp index c3b0b531d8..8db9272a10 100644 --- a/src/cypher/execution_plan/ops/op_remove.cpp +++ b/src/cypher/execution_plan/ops/op_remove.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 20-2-18. diff --git a/src/cypher/execution_plan/ops/op_remove.h b/src/cypher/execution_plan/ops/op_remove.h index b3f886440c..7d5a44d0b3 100644 --- a/src/cypher/execution_plan/ops/op_remove.h +++ b/src/cypher/execution_plan/ops/op_remove.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 20-2-18. diff --git a/src/cypher/execution_plan/ops/op_set.cpp b/src/cypher/execution_plan/ops/op_set.cpp index 42fd73f210..912048b254 100644 --- a/src/cypher/execution_plan/ops/op_set.cpp +++ b/src/cypher/execution_plan/ops/op_set.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by dcy on 19-8-22. diff --git a/src/cypher/execution_plan/ops/op_set.h b/src/cypher/execution_plan/ops/op_set.h index 82debc313b..4c1e035945 100644 --- a/src/cypher/execution_plan/ops/op_set.h +++ b/src/cypher/execution_plan/ops/op_set.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by dcy on 19-8-22. diff --git a/src/cypher/execution_plan/ops/op_skip.cpp b/src/cypher/execution_plan/ops/op_skip.cpp index 184c77d3bb..033b2ad22e 100644 --- a/src/cypher/execution_plan/ops/op_skip.cpp +++ b/src/cypher/execution_plan/ops/op_skip.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 2020/5/15. diff --git a/src/cypher/execution_plan/ops/op_skip.h b/src/cypher/execution_plan/ops/op_skip.h index 6cb1c29341..50c03c21f3 100644 --- a/src/cypher/execution_plan/ops/op_skip.h +++ b/src/cypher/execution_plan/ops/op_skip.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 2020/5/15. diff --git a/src/cypher/execution_plan/ops/op_sort.cpp b/src/cypher/execution_plan/ops/op_sort.cpp index 8e7d140b4c..2410eea907 100644 --- a/src/cypher/execution_plan/ops/op_sort.cpp +++ b/src/cypher/execution_plan/ops/op_sort.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 19-7-5. diff --git a/src/cypher/execution_plan/ops/op_sort.h b/src/cypher/execution_plan/ops/op_sort.h index 89dda15b77..0deee6aac3 100644 --- a/src/cypher/execution_plan/ops/op_sort.h +++ b/src/cypher/execution_plan/ops/op_sort.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 19-7-5. diff --git a/src/cypher/execution_plan/ops/op_standalone_call.cpp b/src/cypher/execution_plan/ops/op_standalone_call.cpp index 8c3d39182d..fa6ea64f14 100644 --- a/src/cypher/execution_plan/ops/op_standalone_call.cpp +++ b/src/cypher/execution_plan/ops/op_standalone_call.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 18-7-31. diff --git a/src/cypher/execution_plan/ops/op_standalone_call.h b/src/cypher/execution_plan/ops/op_standalone_call.h index 9cb5c64618..73d165e791 100644 --- a/src/cypher/execution_plan/ops/op_standalone_call.h +++ b/src/cypher/execution_plan/ops/op_standalone_call.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 18-7-31. diff --git a/src/cypher/execution_plan/ops/op_topn.cpp b/src/cypher/execution_plan/ops/op_topn.cpp index 93d56b1333..d20943503c 100644 --- a/src/cypher/execution_plan/ops/op_topn.cpp +++ b/src/cypher/execution_plan/ops/op_topn.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created on 7/1/21. diff --git a/src/cypher/execution_plan/ops/op_topn.h b/src/cypher/execution_plan/ops/op_topn.h index b0f8764a65..2b0044f76e 100644 --- a/src/cypher/execution_plan/ops/op_topn.h +++ b/src/cypher/execution_plan/ops/op_topn.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created on 7/1/21. diff --git a/src/cypher/execution_plan/ops/op_traversal.cpp b/src/cypher/execution_plan/ops/op_traversal.cpp new file mode 100644 index 0000000000..b906ebd1c8 --- /dev/null +++ b/src/cypher/execution_plan/ops/op_traversal.cpp @@ -0,0 +1,7 @@ +/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ + +// +// Created by ljr on 22-7-20. +// + +#include "op_traversal.h" diff --git a/src/cypher/execution_plan/ops/op_traversal.h b/src/cypher/execution_plan/ops/op_traversal.h new file mode 100644 index 0000000000..cee4895322 --- /dev/null +++ b/src/cypher/execution_plan/ops/op_traversal.h @@ -0,0 +1,276 @@ +/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ + +// +// Created by ljr on 22-7-30. +// +#pragma once + +#include "op.h" +#include "filter/filter.h" +#include "lgraph/lgraph.h" +#include "lgraph/lgraph_traversal.h" +#include "libcuckoo/cuckoohash_map.hh" + +namespace cypher { + +/* TraversalOp + * Traversal entire graph Parallel + * basic plan : Node Scan - Argument + * more: Node Scan - Filter - Expand - Expand - Argument + */ + +class Traversal : public OpBase { + /** about node scan */ + std::string start_label_; + std::string start_alias_; + std::shared_ptr filter_; + + /** about aggregate */ + ResultSetHeader result_set_header_; + ArithExprNode agg_expr_; + ArithExprNode noneagg_expr_; + std::string noneagg_property_; + + /** about expand */ + std::vector> expands_; // + + /** result */ + cuckoohash_map map_; + std::vector result_buffer_; + size_t result_idx_; + + enum { + Initialized, + Consuming, + } state_; + + bool DoFilter(lgraph_api::VertexIterator &vit, std::shared_ptr f) { + if (!f) { return true; } + switch (f->LogicalOp()) { + case lgraph::LBR_EMPTY: { + lgraph::RangeFilter *rf = dynamic_cast(f.get()); + lgraph::CompareOp compare_op = rf->GetCompareOp(); + cypher::ArithExprNode ae_left = rf->GetAeLeft(); + cypher::ArithExprNode ae_right = rf->GetAeRight(); + std::string prop_name = ae_left.operand.variadic.entity_prop; + if (prop_name.empty()) { CYPHER_TODO(); } + lgraph::FieldData prop_value = ae_right.operand.constant.scalar; + switch (compare_op) { + case lgraph::LBR_EQ: { + return vit[prop_name] == prop_value; + } + case lgraph::LBR_NEQ: { + return vit[prop_name] != prop_value; + } + case lgraph::LBR_LT: { + return vit[prop_name] < prop_value; + } + case lgraph::LBR_GT: { + return vit[prop_name] > prop_value; + } + case lgraph::LBR_LE: { + return vit[prop_name] <= prop_value; + } + case lgraph::LBR_GE: { + return vit[prop_name] >= prop_value; + } + default: + return false; + } + } + case lgraph::LBR_NOT: + return f->Left() && !DoFilter(vit, f->Left()); + case lgraph::LBR_AND: + return f->Left() && f->Right() && + (DoFilter(vit, f->Left()) && DoFilter(vit, f->Right())); + case lgraph::LBR_OR: + return f->Left() && f->Right() && + (DoFilter(vit, f->Left()) || DoFilter(vit, f->Right())); + case lgraph::LBR_XOR: + return f->Left() && f->Right() && + (DoFilter(vit, f->Left()) != DoFilter(vit, f->Right())); + default: + return false; + } + } + + bool ParallelTraversal(RTContext *ctx) { + lgraph_api::GraphDB db_(ctx->ac_db_.get(), true, false); + ctx->txn_->Abort(); + auto txn = db_.CreateReadTxn(); + // 1. FindVertices + auto vs = lgraph_api::traversal::FindVertices( + db_, txn, + [&](lgraph_api::VertexIterator &vit) { + if (vit.GetLabel() == start_label_ && DoFilter(vit, filter_)) { + if (expands_.empty()) { + auto group_by_key = noneagg_property_.empty() ? lgraph::FieldData() : vit[noneagg_property_]; + map_.upsert(group_by_key, [](int &n) { ++n; }, 1); + } + return true; + } + return false; + }, + true); + // 2. ExpandEdges + auto ft = lgraph_api::traversal::FrontierTraversal(db_, txn, + lgraph_api::traversal::TRAVERSAL_PARALLEL | lgraph_api::traversal::TRAVERSAL_ALLOW_REVISITS); + ft.SetFrontier(vs); + for (size_t i = 0; i < expands_.size(); i++) { + switch (std::get<3>(expands_[i])) { + case ExpandTowards::FORWARD: // out + ft.ExpandOutEdges( + [&](lgraph_api::OutEdgeIterator &eit) { + return std::get<2>(expands_[i])->Types().find(eit.GetLabel()) != std::get<2>(expands_[i])->Types().end(); + }, + [&](lgraph_api::VertexIterator &vit) { + if (vit.GetLabel() == std::get<1>(expands_[i])->Label()) { + if (i == expands_.size()-1) { + auto group_by_key = noneagg_property_.empty() ? lgraph::FieldData() : vit[noneagg_property_]; + map_.upsert(group_by_key, [](int &n) { ++n; }, 1); + } + return true; + } + return false; + }); + break; + case ExpandTowards::REVERSED: // in + ft.ExpandInEdges( + [&](lgraph_api::InEdgeIterator &eit) { + return std::get<2>(expands_[i])->Types().find(eit.GetLabel()) != std::get<2>(expands_[i])->Types().end(); + }, + [&](lgraph_api::VertexIterator &vit) { + if (vit.GetLabel() == std::get<1>(expands_[i])->Label()) { + if (i == expands_.size()-1) { + auto group_by_key = noneagg_property_.empty() ? lgraph::FieldData() : vit[noneagg_property_]; + map_.upsert(group_by_key, [](int &n) { ++n; }, 1); + } + return true; + } + return false; + }); + break; + case ExpandTowards::BIDIRECTIONAL: // bi + ft.ExpandEdges( + [&](lgraph_api::OutEdgeIterator &eit) { + return std::get<2>(expands_[i])->Types().find(eit.GetLabel()) != std::get<2>(expands_[i])->Types().end(); + }, + [&](lgraph_api::InEdgeIterator &eit) { + return std::get<2>(expands_[i])->Types().find(eit.GetLabel()) != std::get<2>(expands_[i])->Types().end(); + }, + [&](lgraph_api::VertexIterator &vit) { + if (vit.GetLabel() == std::get<1>(expands_[i])->Label()) { + if (i == expands_.size()-1) { + auto group_by_key = noneagg_property_.empty() ? lgraph::FieldData() : vit[noneagg_property_]; + map_.upsert(group_by_key, [](int &n) { ++n; }, 1); + } + return true; + } + return false; + }, + [&](lgraph_api::VertexIterator &vit) { + if (vit.GetLabel() == std::get<1>(expands_[i])->Label()) { + if (i == expands_.size()-1) { + auto group_by_key = noneagg_property_.empty() ? lgraph::FieldData() : vit[noneagg_property_]; + map_.upsert(group_by_key, [](int &n) { ++n; }, 1); + } + return true; + } + return false; + }); + break; + } + } + for (auto &num : map_.lock_table()) { + if (noneagg_property_.empty()) { + result_buffer_.emplace_back(lgraph::FieldData(num.second)); + } else { // result_buffer_格式:[agg, key, agg, key, agg, key, ...] + result_buffer_.emplace_back(lgraph::FieldData(num.second)); + result_buffer_.emplace_back(num.first); + } + } + return true; + } + + OpResult HandOff() { + if (state_ != Consuming) return OP_DEPLETED; + if (result_idx_ == result_buffer_.size()) return OP_DEPLETED; + int key_idx = 0, agg_idx = 0; + for (auto &col : result_set_header_.colums) { + if (col.aggregated) { + record->values[key_idx + agg_idx] = Entry(cypher::FieldData(result_buffer_.at(result_idx_))); + agg_idx++; + } else { + record->values[key_idx + agg_idx] = Entry(cypher::FieldData(result_buffer_.at(result_idx_+1))); + key_idx++; + } + } + result_idx_ += result_set_header_.colums.size(); + return OP_OK; + } + +public: + Traversal(std::string label, std::string alias, + ResultSetHeader result_set_header, ArithExprNode agg_expr, ArithExprNode noneagg_expr, + std::vector> expands + = std::vector>{} + ) + : OpBase(OpType::TRAVERSAl, "Traversal"), + start_label_(label), + start_alias_(alias), + result_set_header_(result_set_header), + agg_expr_(agg_expr), + noneagg_expr_(noneagg_expr), + expands_(expands) { + noneagg_property_ = noneagg_expr_.operand.variadic.entity_prop; + filter_ = nullptr; + } + + void SetFilter(std::shared_ptr filter) { + filter_ = filter; + } + + OpResult Initialize(RTContext *ctx) override { + record = std::make_shared(result_set_header_.colums.size()); + result_idx_ = 0; + state_ = Initialized; + return OP_OK; + } + + OpResult RealConsume(RTContext *ctx) override { + if (state_ == Initialized) { + ParallelTraversal(ctx); + result_idx_ = 0; + state_ = Consuming; + } + return HandOff(); + } + + OpResult ResetImpl(bool complete) override { + if (complete) { + record = nullptr; + state_ = Initialized; + result_idx_ = 0; + } + return OP_OK; + } + + std::string ToString() const override { + std::string str(name); + str.append(" [").append(start_alias_); + for (size_t i = 0; i < expands_.size(); i++) { + auto towards = std::get<3>(expands_[i]) == ExpandTowards::FORWARD ? "-->" + : std::get<3>(expands_[i]) == ExpandTowards::REVERSED ? "<--" + : "--"; + str.append(towards).append(std::get<1>(expands_[i])->Alias()); + } + str.append("]"); + return str; + } + + CYPHER_DEFINE_VISITABLE() + + CYPHER_DEFINE_CONST_VISITABLE() + +}; +} // namespace cypher diff --git a/src/cypher/execution_plan/ops/op_union.cpp b/src/cypher/execution_plan/ops/op_union.cpp index 7c675a48b6..36989c22ea 100644 --- a/src/cypher/execution_plan/ops/op_union.cpp +++ b/src/cypher/execution_plan/ops/op_union.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 21-11-10. diff --git a/src/cypher/execution_plan/ops/op_union.h b/src/cypher/execution_plan/ops/op_union.h index 56ebedc7cc..4f94ce183f 100644 --- a/src/cypher/execution_plan/ops/op_union.h +++ b/src/cypher/execution_plan/ops/op_union.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 21-11-10. diff --git a/src/cypher/execution_plan/ops/op_unwind.cpp b/src/cypher/execution_plan/ops/op_unwind.cpp index 86e195ca3b..85a8d15948 100644 --- a/src/cypher/execution_plan/ops/op_unwind.cpp +++ b/src/cypher/execution_plan/ops/op_unwind.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 19-11-19. diff --git a/src/cypher/execution_plan/ops/op_unwind.h b/src/cypher/execution_plan/ops/op_unwind.h index 51620b9de8..efd86f0ef9 100644 --- a/src/cypher/execution_plan/ops/op_unwind.h +++ b/src/cypher/execution_plan/ops/op_unwind.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 19-11-19. diff --git a/src/cypher/execution_plan/ops/op_var_len_expand.cpp b/src/cypher/execution_plan/ops/op_var_len_expand.cpp index 3d5a255b03..d94ac0e2ed 100644 --- a/src/cypher/execution_plan/ops/op_var_len_expand.cpp +++ b/src/cypher/execution_plan/ops/op_var_len_expand.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 18-8-30. diff --git a/src/cypher/execution_plan/ops/op_var_len_expand.h b/src/cypher/execution_plan/ops/op_var_len_expand.h index 364a65fe0d..b6317d6424 100644 --- a/src/cypher/execution_plan/ops/op_var_len_expand.h +++ b/src/cypher/execution_plan/ops/op_var_len_expand.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 18-8-30. diff --git a/src/cypher/execution_plan/ops/op_var_len_expand_into.cpp b/src/cypher/execution_plan/ops/op_var_len_expand_into.cpp index feb7f51ba1..c2b785bcfa 100644 --- a/src/cypher/execution_plan/ops/op_var_len_expand_into.cpp +++ b/src/cypher/execution_plan/ops/op_var_len_expand_into.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 21-7-2. diff --git a/src/cypher/execution_plan/ops/op_var_len_expand_into.h b/src/cypher/execution_plan/ops/op_var_len_expand_into.h index 8328135c62..12e0699bd6 100644 --- a/src/cypher/execution_plan/ops/op_var_len_expand_into.h +++ b/src/cypher/execution_plan/ops/op_var_len_expand_into.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 21-7-2. diff --git a/src/cypher/execution_plan/ops/ops.h b/src/cypher/execution_plan/ops/ops.h index 4fee97a4be..0835783af0 100644 --- a/src/cypher/execution_plan/ops/ops.h +++ b/src/cypher/execution_plan/ops/ops.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 6/14/18. @@ -38,3 +50,4 @@ #include "op_topn.h" #include "op_union.h" #include "op_node_by_id_seek.h" +#include "op_traversal.h" diff --git a/src/cypher/execution_plan/optimization/edge_filter_pushdown_expand.h b/src/cypher/execution_plan/optimization/edge_filter_pushdown_expand.h index c77ac22841..1c4aee16b1 100644 --- a/src/cypher/execution_plan/optimization/edge_filter_pushdown_expand.h +++ b/src/cypher/execution_plan/optimization/edge_filter_pushdown_expand.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ /* * Created on 7/14/21 diff --git a/src/cypher/execution_plan/optimization/lazy_project_topn.h b/src/cypher/execution_plan/optimization/lazy_project_topn.h index 57ce634289..8ad144fb67 100644 --- a/src/cypher/execution_plan/optimization/lazy_project_topn.h +++ b/src/cypher/execution_plan/optimization/lazy_project_topn.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ /* * Created on 6/23/21 diff --git a/src/cypher/execution_plan/optimization/locate_node_by_indexed_prop.h b/src/cypher/execution_plan/optimization/locate_node_by_indexed_prop.h index 7ede710ba4..9350d15aa6 100644 --- a/src/cypher/execution_plan/optimization/locate_node_by_indexed_prop.h +++ b/src/cypher/execution_plan/optimization/locate_node_by_indexed_prop.h @@ -65,20 +65,20 @@ class LocateNodeByIndexedProp : public OptPass { return false; } auto range_filter = std::dynamic_pointer_cast(filter); - if (range_filter->_ae_left.type == ArithExprNode::AR_EXP_OPERAND && - range_filter->_ae_left.operand.type == ArithOperandNode::AR_OPERAND_VARIADIC && - !range_filter->_ae_left.operand.variadic.entity_prop.empty() && - range_filter->_compare_op == lgraph::LBR_EQ && - range_filter->_ae_right.operand.type == ArithOperandNode::AR_OPERAND_CONSTANT) { + if (range_filter->GetAeLeft().type == ArithExprNode::AR_EXP_OPERAND && + range_filter->GetAeLeft().operand.type == ArithOperandNode::AR_OPERAND_VARIADIC && + !range_filter->GetAeLeft().operand.variadic.entity_prop.empty() && + range_filter->GetCompareOp() == lgraph::LBR_EQ && + range_filter->GetAeRight().operand.type == ArithOperandNode::AR_OPERAND_CONSTANT) { if (field.empty()) { //右值可能会不是constant? 如果是para类型?需要处理嘛? - field = range_filter->_ae_left.operand.variadic.entity_prop; + field = range_filter->GetAeLeft().operand.variadic.entity_prop; } - if (field != range_filter->_ae_left.operand.variadic.entity_prop) { + if (field != range_filter->GetAeLeft().operand.variadic.entity_prop) { return false; } //这里默认是scalar,数组情况后续处理 - value = range_filter->_ae_right.operand.constant.scalar; + value = range_filter->GetAeRight().operand.constant.scalar; return true; } return false; diff --git a/src/cypher/execution_plan/optimization/locate_node_by_vid.h b/src/cypher/execution_plan/optimization/locate_node_by_vid.h index c62e3db2b2..d8ebcd9131 100644 --- a/src/cypher/execution_plan/optimization/locate_node_by_vid.h +++ b/src/cypher/execution_plan/optimization/locate_node_by_vid.h @@ -59,13 +59,13 @@ class LocateNodeByVid : public OptPass { return -1; } auto range_filter = std::dynamic_pointer_cast(filter); - if (range_filter->_ae_left.type == ArithExprNode::AR_EXP_OP && - range_filter->_ae_left.op.func_name == "id" && - range_filter->_compare_op == lgraph::LBR_EQ) { - if (!range_filter->_ae_right.operand.constant.IsInteger()) { + if (range_filter->GetAeLeft().type == ArithExprNode::AR_EXP_OP && + range_filter->GetAeLeft().op.func_name == "id" && + range_filter->GetCompareOp() == lgraph::LBR_EQ) { + if (!range_filter->GetAeRight().operand.constant.IsInteger()) { return -1; // TODO: 右值可能不是integer,这里用-1做flag合适嘛? }; - return range_filter->_ae_right.operand.constant.scalar.integer(); + return range_filter->GetAeRight().operand.constant.scalar.integer(); } return -1; } diff --git a/src/cypher/execution_plan/optimization/opt_pass.h b/src/cypher/execution_plan/optimization/opt_pass.h index e1d08b372a..25b47e23c9 100644 --- a/src/cypher/execution_plan/optimization/opt_pass.h +++ b/src/cypher/execution_plan/optimization/opt_pass.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 19-11-27. diff --git a/src/cypher/execution_plan/optimization/parallel_traversal.h b/src/cypher/execution_plan/optimization/parallel_traversal.h new file mode 100644 index 0000000000..cf129ebe60 --- /dev/null +++ b/src/cypher/execution_plan/optimization/parallel_traversal.h @@ -0,0 +1,133 @@ +/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ + +/* + * Created by ljr on 7/26/22 + */ +#pragma once + +#include "opt_pass.h" + +namespace cypher { +/* + * Traversal: + * MATCH (f:Film)<-[:ACTED_IN]-(p:Person)-[:BORN_IN]->(c:City) return c.name, count(f) as sum order by sum desc + * MATCH (n)-[hascreator:postHasCreator]->(m) WHERE hascreator.creationDate < 20111217 RETURN n; + * + * Plan before optimization: + * Produce Results + * Sort [{<1>: 1:0}] + * Aggregate [c.name, sum] + * Expand(All) + * Expand(All) + * Node By Label Scan [f:Film] + * + * Plan after optimization: + * Produce Results + * Sort [{<1>: 1:0}] + * Traversal + */ +class ParallelTraversal : public OptPass { + bool _JudgeRangeFilter(std::shared_ptr filter) { + if ((filter->Type() == lgraph::Filter::RANGE_FILTER && filter->LogicalOp() == lgraph::LBR_EMPTY)) { + return true; + } + if (filter->Left() && filter->Right()) { + return _JudgeRangeFilter(filter->Left()) && _JudgeRangeFilter(filter->Right()); + } else if (filter->Left()) { + return _JudgeRangeFilter(filter->Left()); + } else if (filter->Right()) { + return _JudgeRangeFilter(filter->Right()); + } + return false; + } + + bool _AdjustTraversal(ExecutionPlan &plan) { + // 遍历查询计划,判断是否满足变换traversal条件 + OpBase *leaf_op = plan.Root(); + while (!leaf_op->children.empty() && leaf_op->type != OpType::AGGREGATE) { + // 由于txn_.Abort(),无法传递以及处理其他需要txn的op + if (leaf_op->children.size() > 1 || + (leaf_op->type != OpType::PRODUCE_RESULTS && leaf_op->type != OpType::SORT)) { return false; } + leaf_op = leaf_op->children[0]; + } + if (leaf_op->type != OpType::AGGREGATE) { return false; } + + Aggregate *aggregate = dynamic_cast(leaf_op); + // 目前仅处理单个聚合函数,且key的数量为0或1 + if (aggregate->GetAggregatedExpressions().size() != 1 + || aggregate->GetNoneAggregatedExpressions().size() > 1) { return false; } + + std::string start_alias; + std::string end_alias; + std::string start_label; + std::vector> expands; // has_filter暂时不用 + while (!leaf_op->children.empty()) { + if (leaf_op->children.size() > 1) { return false; } + leaf_op = leaf_op->children[0]; + if (leaf_op->type == OpType::EXPAND_ALL) { + // 目前暂不考虑对expand进行filter + if (leaf_op->parent->type == OpType::FILTER) { return false; } + if (end_alias.empty()) { + end_alias = dynamic_cast(leaf_op)->neighbor_->Alias(); + } + ExpandAll *expand = dynamic_cast(leaf_op); + expands.insert(expands.begin(), std::make_tuple(expand->start_, expand->neighbor_, expand->relp_, expand->expand_direction_, false)); + } + } + std::shared_ptr filter; + if (leaf_op->type == OpType::NODE_BY_LABEL_SCAN) { + start_alias = dynamic_cast(leaf_op)->GetNode()->Alias(); + start_label = dynamic_cast(leaf_op)->GetLabel(); + if (expands.empty()) { + end_alias = start_alias; + } + if (leaf_op->parent->type == OpType::FILTER) { + OpFilter* op_filter = dynamic_cast(leaf_op->parent); + filter = op_filter->Filter(); + // 目前只处理RANGE_FILTER,可嵌套 + if (!_JudgeRangeFilter(filter)) { return false; } + } + } else { + return false; // plan最后节点必须为node_by_label_scan + } + if (start_alias.empty() || end_alias.empty()) { return false; } + + ArithExprNode agg_expr; + ArithExprNode noneagg_expr; + if (aggregate->GetNoneAggregatedExpressions().size() == 1) { // 有key + agg_expr = aggregate->GetAggregatedExpressions()[0]; + noneagg_expr = aggregate->GetNoneAggregatedExpressions()[0]; + if (noneagg_expr.operand.variadic.alias != end_alias || agg_expr.op.func_name != "count" + || agg_expr.op.children[1].operand.variadic.alias != start_alias) { // 判断是否为头+尾+count + return false; + } + } else { // 无key + agg_expr = aggregate->GetAggregatedExpressions()[0]; + if (agg_expr.op.func_name != "count" || agg_expr.op.children[1].operand.variadic.alias != start_alias) { + return false; + } + } + Traversal *traversal_op = new Traversal(start_label, start_alias, aggregate->GetResultSetHeader(), + agg_expr, noneagg_expr, expands); + if (filter) { + traversal_op->SetFilter(filter); + } + auto agg_p = aggregate->parent; + agg_p->RemoveChild(aggregate); + OpBase::FreeStream(aggregate); + agg_p->AddChild(traversal_op); + return true; + } + + public: + ParallelTraversal() : OptPass(typeid(ParallelTraversal).name()) {} + + bool Gate() override { return true; } + + int Execute(ExecutionPlan *plan) override { + _AdjustTraversal(*plan); + return 0; + } +}; +} // namespace cypher diff --git a/src/cypher/execution_plan/optimization/pass_manager.h b/src/cypher/execution_plan/optimization/pass_manager.h index fdbc37c147..d15b107928 100644 --- a/src/cypher/execution_plan/optimization/pass_manager.h +++ b/src/cypher/execution_plan/optimization/pass_manager.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 19-11-27. @@ -11,6 +23,7 @@ #include "var_len_expand_with_limit.h" #include "locate_node_by_vid.h" #include "locate_node_by_indexed_prop.h" +#include "parallel_traversal.h" namespace cypher { @@ -26,6 +39,7 @@ class PassManager { all_passes_.emplace_back(new PassVarLenExpandWithLimit()); all_passes_.emplace_back(new LocateNodeByVid()); all_passes_.emplace_back(new LocateNodeByIndexedProp()); + all_passes_.emplace_back(new ParallelTraversal()); } ~PassManager() { diff --git a/src/cypher/execution_plan/optimization/reduce_count.h b/src/cypher/execution_plan/optimization/reduce_count.h index 85f0eb258a..fd33449f07 100644 --- a/src/cypher/execution_plan/optimization/reduce_count.h +++ b/src/cypher/execution_plan/optimization/reduce_count.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 19-11-27. diff --git a/src/cypher/execution_plan/optimization/var_len_expand_with_limit.h b/src/cypher/execution_plan/optimization/var_len_expand_with_limit.h index 662a7e5a18..01dc1c3ef7 100644 --- a/src/cypher/execution_plan/optimization/var_len_expand_with_limit.h +++ b/src/cypher/execution_plan/optimization/var_len_expand_with_limit.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 21-07-01. diff --git a/src/cypher/execution_plan/runtime_context.h b/src/cypher/execution_plan/runtime_context.h index a5bd793530..d71610f7dd 100644 --- a/src/cypher/execution_plan/runtime_context.h +++ b/src/cypher/execution_plan/runtime_context.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 18-10-31. diff --git a/src/cypher/execution_plan/scheduler.cpp b/src/cypher/execution_plan/scheduler.cpp index 7e28f65352..01d27e4578 100644 --- a/src/cypher/execution_plan/scheduler.cpp +++ b/src/cypher/execution_plan/scheduler.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 18-8-14. diff --git a/src/cypher/execution_plan/scheduler.h b/src/cypher/execution_plan/scheduler.h index bba2d08039..82e235b508 100644 --- a/src/cypher/execution_plan/scheduler.h +++ b/src/cypher/execution_plan/scheduler.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 18-8-14. diff --git a/src/cypher/execution_plan/validation/check_graph.h b/src/cypher/execution_plan/validation/check_graph.h index 7056bd4ea8..3cdf225d31 100644 --- a/src/cypher/execution_plan/validation/check_graph.h +++ b/src/cypher/execution_plan/validation/check_graph.h @@ -53,6 +53,7 @@ class CheckGraphVisitor : public Visitor { void Visit(const VarLenExpand &op) override {}; void Visit(const VarLenExpandInto &op) override {}; void Visit(const ImmediateArgument &op) override {}; + void Visit(const Traversal &op) override {}; private: cypher::RTContext* ctx_ = nullptr; diff --git a/src/cypher/execution_plan/visitor/visitor.h b/src/cypher/execution_plan/visitor/visitor.h index 84c5bb3f6b..184e3caa06 100644 --- a/src/cypher/execution_plan/visitor/visitor.h +++ b/src/cypher/execution_plan/visitor/visitor.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once @@ -37,6 +49,7 @@ class Union; class Unwind; class VarLenExpand; class VarLenExpandInto; +class Traversal; // nested op class ImmediateArgument; } // namespace cypher @@ -81,6 +94,7 @@ class Visitor { virtual void Visit(const Unwind &op) = 0; virtual void Visit(const VarLenExpand &op) = 0; virtual void Visit(const VarLenExpandInto &op) = 0; + virtual void Visit(const Traversal &op) = 0; // nested op virtual void Visit(const ImmediateArgument &op) = 0; }; diff --git a/src/cypher/filter/filter.cpp b/src/cypher/filter/filter.cpp index cde9b940fb..72a2c9321c 100644 --- a/src/cypher/filter/filter.cpp +++ b/src/cypher/filter/filter.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 6/29/18. diff --git a/src/cypher/filter/filter.h b/src/cypher/filter/filter.h index a060575c13..cd4dd46aeb 100644 --- a/src/cypher/filter/filter.h +++ b/src/cypher/filter/filter.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 6/29/18. @@ -333,9 +345,6 @@ class RangeFilter : public Filter { cypher::ArithExprNode _ae_left; // can be: n, n.name, id(n), etc. cypher::ArithExprNode _ae_right; // value to compare against - friend class cypher::LocateNodeByVid; - friend class cypher::LocateNodeByIndexedProp; - public: RangeFilter() { _type = RANGE_FILTER; } @@ -419,6 +428,16 @@ class RangeFilter : public Filter { } } + lgraph::CompareOp GetCompareOp() { + return _compare_op; + } + cypher::ArithExprNode GetAeLeft() { + return _ae_left; + } + cypher::ArithExprNode GetAeRight() { + return _ae_right; + } + static std::map _compare_name; const std::string ToString() const override { diff --git a/src/cypher/filter/iterator.cpp b/src/cypher/filter/iterator.cpp index a3c32b78fe..7df49ae125 100644 --- a/src/cypher/filter/iterator.cpp +++ b/src/cypher/filter/iterator.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 6/15/18. diff --git a/src/cypher/filter/iterator.h b/src/cypher/filter/iterator.h index 3dc6757c07..511f041c07 100644 --- a/src/cypher/filter/iterator.h +++ b/src/cypher/filter/iterator.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 6/15/18. diff --git a/src/cypher/graph/common.h b/src/cypher/graph/common.h index 5e087b39cc..fe573db42d 100644 --- a/src/cypher/graph/common.h +++ b/src/cypher/graph/common.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 6/12/18. diff --git a/src/cypher/graph/graph.cpp b/src/cypher/graph/graph.cpp index f69d929a3e..21392bc73c 100644 --- a/src/cypher/graph/graph.cpp +++ b/src/cypher/graph/graph.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 6/12/18. diff --git a/src/cypher/graph/graph.h b/src/cypher/graph/graph.h index 5284577332..488eda59ff 100644 --- a/src/cypher/graph/graph.h +++ b/src/cypher/graph/graph.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 6/12/18. diff --git a/src/cypher/graph/node.cpp b/src/cypher/graph/node.cpp index d32066c799..a8c79af0f5 100644 --- a/src/cypher/graph/node.cpp +++ b/src/cypher/graph/node.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 6/12/18. diff --git a/src/cypher/graph/node.h b/src/cypher/graph/node.h index 0c76cfd208..d3227a836c 100644 --- a/src/cypher/graph/node.h +++ b/src/cypher/graph/node.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 6/12/18. diff --git a/src/cypher/graph/relationship.cpp b/src/cypher/graph/relationship.cpp index 484591c093..4d7f8cd25d 100644 --- a/src/cypher/graph/relationship.cpp +++ b/src/cypher/graph/relationship.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 6/12/18. diff --git a/src/cypher/graph/relationship.h b/src/cypher/graph/relationship.h index 1f0a0a3d15..b6bca005a3 100644 --- a/src/cypher/graph/relationship.h +++ b/src/cypher/graph/relationship.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 6/12/18. diff --git a/src/cypher/grouping/group.cpp b/src/cypher/grouping/group.cpp index 4758554bf2..6ec283401f 100644 --- a/src/cypher/grouping/group.cpp +++ b/src/cypher/grouping/group.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 19-2-15. diff --git a/src/cypher/grouping/group.h b/src/cypher/grouping/group.h index f676623887..56429c2bce 100644 --- a/src/cypher/grouping/group.h +++ b/src/cypher/grouping/group.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 19-2-15. diff --git a/src/cypher/monitor/memory_monitor_allocator.h b/src/cypher/monitor/memory_monitor_allocator.h index adceec7736..a101bedc3f 100644 --- a/src/cypher/monitor/memory_monitor_allocator.h +++ b/src/cypher/monitor/memory_monitor_allocator.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once #include "monitor_manager.h" diff --git a/src/cypher/monitor/monitor_manager.cpp b/src/cypher/monitor/monitor_manager.cpp index 7e4a3d84a7..b137f06e20 100644 --- a/src/cypher/monitor/monitor_manager.cpp +++ b/src/cypher/monitor/monitor_manager.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "monitor_manager.h" diff --git a/src/cypher/monitor/monitor_manager.h b/src/cypher/monitor/monitor_manager.h index e57bc97fc3..acf36abec7 100644 --- a/src/cypher/monitor/monitor_manager.h +++ b/src/cypher/monitor/monitor_manager.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/cypher/parser/clause.h b/src/cypher/parser/clause.h index 44237b0c52..8a5befbea2 100644 --- a/src/cypher/parser/clause.h +++ b/src/cypher/parser/clause.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/cypher/parser/cypher_base_visitor.cpp b/src/cypher/parser/cypher_base_visitor.cpp index 471a527b0c..78128d3f5e 100644 --- a/src/cypher/parser/cypher_base_visitor.cpp +++ b/src/cypher/parser/cypher_base_visitor.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "cypher_base_visitor.h" using namespace parser; diff --git a/src/cypher/parser/cypher_base_visitor.h b/src/cypher/parser/cypher_base_visitor.h index 6b4f3e99af..9127ba1f29 100644 --- a/src/cypher/parser/cypher_base_visitor.h +++ b/src/cypher/parser/cypher_base_visitor.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // Generated from Lcypher.g4 by ANTLR 4.9.2 diff --git a/src/cypher/parser/cypher_error_listener.cpp b/src/cypher/parser/cypher_error_listener.cpp index 3bf9bb78c6..00b06ebd73 100644 --- a/src/cypher/parser/cypher_error_listener.cpp +++ b/src/cypher/parser/cypher_error_listener.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "parser/cypher_error_listener.h" #include "cypher_exception.h" diff --git a/src/cypher/parser/cypher_error_listener.h b/src/cypher/parser/cypher_error_listener.h index d619c85b47..ac83ad2207 100644 --- a/src/cypher/parser/cypher_error_listener.h +++ b/src/cypher/parser/cypher_error_listener.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/cypher/parser/data_typedef.h b/src/cypher/parser/data_typedef.h index c24ad96d52..a1b84dab54 100644 --- a/src/cypher/parser/data_typedef.h +++ b/src/cypher/parser/data_typedef.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 18-10-31. diff --git a/src/cypher/parser/expression.h b/src/cypher/parser/expression.h index bf085b4a39..ce779df98c 100644 --- a/src/cypher/parser/expression.h +++ b/src/cypher/parser/expression.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/cypher/parser/symbol_table.cpp b/src/cypher/parser/symbol_table.cpp index 9a83efd1dd..443e430f7c 100644 --- a/src/cypher/parser/symbol_table.cpp +++ b/src/cypher/parser/symbol_table.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 2019/12/31. diff --git a/src/cypher/parser/symbol_table.h b/src/cypher/parser/symbol_table.h index 7cbb16303e..9266b70b26 100644 --- a/src/cypher/parser/symbol_table.h +++ b/src/cypher/parser/symbol_table.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 19-2-25. diff --git a/src/cypher/procedure/procedure.cpp b/src/cypher/procedure/procedure.cpp index 7e7a393344..190521407b 100644 --- a/src/cypher/procedure/procedure.cpp +++ b/src/cypher/procedure/procedure.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 19-1-10. diff --git a/src/cypher/procedure/procedure.h b/src/cypher/procedure/procedure.h index eac981b5fa..8dcf0128e2 100644 --- a/src/cypher/procedure/procedure.h +++ b/src/cypher/procedure/procedure.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 19-1-10. diff --git a/src/cypher/procedure/utils.h b/src/cypher/procedure/utils.h index 37ebc7807c..f8b59baab5 100644 --- a/src/cypher/procedure/utils.h +++ b/src/cypher/procedure/utils.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 2020/3/20. diff --git a/src/cypher/resultset/record.cpp b/src/cypher/resultset/record.cpp index ebc51ac5b2..42bfd7a63f 100644 --- a/src/cypher/resultset/record.cpp +++ b/src/cypher/resultset/record.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "record.h" diff --git a/src/cypher/resultset/record.h b/src/cypher/resultset/record.h index e65685f5fd..7879e87236 100644 --- a/src/cypher/resultset/record.h +++ b/src/cypher/resultset/record.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 6/14/18. diff --git a/src/cypher/resultset/result_info.h b/src/cypher/resultset/result_info.h index ade9ffbdb9..8b8df5f40d 100644 --- a/src/cypher/resultset/result_info.h +++ b/src/cypher/resultset/result_info.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 6/12/18. diff --git a/src/cypher/resultset/resultset_statistics.h b/src/cypher/resultset/resultset_statistics.h index 839bdbf8bd..4c09d672b6 100644 --- a/src/cypher/resultset/resultset_statistics.h +++ b/src/cypher/resultset/resultset_statistics.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by wt on 2019/12/12. diff --git a/src/db/acl.cpp b/src/db/acl.cpp index 1326bd1983..9f60ffd4ae 100644 --- a/src/db/acl.cpp +++ b/src/db/acl.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/binary_buffer.h" #include "fma-common/binary_read_write_helper.h" diff --git a/src/db/acl.h b/src/db/acl.h index e433a59600..2bbc7edc5e 100644 --- a/src/db/acl.h +++ b/src/db/acl.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/db/db.cpp b/src/db/db.cpp index 1cffb9f825..0d53c127ef 100644 --- a/src/db/db.cpp +++ b/src/db/db.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "db/db.h" diff --git a/src/db/db.h b/src/db/db.h index d4a43caefb..67d573767b 100644 --- a/src/db/db.h +++ b/src/db/db.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once #include diff --git a/src/db/galaxy.cpp b/src/db/galaxy.cpp index 6fee859328..186ad5d413 100644 --- a/src/db/galaxy.cpp +++ b/src/db/galaxy.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "core/audit_logger.h" #include "core/defs.h" diff --git a/src/db/galaxy.h b/src/db/galaxy.h index 2d0d89414e..8b124f92c7 100644 --- a/src/db/galaxy.h +++ b/src/db/galaxy.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ /** * Declares the Galaxy, which manages the graphs and users. diff --git a/src/db/graph_manager.cpp b/src/db/graph_manager.cpp index 2385098780..7d6a06a6b6 100644 --- a/src/db/graph_manager.cpp +++ b/src/db/graph_manager.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include diff --git a/src/db/graph_manager.h b/src/db/graph_manager.h index fa1cdefd40..6cf06107e2 100644 --- a/src/db/graph_manager.h +++ b/src/db/graph_manager.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/db/token_manager.cpp b/src/db/token_manager.cpp index b0ea320934..31f7cae666 100644 --- a/src/db/token_manager.cpp +++ b/src/db/token_manager.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "jwt-cpp/jwt.h" diff --git a/src/db/token_manager.h b/src/db/token_manager.h index 25140af511..95c98980d3 100644 --- a/src/db/token_manager.h +++ b/src/db/token_manager.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/import/column_parser.h b/src/import/column_parser.h index cac84383d3..0b4a35e06e 100644 --- a/src/import/column_parser.h +++ b/src/import/column_parser.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/import/dense_string.h b/src/import/dense_string.h index da35f055c3..0904be2475 100644 --- a/src/import/dense_string.h +++ b/src/import/dense_string.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/import/file_cutter.h b/src/import/file_cutter.h index a5659da77b..2e829ea76e 100644 --- a/src/import/file_cutter.h +++ b/src/import/file_cutter.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/import/import_client.cpp b/src/import/import_client.cpp index 30df14e0ab..eb9ad862e5 100644 --- a/src/import/import_client.cpp +++ b/src/import/import_client.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "import/import_client.h" #include "import/file_cutter.h" diff --git a/src/import/import_client.h b/src/import/import_client.h index c6c3fcb61b..130cf3226d 100644 --- a/src/import/import_client.h +++ b/src/import/import_client.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/import/import_config_parser.h b/src/import/import_config_parser.h index 7023e873e5..1045c50f81 100644 --- a/src/import/import_config_parser.h +++ b/src/import/import_config_parser.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/import/import_data_file.h b/src/import/import_data_file.h index 4ad01b3840..df2820faf1 100644 --- a/src/import/import_data_file.h +++ b/src/import/import_data_file.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/import/import_exception.h b/src/import/import_exception.h index d2ca701185..9c17915b38 100644 --- a/src/import/import_exception.h +++ b/src/import/import_exception.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/import/import_online.cpp b/src/import/import_online.cpp index e42caaf96b..2b4dd1511a 100644 --- a/src/import/import_online.cpp +++ b/src/import/import_online.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "core/lightning_graph.h" #include "import/import_online.h" diff --git a/src/import/import_online.h b/src/import/import_online.h index ce2f9068f0..7658f6f8d2 100644 --- a/src/import/import_online.h +++ b/src/import/import_online.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/import/import_planner.h b/src/import/import_planner.h index b2e73b2de0..9f5d2acb84 100644 --- a/src/import/import_planner.h +++ b/src/import/import_planner.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/import/import_v2.cpp b/src/import/import_v2.cpp index a02bab78df..7f09b11ff9 100644 --- a/src/import/import_v2.cpp +++ b/src/import/import_v2.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "core/defs.h" #include "db/db.h" diff --git a/src/import/import_v2.h b/src/import/import_v2.h index 99000bf316..bb3ad8769f 100644 --- a/src/import/import_v2.h +++ b/src/import/import_v2.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/import/parse_delimiter.h b/src/import/parse_delimiter.h index b0b89f15aa..11a8ccad88 100644 --- a/src/import/parse_delimiter.h +++ b/src/import/parse_delimiter.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/import/vid_table.h b/src/import/vid_table.h index c5042717da..9df28f691a 100644 --- a/src/import/vid_table.h +++ b/src/import/vid_table.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/lgraph_api/lgraph_db.cpp b/src/lgraph_api/lgraph_db.cpp index a7773143e0..316bf5508c 100644 --- a/src/lgraph_api/lgraph_db.cpp +++ b/src/lgraph_api/lgraph_db.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "core/lightning_graph.h" #include "core/task_tracker.h" diff --git a/src/lgraph_api/lgraph_edge_index_iterator.cpp b/src/lgraph_api/lgraph_edge_index_iterator.cpp index 9126988f76..7830b9eb12 100644 --- a/src/lgraph_api/lgraph_edge_index_iterator.cpp +++ b/src/lgraph_api/lgraph_edge_index_iterator.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "core/kv_store.h" #include "core/transaction.h" diff --git a/src/lgraph_api/lgraph_edge_iterator.cpp b/src/lgraph_api/lgraph_edge_iterator.cpp index 1fc52d27db..6d6740547a 100644 --- a/src/lgraph_api/lgraph_edge_iterator.cpp +++ b/src/lgraph_api/lgraph_edge_iterator.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "core/graph_edge_iterator.h" #include "core/kv_store.h" diff --git a/src/lgraph_api/lgraph_galaxy.cpp b/src/lgraph_api/lgraph_galaxy.cpp index d255569fdd..b19a7ef1cf 100644 --- a/src/lgraph_api/lgraph_galaxy.cpp +++ b/src/lgraph_api/lgraph_galaxy.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "db/db.h" #include "db/galaxy.h" diff --git a/src/lgraph_api/lgraph_result.cpp b/src/lgraph_api/lgraph_result.cpp index cc327b00ec..7b36a83429 100644 --- a/src/lgraph_api/lgraph_result.cpp +++ b/src/lgraph_api/lgraph_result.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/string_formatter.h" #include "lgraph/lgraph_result.h" diff --git a/src/lgraph_api/lgraph_traversal.cpp b/src/lgraph_api/lgraph_traversal.cpp index 0121a87f88..2e82a8cf59 100644 --- a/src/lgraph_api/lgraph_traversal.cpp +++ b/src/lgraph_api/lgraph_traversal.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "lgraph/lgraph_traversal.h" diff --git a/src/lgraph_api/lgraph_txn.cpp b/src/lgraph_api/lgraph_txn.cpp index f9f5e63034..0ed7db3cc0 100644 --- a/src/lgraph_api/lgraph_txn.cpp +++ b/src/lgraph_api/lgraph_txn.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "core/kv_store.h" #include "core/transaction.h" diff --git a/src/lgraph_api/lgraph_utils.cpp b/src/lgraph_api/lgraph_utils.cpp index f6878ccae9..a451ffbc1a 100644 --- a/src/lgraph_api/lgraph_utils.cpp +++ b/src/lgraph_api/lgraph_utils.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include #include diff --git a/src/lgraph_api/lgraph_vertex_index_iterator.cpp b/src/lgraph_api/lgraph_vertex_index_iterator.cpp index f38a740d2e..e36169010c 100644 --- a/src/lgraph_api/lgraph_vertex_index_iterator.cpp +++ b/src/lgraph_api/lgraph_vertex_index_iterator.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "core/kv_store.h" #include "core/transaction.h" diff --git a/src/lgraph_api/lgraph_vertex_iterator.cpp b/src/lgraph_api/lgraph_vertex_iterator.cpp index c697b066ff..ad37932bac 100644 --- a/src/lgraph_api/lgraph_vertex_iterator.cpp +++ b/src/lgraph_api/lgraph_vertex_iterator.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include diff --git a/src/lgraph_api/olap_base.cpp b/src/lgraph_api/olap_base.cpp index c4d8065894..0dbacf8146 100644 --- a/src/lgraph_api/olap_base.cpp +++ b/src/lgraph_api/olap_base.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "lgraph/olap_base.h" #include "fma-common/logger.h" diff --git a/src/lgraph_api/olap_profile.cpp b/src/lgraph_api/olap_profile.cpp index dc9bb6a0d9..5c66b2a477 100644 --- a/src/lgraph_api/olap_profile.cpp +++ b/src/lgraph_api/olap_profile.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include #include diff --git a/src/lgraph_api/result_element.cpp b/src/lgraph_api/result_element.cpp index d4b9d250d4..d1c26a0ab1 100644 --- a/src/lgraph_api/result_element.cpp +++ b/src/lgraph_api/result_element.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "lgraph_api/result_element.h" #include "lgraph/lgraph_result.h" diff --git a/src/lgraph_api/result_element.h b/src/lgraph_api/result_element.h index 3ff7ce3f56..8fbdaf6023 100644 --- a/src/lgraph_api/result_element.h +++ b/src/lgraph_api/result_element.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/monitor/prometheus_monitor.cpp b/src/monitor/prometheus_monitor.cpp index b824ab31bc..3df708b358 100644 --- a/src/monitor/prometheus_monitor.cpp +++ b/src/monitor/prometheus_monitor.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "monitor/prometheus_monitor.h" #include "prometheus/registry.h" diff --git a/src/monitor/prometheus_monitor.h b/src/monitor/prometheus_monitor.h index 88c229043e..e4c15154ca 100644 --- a/src/monitor/prometheus_monitor.h +++ b/src/monitor/prometheus_monitor.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/olap/olap_config.h b/src/olap/olap_config.h index fec6de56c9..88fe09c4d6 100644 --- a/src/olap/olap_config.h +++ b/src/olap/olap_config.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/olap/olap_io.h b/src/olap/olap_io.h index 9d34e92b05..6f94fafce3 100644 --- a/src/olap/olap_io.h +++ b/src/olap/olap_io.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/olap/olap_on_disk.h b/src/olap/olap_on_disk.h index eeeec09d9a..eee22e7696 100644 --- a/src/olap/olap_on_disk.h +++ b/src/olap/olap_on_disk.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/plugin/cpp_plugin.cpp b/src/plugin/cpp_plugin.cpp index 861c1e82fa..0890349fa8 100644 --- a/src/plugin/cpp_plugin.cpp +++ b/src/plugin/cpp_plugin.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include #include "fma-common/binary_buffer.h" diff --git a/src/plugin/cpp_plugin.h b/src/plugin/cpp_plugin.h index 9c4e781602..e8129407c1 100644 --- a/src/plugin/cpp_plugin.h +++ b/src/plugin/cpp_plugin.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/plugin/load_library.h b/src/plugin/load_library.h index b762a4927e..16b53e088e 100644 --- a/src/plugin/load_library.h +++ b/src/plugin/load_library.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/plugin/plugin_context.cpp b/src/plugin/plugin_context.cpp index 2ced39e46a..4743a78279 100644 --- a/src/plugin/plugin_context.cpp +++ b/src/plugin/plugin_context.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "plugin/plugin_context.h" diff --git a/src/plugin/plugin_context.h b/src/plugin/plugin_context.h index 147a90ce38..2f99248156 100644 --- a/src/plugin/plugin_context.h +++ b/src/plugin/plugin_context.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/plugin/plugin_desc.h b/src/plugin/plugin_desc.h index 164472a596..087b1b9d1a 100644 --- a/src/plugin/plugin_desc.h +++ b/src/plugin/plugin_desc.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/plugin/plugin_manager.cpp b/src/plugin/plugin_manager.cpp index 69aef3dd13..7d68023d68 100644 --- a/src/plugin/plugin_manager.cpp +++ b/src/plugin/plugin_manager.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "plugin/plugin_manager.h" diff --git a/src/plugin/plugin_manager.h b/src/plugin/plugin_manager.h index 2a69b500fb..88eb488ede 100644 --- a/src/plugin/plugin_manager.h +++ b/src/plugin/plugin_manager.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/plugin/plugin_manager_impl.h b/src/plugin/plugin_manager_impl.h index 79abfee78b..817bbcd6bd 100644 --- a/src/plugin/plugin_manager_impl.h +++ b/src/plugin/plugin_manager_impl.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/plugin/python_plugin.cpp b/src/plugin/python_plugin.cpp index 0383f023fc..623cce59bc 100644 --- a/src/plugin/python_plugin.cpp +++ b/src/plugin/python_plugin.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include #include diff --git a/src/plugin/python_plugin.h b/src/plugin/python_plugin.h index 54431dc2c1..401b9948c2 100644 --- a/src/plugin/python_plugin.h +++ b/src/plugin/python_plugin.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once #include diff --git a/src/python/FMA_shell/pkg/install.sh b/src/python/FMA_shell/pkg/install.sh index 7cbcf7d52d..5c45fd718f 100644 --- a/src/python/FMA_shell/pkg/install.sh +++ b/src/python/FMA_shell/pkg/install.sh @@ -1 +1 @@ -python -m pip download click==7.0 prompt_toolkit==2.0.9 prettytable==0.7.2 requests==2.22.0 +python -m pip install click==7.0 prompt_toolkit==2.0.9 prettytable==0.7.2 requests==2.22.0 diff --git a/src/python/python_api.cpp b/src/python/python_api.cpp index 5c0d8efaca..135f6145fc 100644 --- a/src/python/python_api.cpp +++ b/src/python/python_api.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #ifdef _WIN32 // Workaround for VS _DEBUG bug. diff --git a/src/restful/server/json_convert.h b/src/restful/server/json_convert.h index e6024cc8de..fc680119c6 100644 --- a/src/restful/server/json_convert.h +++ b/src/restful/server/json_convert.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/restful/server/rest_server.cpp b/src/restful/server/rest_server.cpp index faa1d493dd..e5b67f9344 100644 --- a/src/restful/server/rest_server.cpp +++ b/src/restful/server/rest_server.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include diff --git a/src/restful/server/rest_server.h b/src/restful/server/rest_server.h index 49133f952c..ce0a710a4d 100644 --- a/src/restful/server/rest_server.h +++ b/src/restful/server/rest_server.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once #include diff --git a/src/restful/server/stdafx.cpp b/src/restful/server/stdafx.cpp index 75bd24eeb8..4783a7047c 100644 --- a/src/restful/server/stdafx.cpp +++ b/src/restful/server/stdafx.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ /*** * Copyright (C) Microsoft. All rights reserved. diff --git a/src/restful/server/stdafx.h b/src/restful/server/stdafx.h index 89d4f18f3b..3b7eba03fc 100644 --- a/src/restful/server/stdafx.h +++ b/src/restful/server/stdafx.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ /*** * Copyright (C) Microsoft. All rights reserved. diff --git a/src/restful/server/test_server.cpp b/src/restful/server/test_server.cpp index 851e69c735..a52580fc9b 100644 --- a/src/restful/server/test_server.cpp +++ b/src/restful/server/test_server.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/unit_test_utils.h" diff --git a/src/server/json_convert.h b/src/server/json_convert.h index ffd6067339..604a433f18 100644 --- a/src/server/json_convert.h +++ b/src/server/json_convert.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once #include "tools/json.hpp" diff --git a/src/server/lgraph_server.cpp b/src/server/lgraph_server.cpp index 7b0910f509..2662b65c75 100644 --- a/src/server/lgraph_server.cpp +++ b/src/server/lgraph_server.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include #include @@ -138,7 +150,8 @@ void LGraphServer::AdjustConfig() { // blog_setting.logging_dest = logging::LoggingDestination::LOG_NONE; logging::InitLogging(blog_setting); logging::SetMinLogLevel(blog_level); - logging::SetLogSink(&blog_sink_); + blog_sink_.reset(new FMALogSink()); + logging::SetLogSink(blog_sink_.get()); } #endif // starting audit log diff --git a/src/server/lgraph_server.h b/src/server/lgraph_server.h index be75200e0a..b88b98ec6e 100644 --- a/src/server/lgraph_server.h +++ b/src/server/lgraph_server.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once @@ -64,7 +76,7 @@ class LGraphServer { public: bool OnLogMessage(int severity, const char *file, int line, const butil::StringPiece &log_content) override { - FMA_LOG() << "[HaStateMachine] " << log_content.as_string(); + FMA_LOG() << "[StateMachine] " << log_content.as_string(); return true; } }; @@ -77,7 +89,7 @@ class LGraphServer { #ifndef _WIN32 std::unique_ptr rpc_service_; std::unique_ptr rpc_server_; - FMALogSink blog_sink_; + std::unique_ptr blog_sink_; #endif public: // NOLINT explicit LGraphServer(std::shared_ptr config); diff --git a/src/server/proto_convert.h b/src/server/proto_convert.h index 5322d978d6..a35aef89a2 100644 --- a/src/server/proto_convert.h +++ b/src/server/proto_convert.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/server/server_main.cpp b/src/server/server_main.cpp index f3c9e8db32..6ab1eb7feb 100644 --- a/src/server/server_main.cpp +++ b/src/server/server_main.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include #include "server/lgraph_server.h" diff --git a/src/server/service.h b/src/server/service.h index 751d1ac931..be07825e39 100644 --- a/src/server/service.h +++ b/src/server/service.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/src/server/state_machine.cpp b/src/server/state_machine.cpp index 9358d4bfc2..27afdc6096 100644 --- a/src/server/state_machine.cpp +++ b/src/server/state_machine.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** +* Copyright 2022 AntGroup CO., Ltd. +* +* 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. +*/ #include diff --git a/src/server/state_machine.h b/src/server/state_machine.h index 4841fb2594..a3433d2ebe 100644 --- a/src/server/state_machine.h +++ b/src/server/state_machine.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by hct on 18-12-26. diff --git a/test/cypher_plan_validate.json b/test/cypher_plan_validate.json index a76be05704..5f0f67863d 100644 --- a/test/cypher_plan_validate.json +++ b/test/cypher_plan_validate.json @@ -45,6 +45,28 @@ "plan": "Execution Plan:\nProduce Results\n Project [id(n),label(n),properties(n)]\n All Node Scan [n]\n", "res": 21 } + ], + "parallel_traversal": [ + { + "query": "MATCH (n:Person) return count(n)", + "plan": "Execution Plan:\nProduce Results\n Traversal [n]\n", + "res": 1 + }, + { + "query": "MATCH (n:Person) where n.birthyear > 1900 and n.birthyear < 2000 return count(n) ", + "plan": "Execution Plan:\nProduce Results\n Traversal [n]\n", + "res": 1 + }, + { + "query": "MATCH (n:Person) return n.birthyear, count(n)", + "plan": "Execution Plan:\nProduce Results\n Traversal [n]\n", + "res": 13 + }, + { + "query": "MATCH (f:Film)<-[:ACTED_IN]-(p:Person)-[:BORN_IN]->(c:City) return c.name, count(f)", + "plan": "Execution Plan:\nProduce Results\n Traversal [f<--p-->c]\n", + "res": 3 + } ] } } diff --git a/test/graph_factory.h b/test/graph_factory.h index 77d9b64cc6..940ba0eaed 100644 --- a/test/graph_factory.h +++ b/test/graph_factory.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once #include diff --git a/test/graph_gen.h b/test/graph_gen.h index df22bd9b3b..5976757e8f 100644 --- a/test/graph_gen.h +++ b/test/graph_gen.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/test/integration/rpc_client/cpp/CppClientTest/client_test.cpp b/test/integration/rpc_client/cpp/CppClientTest/client_test.cpp index 58b9c35ea5..9e6d172ca1 100644 --- a/test/integration/rpc_client/cpp/CppClientTest/client_test.cpp +++ b/test/integration/rpc_client/cpp/CppClientTest/client_test.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "lgraph/lgraph_rpc_client.h" #include "tools/json.hpp" diff --git a/test/integration/rpc_client/java/JavaClientTest/pom.xml b/test/integration/rpc_client/java/JavaClientTest/pom.xml index 04258a4387..7ada526dcb 100644 --- a/test/integration/rpc_client/java/JavaClientTest/pom.xml +++ b/test/integration/rpc_client/java/JavaClientTest/pom.xml @@ -156,4 +156,11 @@ compile + + + aliyun + AliYun + https://maven.aliyun.com/repository/public + + diff --git a/test/integration/rpc_client/java/TuGraphOGMTest/local_build.sh b/test/integration/rpc_client/java/TuGraphOGMTest/local_build.sh index 4d621f3452..b667762ab3 100644 --- a/test/integration/rpc_client/java/TuGraphOGMTest/local_build.sh +++ b/test/integration/rpc_client/java/TuGraphOGMTest/local_build.sh @@ -3,12 +3,12 @@ mkdir -p rpc_client/java/TuGraphOGMTest/deps DEPSDIR=`pwd`/rpc_client/java/TuGraphOGMTest/deps echo $DEPSDIR -wget https://tugraph-web.oss-cn-beijing.aliyuncs.com/OGM/tugraph-rpc-driver-0.1.0-SNAPSHOT.jar -O ${DEPSDIR}/tugraph-rpc-driver-0.1.0-SNAPSHOT.jar -wget https://tugraph-web.oss-cn-beijing.aliyuncs.com/OGM/neo4j-ogm-core-0.1.0-SNAPSHOT.jar -O ${DEPSDIR}/neo4j-ogm-core-0.1.0-SNAPSHOT.jar -wget https://tugraph-web.oss-cn-beijing.aliyuncs.com/OGM/neo4j-ogm-api-0.1.0-SNAPSHOT.jar -O ${DEPSDIR}/neo4j-ogm-api-0.1.0-SNAPSHOT.jar +wget https://tugraph-web.oss-cn-beijing.aliyuncs.com/OGM/tugraph-rpc-driver-0.1.0.jar -O ${DEPSDIR}/tugraph-rpc-driver-0.1.0.jar +wget https://tugraph-web.oss-cn-beijing.aliyuncs.com/OGM/tugraph-ogm-core-0.1.0.jar -O ${DEPSDIR}/tugraph-ogm-core-0.1.0.jar +wget https://tugraph-web.oss-cn-beijing.aliyuncs.com/OGM/tugraph-ogm-api-0.1.0.jar -O ${DEPSDIR}/tugraph-ogm-api-0.1.0.jar -mvn install:install-file -Dfile=${DEPSDIR}/neo4j-ogm-core-0.1.0-SNAPSHOT.jar -DgroupId=org.neo4j -DartifactId=neo4j-ogm-core -Dversion=0.1.0-SNAPSHOT -Dpackaging=jar -mvn install:install-file -Dfile=${DEPSDIR}/tugraph-rpc-driver-0.1.0-SNAPSHOT.jar -DgroupId=org.neo4j -DartifactId=tugraph-rpc-driver -Dversion=0.1.0-SNAPSHOT -Dpackaging=jar -mvn install:install-file -Dfile=${DEPSDIR}/neo4j-ogm-api-0.1.0-SNAPSHOT.jar -DgroupId=org.neo4j -DartifactId=neo4j-ogm-api -Dversion=0.1.0-SNAPSHOT -Dpackaging=jar +mvn install:install-file -Dfile=${DEPSDIR}/tugraph-ogm-core-0.1.0.jar -DgroupId=com.antgroup.tugraph -DartifactId=tugraph-ogm-core -Dversion=0.1.0 -Dpackaging=jar +mvn install:install-file -Dfile=${DEPSDIR}/tugraph-rpc-driver-0.1.0.jar -DgroupId=com.antgroup.tugraph -DartifactId=tugraph-rpc-driver -Dversion=0.1.0 -Dpackaging=jar +mvn install:install-file -Dfile=${DEPSDIR}/tugraph-ogm-api-0.1.0.jar -DgroupId=com.antgroup.tugraph -DartifactId=tugraph-ogm-api -Dversion=0.1.0 -Dpackaging=jar mvn clean -f rpc_client/java/TuGraphOGMTest/pom.xml install diff --git a/test/integration/rpc_client/java/TuGraphOGMTest/pom.xml b/test/integration/rpc_client/java/TuGraphOGMTest/pom.xml index 44b3365902..99d0d2fbe1 100644 --- a/test/integration/rpc_client/java/TuGraphOGMTest/pom.xml +++ b/test/integration/rpc_client/java/TuGraphOGMTest/pom.xml @@ -6,7 +6,7 @@ org.example TuGpraphOgmTest - 1.0-SNAPSHOT + 1.0 1.8 @@ -15,21 +15,21 @@ - org.neo4j - neo4j-ogm-api - 0.1.0-SNAPSHOT + com.antgroup.tugraph + tugraph-ogm-api + 0.1.0 - org.neo4j - neo4j-ogm-core - 0.1.0-SNAPSHOT + com.antgroup.tugraph + tugraph-ogm-core + 0.1.0 - org.neo4j + com.antgroup.tugraph tugraph-rpc-driver - 0.1.0-SNAPSHOT + 0.1.0 @@ -90,4 +90,11 @@ + + + aliyun + AliYun + https://maven.aliyun.com/repository/public + + diff --git a/test/integration/rpc_client/java/TuGraphOGMTest/src/main/java/entity/Actor.java b/test/integration/rpc_client/java/TuGraphOGMTest/src/main/java/entity/Actor.java index 09408bce7c..e7748bcc81 100644 --- a/test/integration/rpc_client/java/TuGraphOGMTest/src/main/java/entity/Actor.java +++ b/test/integration/rpc_client/java/TuGraphOGMTest/src/main/java/entity/Actor.java @@ -2,9 +2,9 @@ import java.util.HashSet; import java.util.Set; -import org.neo4j.ogm.annotation.Id; -import org.neo4j.ogm.annotation.NodeEntity; -import org.neo4j.ogm.annotation.Relationship; +import com.antgroup.tugraph.ogm.annotation.Id; +import com.antgroup.tugraph.ogm.annotation.NodeEntity; +import com.antgroup.tugraph.ogm.annotation.Relationship; @NodeEntity public class Actor { diff --git a/test/integration/rpc_client/java/TuGraphOGMTest/src/main/java/entity/Movie.java b/test/integration/rpc_client/java/TuGraphOGMTest/src/main/java/entity/Movie.java index 06126ddb83..3bbddd4fc6 100644 --- a/test/integration/rpc_client/java/TuGraphOGMTest/src/main/java/entity/Movie.java +++ b/test/integration/rpc_client/java/TuGraphOGMTest/src/main/java/entity/Movie.java @@ -2,9 +2,9 @@ import java.util.HashSet; import java.util.Set; -import org.neo4j.ogm.annotation.Id; -import org.neo4j.ogm.annotation.NodeEntity; -import org.neo4j.ogm.annotation.Relationship; +import com.antgroup.tugraph.ogm.annotation.Id; +import com.antgroup.tugraph.ogm.annotation.NodeEntity; +import com.antgroup.tugraph.ogm.annotation.Relationship; @NodeEntity public class Movie { @@ -54,4 +54,4 @@ public void setActors(Set actors) { this.actors = actors; } -} \ No newline at end of file +} diff --git a/test/integration/rpc_client/java/TuGraphOGMTest/src/main/java/test/Client.java b/test/integration/rpc_client/java/TuGraphOGMTest/src/main/java/test/Client.java index abd7dd9dfc..5a6a8445e8 100644 --- a/test/integration/rpc_client/java/TuGraphOGMTest/src/main/java/test/Client.java +++ b/test/integration/rpc_client/java/TuGraphOGMTest/src/main/java/test/Client.java @@ -1,8 +1,8 @@ package test; -import org.neo4j.ogm.config.Configuration; -import org.neo4j.ogm.driver.Driver; -import org.neo4j.ogm.drivers.rpc.driver.RpcDriver; +import com.antgroup.tugraph.ogm.config.Configuration; +import com.antgroup.tugraph.ogm.driver.Driver; +import com.antgroup.tugraph.ogm.drivers.rpc.driver.RpcDriver; public class Client { private static Configuration.Builder baseConfigurationBuilder; diff --git a/test/integration/rpc_client/java/TuGraphOGMTest/src/main/java/test/TestBase.java b/test/integration/rpc_client/java/TuGraphOGMTest/src/main/java/test/TestBase.java index 57b8364ec7..1f223e4166 100644 --- a/test/integration/rpc_client/java/TuGraphOGMTest/src/main/java/test/TestBase.java +++ b/test/integration/rpc_client/java/TuGraphOGMTest/src/main/java/test/TestBase.java @@ -3,12 +3,12 @@ import com.alibaba.fastjson.JSONObject; import entity.Actor; import entity.Movie; -import org.neo4j.ogm.cypher.ComparisonOperator; -import org.neo4j.ogm.model.QueryStatistics; -import org.neo4j.ogm.model.Result; -import org.neo4j.ogm.session.Session; -import org.neo4j.ogm.session.SessionFactory; -import org.neo4j.ogm.cypher.Filter; +import com.antgroup.tugraph.ogm.cypher.ComparisonOperator; +import com.antgroup.tugraph.ogm.model.QueryStatistics; +import com.antgroup.tugraph.ogm.model.Result; +import com.antgroup.tugraph.ogm.session.Session; +import com.antgroup.tugraph.ogm.session.SessionFactory; +import com.antgroup.tugraph.ogm.cypher.Filter; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -26,7 +26,7 @@ public class TestBase extends Client{ public static void main(String[] args) { if (args.length != 3) { - log.info("java -jar target/TuGpraphOgmTest-1.0-SNAPSHOT.jar [host:port] [user] [password]"); + log.info("java -jar target/TuGraphOGMTest-0.1.0.jar [host:port] [user] [password]"); return; } sessionFactory = new SessionFactory(getDriver(args), "entity"); diff --git a/test/integration/test_issues.py b/test/integration/test_issues.py index f6a9c20f2b..4ad4a5a038 100644 --- a/test/integration/test_issues.py +++ b/test/integration/test_issues.py @@ -275,4 +275,17 @@ def test_issues_59_6(self, file_build_1, importor, server, client): ret = client.callCypher("match (n)-[r]->(m) return COUNT(r)", "default") assert ret[0] has_edge = json.loads(ret[1]) - assert(has_edge["COUNT(r)"] == 1) \ No newline at end of file + assert(has_edge["COUNT(r)"] == 1) + + IMPORT_OPT = {"cmd":"./lgraph_import --config_file ./import.config --dir ./testdb --user admin --password 73@TuGraph --graph default --overwrite 1 --continue_on_error true", + "cleanup_dir":["./.import_tmp", "./testdb"]} + + @pytest.mark.parametrize("importor", [IMPORT_OPT], indirect=True) + @pytest.mark.parametrize("server", [SERVEROPT], indirect=True) + @pytest.mark.parametrize("client", [CLIENTOPT], indirect=True) + def test_issues_199(self, file_build_1, importor, server, client): + ret = client.callCypher( + "MATCH (n {id:1}), (m {id:1}), (o {id:2}) " + "WHERE custom.myadd('asd')='1' RETURN 1") + assert not ret[0] + assert 'does not exist.' in ret[1] diff --git a/test/integration/test_tugraph_ogm.py b/test/integration/test_tugraph_ogm.py index 7ea4d12931..f7b04caec4 100644 --- a/test/integration/test_tugraph_ogm.py +++ b/test/integration/test_tugraph_ogm.py @@ -12,7 +12,7 @@ class TestJavaOgm(): } EXECOPT = { - "cmd" : "java -jar rpc_client/java/TuGraphOGMTest/target/TuGpraphOgmTest-1.0-SNAPSHOT.jar 127.0.0.1:29092 admin 73@TuGraph" + "cmd" : "java -jar rpc_client/java/TuGraphOGMTest/target/TuGpraphOgmTest-1.0.jar 127.0.0.1:29092 admin 73@TuGraph" } SERVEROPT = {"cmd":"./lgraph_server -c lgraph_standalone.json --directory ./testdb --port 27072 --rpc_port 29092", diff --git a/test/main.cpp b/test/main.cpp index 0df9b435ef..92be389069 100644 --- a/test/main.cpp +++ b/test/main.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include #include "fma-common/configuration.h" diff --git a/test/random_port.h b/test/random_port.h index b3334eb930..202db491a1 100644 --- a/test/random_port.h +++ b/test/random_port.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once diff --git a/test/test_audit_logger.cpp b/test/test_audit_logger.cpp index 69bb359253..4907c5172d 100644 --- a/test/test_audit_logger.cpp +++ b/test/test_audit_logger.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/configuration.h" #include "fma-common/logger.h" diff --git a/test/test_backup_restore.cpp b/test/test_backup_restore.cpp index 2a2a87a01c..22f0db80d2 100644 --- a/test/test_backup_restore.cpp +++ b/test/test_backup_restore.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/configuration.h" #include "fma-common/logger.h" diff --git a/test/test_batch_edge_index.cpp b/test/test_batch_edge_index.cpp index 9572ecaabf..204be64f45 100644 --- a/test/test_batch_edge_index.cpp +++ b/test/test_batch_edge_index.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/configuration.h" #include "fma-common/logging.h" diff --git a/test/test_batch_vertex_index.cpp b/test/test_batch_vertex_index.cpp index 2d5cf49f17..67269e8f24 100644 --- a/test/test_batch_vertex_index.cpp +++ b/test/test_batch_vertex_index.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/configuration.h" #include "fma-common/logging.h" diff --git a/test/test_blob_manager.cpp b/test/test_blob_manager.cpp index 5aefa42cda..95f63c371b 100644 --- a/test/test_blob_manager.cpp +++ b/test/test_blob_manager.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "gtest/gtest.h" #include "./ut_utils.h" diff --git a/test/test_cache_aligned_vector.cpp b/test/test_cache_aligned_vector.cpp index 86db1fa1e5..4886bba69a 100644 --- a/test/test_cache_aligned_vector.cpp +++ b/test/test_cache_aligned_vector.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include #include "fma-common/configuration.h" #include "core/cache_aligned_vector.h" diff --git a/test/test_concurrent_gettime.cpp b/test/test_concurrent_gettime.cpp index db582fac8b..571fc216d0 100644 --- a/test/test_concurrent_gettime.cpp +++ b/test/test_concurrent_gettime.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include #include "fma-common/configuration.h" diff --git a/test/test_core_exception.cpp b/test/test_core_exception.cpp index efa04a7a34..a830f98eb8 100644 --- a/test/test_core_exception.cpp +++ b/test/test_core_exception.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include #include diff --git a/test/test_cpp_plugin.cpp b/test/test_cpp_plugin.cpp index 14dcecfd58..ce07dfd6c5 100644 --- a/test/test_cpp_plugin.cpp +++ b/test/test_cpp_plugin.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include diff --git a/test/test_cppresetsdk_json.cpp b/test/test_cppresetsdk_json.cpp index e0b4290946..5b646bb5ae 100644 --- a/test/test_cppresetsdk_json.cpp +++ b/test/test_cppresetsdk_json.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "gtest/gtest.h" #include "cpprest/json.h" diff --git a/test/test_cypher.cpp b/test/test_cypher.cpp index 1ae00e50ed..e00bac7144 100644 --- a/test/test_cypher.cpp +++ b/test/test_cypher.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include #include "fma-common/configuration.h" @@ -266,6 +278,12 @@ int test_query(cypher::RTContext *ctx) { {"MATCH (n:Person{name:'Vanessa Redgrave'}),(m:Person{name: 'Michael Redgrave'}) WHERE " "n.birthyear > 1960 and m.birthyear < 2000 RETURN n.name LIMIT 1", 0}, // #issue 192 + /* test parallel traversal optimization */ + {"MATCH (n:Person) RETURN count(n)", 1}, + {"MATCH (n:Person) WHERE n.birthyear > 1900 AND n.birthyear < 2000 RETURN count(n)", 1}, + {"MATCH (n:Person) RETURN n.birthyear, count(n)", 13}, + {"MATCH (f:Film)<-[:ACTED_IN]-(p:Person)-[:BORN_IN]->(c:City) " + "RETURN c.name, count(f) AS sum ORDER BY sum DESC", 3}, }; std::vector scripts; std::vector check; @@ -2078,7 +2096,12 @@ int test_fix_crash_issues(cypher::RTContext *ctx) { expected_exception_any(ctx, "DELETE []"); expected_exception_any(ctx, "DELETE [x in [1, 2, 3] | x]"); expected_exception_any(ctx, "DELETE TRUE"); - + // issue #199 + expected_exception_any(ctx, + "MATCH (n:Person {name:'Liam Neeson'}), " + "(m:Person {name:'Liam Neeson'}), " + "(o:Person {name:'Liam Neeson'}) " + "WHERE custom.myadd('asd')='1' RETURN 1"); // issue #312 auto graph = ctx->graph_; ctx->graph_ = ""; @@ -2087,7 +2110,7 @@ int test_fix_crash_issues(cypher::RTContext *ctx) { expected_exception_any(ctx, "CALL db.warmup"); eval_script(ctx, "CALL dbms.graph.listGraphs()"); ctx->graph_ = graph; - // issue #312 + // issue #312 end return 0; } diff --git a/test/test_cypher_plan.cpp b/test/test_cypher_plan.cpp index 07afe9f3b1..325f2eb36a 100644 --- a/test/test_cypher_plan.cpp +++ b/test/test_cypher_plan.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by gelincheng on 2/17/22. // diff --git a/test/test_data_type.cpp b/test/test_data_type.cpp index bfc317cb31..16a13dd7a7 100644 --- a/test/test_data_type.cpp +++ b/test/test_data_type.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/logger.h" #include "fma-common/string_formatter.h" diff --git a/test/test_dense_string.cpp b/test/test_dense_string.cpp index d3b7e429d3..63e4ac8eb8 100644 --- a/test/test_dense_string.cpp +++ b/test/test_dense_string.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/logging.h" diff --git a/test/test_edge_constraint.cpp b/test/test_edge_constraint.cpp index eff72063e7..bc5e4fbb16 100644 --- a/test/test_edge_constraint.cpp +++ b/test/test_edge_constraint.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/logging.h" #include "gtest/gtest.h" diff --git a/test/test_edge_index.cpp b/test/test_edge_index.cpp index f632ded830..742a78e6ab 100644 --- a/test/test_edge_index.cpp +++ b/test/test_edge_index.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/configuration.h" #include "fma-common/logger.h" #include "fma-common/utils.h" diff --git a/test/test_embed.cpp b/test/test_embed.cpp index 248d1408e6..3b92fb9361 100644 --- a/test/test_embed.cpp +++ b/test/test_embed.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/logging.h" #include "fma-common/utils.h" diff --git a/test/test_field_data_helper.cpp b/test/test_field_data_helper.cpp index 19a8597275..b1ef5b3b51 100644 --- a/test/test_field_data_helper.cpp +++ b/test/test_field_data_helper.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include #include diff --git a/test/test_field_extractor.cpp b/test/test_field_extractor.cpp index 7785c747ca..ea8e06b9c9 100644 --- a/test/test_field_extractor.cpp +++ b/test/test_field_extractor.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/logging.h" #include "fma-common/string_formatter.h" diff --git a/test/test_fulltext.cpp b/test/test_fulltext.cpp index 43967e4cd5..27fd0cff0d 100644 --- a/test/test_fulltext.cpp +++ b/test/test_fulltext.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #if LGRAPH_ENABLE_FULLTEXT_INDEX diff --git a/test/test_galaxy.cpp b/test/test_galaxy.cpp index a9622180ed..c50756904e 100644 --- a/test/test_galaxy.cpp +++ b/test/test_galaxy.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/configuration.h" #include "fma-common/file_system.h" diff --git a/test/test_global_config.cpp b/test/test_global_config.cpp index b1552b5e16..b44213b025 100644 --- a/test/test_global_config.cpp +++ b/test/test_global_config.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/logging.h" #include "core/global_config.h" diff --git a/test/test_graph.cpp b/test/test_graph.cpp index f1062305f4..0d017d823c 100644 --- a/test/test_graph.cpp +++ b/test/test_graph.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/logging.h" #include "fma-common/string_formatter.h" diff --git a/test/test_graph_data_pack.cpp b/test/test_graph_data_pack.cpp index fba8cf76d6..54ae4bbbc0 100644 --- a/test/test_graph_data_pack.cpp +++ b/test/test_graph_data_pack.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include #include "fma-common/logging.h" diff --git a/test/test_graph_edge_iterator.cpp b/test/test_graph_edge_iterator.cpp index 1a81136065..167046e8a7 100644 --- a/test/test_graph_edge_iterator.cpp +++ b/test/test_graph_edge_iterator.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include #include "fma-common/logging.h" diff --git a/test/test_graph_simple.cpp b/test/test_graph_simple.cpp index a49502d010..cbf09686b0 100644 --- a/test/test_graph_simple.cpp +++ b/test/test_graph_simple.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/logging.h" #include "fma-common/string_formatter.h" diff --git a/test/test_graph_traversal.cpp b/test/test_graph_traversal.cpp index 37153fafc1..860c5895d0 100644 --- a/test/test_graph_traversal.cpp +++ b/test/test_graph_traversal.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/configuration.h" #include "fma-common/file_system.h" diff --git a/test/test_graph_vertex_iterator.cpp b/test/test_graph_vertex_iterator.cpp index d1725249b6..bd11f25c41 100644 --- a/test/test_graph_vertex_iterator.cpp +++ b/test/test_graph_vertex_iterator.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/logging.h" #include "fma-common/configuration.h" diff --git a/test/test_import_column_parser.cpp b/test/test_import_column_parser.cpp index d31cc77092..93fdaf84ba 100644 --- a/test/test_import_column_parser.cpp +++ b/test/test_import_column_parser.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/logger.h" #include "fma-common/utils.h" diff --git a/test/test_import_config_parser.cpp b/test/test_import_config_parser.cpp index 0733b7ea05..30cd21c63c 100644 --- a/test/test_import_config_parser.cpp +++ b/test/test_import_config_parser.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/logger.h" #include "gtest/gtest.h" diff --git a/test/test_import_data_file.cpp b/test/test_import_data_file.cpp index c91d71cd1f..177c8864df 100644 --- a/test/test_import_data_file.cpp +++ b/test/test_import_data_file.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/logger.h" #include "fma-common/configuration.h" diff --git a/test/test_import_online.cpp b/test/test_import_online.cpp index ebcacd705f..4b3d042686 100644 --- a/test/test_import_online.cpp +++ b/test/test_import_online.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/configuration.h" #include "fma-common/logging.h" diff --git a/test/test_import_parse_delimiter.cpp b/test/test_import_parse_delimiter.cpp index 047792b977..c16f6d6268 100644 --- a/test/test_import_parse_delimiter.cpp +++ b/test/test_import_parse_delimiter.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/logger.h" #include "fma-common/utils.h" diff --git a/test/test_import_planner.cpp b/test/test_import_planner.cpp index 2ee92afa27..7528d086cc 100644 --- a/test/test_import_planner.cpp +++ b/test/test_import_planner.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/logging.h" #include "gtest/gtest.h" diff --git a/test/test_import_v2.cpp b/test/test_import_v2.cpp index 05ef9d7619..b04e7c1bdf 100644 --- a/test/test_import_v2.cpp +++ b/test/test_import_v2.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include diff --git a/test/test_json_convert.cpp b/test/test_json_convert.cpp index 2dc95a396c..40ca070dce 100644 --- a/test/test_json_convert.cpp +++ b/test/test_json_convert.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/logger.h" #include "gtest/gtest.h" diff --git a/test/test_kv_store.cpp b/test/test_kv_store.cpp index 663ac75a9c..cf6eebd2b2 100644 --- a/test/test_kv_store.cpp +++ b/test/test_kv_store.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include diff --git a/test/test_lgraph.cpp b/test/test_lgraph.cpp index 6cb1787cf5..c9b38e33f8 100644 --- a/test/test_lgraph.cpp +++ b/test/test_lgraph.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include #include "fma-common/logging.h" diff --git a/test/test_lgraph_api.cpp b/test/test_lgraph_api.cpp index a509264174..112aead1e2 100644 --- a/test/test_lgraph_api.cpp +++ b/test/test_lgraph_api.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include #include diff --git a/test/test_lgraph_backup.cpp b/test/test_lgraph_backup.cpp index 1ef588b718..211c53dfb5 100644 --- a/test/test_lgraph_backup.cpp +++ b/test/test_lgraph_backup.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/logger.h" #include "fma-common/string_util.h" diff --git a/test/test_lgraph_date_time.cpp b/test/test_lgraph_date_time.cpp index a11e4ff753..9adcbfc9c2 100644 --- a/test/test_lgraph_date_time.cpp +++ b/test/test_lgraph_date_time.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/date.h" #include "fma-common/logger.h" diff --git a/test/test_lgraph_export.cpp b/test/test_lgraph_export.cpp index fd0d7b4c52..9d1a94e5b8 100644 --- a/test/test_lgraph_export.cpp +++ b/test/test_lgraph_export.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/logger.h" #include "fma-common/string_util.h" diff --git a/test/test_lgraph_monkey.cpp b/test/test_lgraph_monkey.cpp index f55658a915..cc3dba7d6b 100644 --- a/test/test_lgraph_monkey.cpp +++ b/test/test_lgraph_monkey.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // LGraph monkey test // Uses lgraph_api as a blackbox and tries different operations in some random manner diff --git a/test/test_lgraph_server.cpp b/test/test_lgraph_server.cpp index 1e51b927bd..df8e4f402a 100644 --- a/test/test_lgraph_server.cpp +++ b/test/test_lgraph_server.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/configuration.h" #include "fma-common/logging.h" diff --git a/test/test_lgraph_utils.cpp b/test/test_lgraph_utils.cpp index fc03a22f70..9fa466cdb8 100644 --- a/test/test_lgraph_utils.cpp +++ b/test/test_lgraph_utils.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "gtest/gtest.h" #include "./ut_utils.h" diff --git a/test/test_managed_object.cpp b/test/test_managed_object.cpp index 868b6b223e..3d35aa0a80 100644 --- a/test/test_managed_object.cpp +++ b/test/test_managed_object.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/logger.h" #include "fma-common/configuration.h" diff --git a/test/test_mdb.cpp b/test/test_mdb.cpp index 687b3e5f9c..8e27067563 100644 --- a/test/test_mdb.cpp +++ b/test/test_mdb.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/utils.h" #include "fma-common/configuration.h" diff --git a/test/test_mdb_wal_perf.cpp b/test/test_mdb_wal_perf.cpp index 66d40b5a0d..93085668d3 100644 --- a/test/test_mdb_wal_perf.cpp +++ b/test/test_mdb_wal_perf.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** +* Copyright 2022 AntGroup CO., Ltd. +*^M +* 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. +*/ #include #include "fma-common/configuration.h" #include "core/lmdb/lmdb.h" diff --git a/test/test_memorylimit.cpp b/test/test_memorylimit.cpp index bc7b5ef097..93adb6cb5b 100644 --- a/test/test_memorylimit.cpp +++ b/test/test_memorylimit.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/configuration.h" #include "fma-common/logging.h" diff --git a/test/test_merge.cpp b/test/test_merge.cpp index f3179f9daf..bdc2c668f3 100644 --- a/test/test_merge.cpp +++ b/test/test_merge.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/configuration.h" #include "fma-common/logging.h" diff --git a/test/test_move_constructors.cpp b/test/test_move_constructors.cpp index 280cbb0e09..d3ad3bf014 100644 --- a/test/test_move_constructors.cpp +++ b/test/test_move_constructors.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/logging.h" #include "gtest/gtest.h" diff --git a/test/test_mthread.cpp b/test/test_mthread.cpp index 5952deaf48..4453a21982 100644 --- a/test/test_mthread.cpp +++ b/test/test_mthread.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include #include "fma-common/configuration.h" diff --git a/test/test_olap_vertex_traversal.cpp b/test/test_olap_vertex_traversal.cpp index fe7f1e146f..70c5f2619e 100644 --- a/test/test_olap_vertex_traversal.cpp +++ b/test/test_olap_vertex_traversal.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "gtest/gtest.h" #include "./ut_utils.h" diff --git a/test/test_parallelvector.cpp b/test/test_parallelvector.cpp index d7c300ee29..46433c4bca 100644 --- a/test/test_parallelvector.cpp +++ b/test/test_parallelvector.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include #include "lgraph/olap_on_db.h" diff --git a/test/test_perf_db.cpp b/test/test_perf_db.cpp index 5a9c18eadc..17b88ea70e 100644 --- a/test/test_perf_db.cpp +++ b/test/test_perf_db.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include #include "fma-common/configuration.h" diff --git a/test/test_perf_graph.cpp b/test/test_perf_graph.cpp index cc7025870e..7781ed93ad 100644 --- a/test/test_perf_graph.cpp +++ b/test/test_perf_graph.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include #include "fma-common/configuration.h" diff --git a/test/test_perf_kv.cpp b/test/test_perf_kv.cpp index b1ad76134f..88b51a4920 100644 --- a/test/test_perf_kv.cpp +++ b/test/test_perf_kv.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include diff --git a/test/test_perf_kv_fatkey.cpp b/test/test_perf_kv_fatkey.cpp index b02437b9be..567a73fd7a 100644 --- a/test/test_perf_kv_fatkey.cpp +++ b/test/test_perf_kv_fatkey.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/configuration.h" #include "fma-common/logging.h" diff --git a/test/test_perf_multi_writer.cpp b/test/test_perf_multi_writer.cpp index 59eb2ba113..b3269658bc 100644 --- a/test/test_perf_multi_writer.cpp +++ b/test/test_perf_multi_writer.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/configuration.h" #include "fma-common/logging.h" diff --git a/test/test_perf_unaligned.cpp b/test/test_perf_unaligned.cpp index 7e7eb6606b..38ccabe350 100644 --- a/test/test_perf_unaligned.cpp +++ b/test/test_perf_unaligned.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include diff --git a/test/test_plugins/add_label_v.cpp b/test/test_plugins/add_label_v.cpp index 6971dfa639..e8c3f80a89 100644 --- a/test/test_plugins/add_label_v.cpp +++ b/test/test_plugins/add_label_v.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include #include "lgraph/lgraph.h" diff --git a/test/test_plugins/scan_graph.cpp b/test/test_plugins/scan_graph.cpp index c490f05121..e6dfdb81f5 100644 --- a/test/test_plugins/scan_graph.cpp +++ b/test/test_plugins/scan_graph.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include #include "lgraph/lgraph.h" diff --git a/test/test_plugins/sortstr.cpp b/test/test_plugins/sortstr.cpp index 314f2a284d..a22440157f 100644 --- a/test/test_plugins/sortstr.cpp +++ b/test/test_plugins/sortstr.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include #include "lgraph/lgraph.h" diff --git a/test/test_plugins/standard_result.cpp b/test/test_plugins/standard_result.cpp index aec3585888..113810a77e 100644 --- a/test/test_plugins/standard_result.cpp +++ b/test/test_plugins/standard_result.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "lgraph/lgraph_result.h" #include "lgraph/lgraph_traversal.h" diff --git a/test/test_proto_convert.cpp b/test/test_proto_convert.cpp index 7098a436c5..53e2d9803b 100644 --- a/test/test_proto_convert.cpp +++ b/test/test_proto_convert.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ // // Created by hct on 18-12-29. diff --git a/test/test_python_plugin_manager.cpp b/test/test_python_plugin_manager.cpp index 8107f09b59..0910be2476 100644 --- a/test/test_python_plugin_manager.cpp +++ b/test/test_python_plugin_manager.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/configuration.h" #include "fma-common/logging.h" diff --git a/test/test_python_plugin_manager_impl.cpp b/test/test_python_plugin_manager_impl.cpp index 75d9674af2..98bf980216 100644 --- a/test/test_python_plugin_manager_impl.cpp +++ b/test/test_python_plugin_manager_impl.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include diff --git a/test/test_random_delete.cpp b/test/test_random_delete.cpp index 87fe5f7cca..bd0909ece7 100644 --- a/test/test_random_delete.cpp +++ b/test/test_random_delete.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/utils.h" #include "fma-common/configuration.h" diff --git a/test/test_rest_client.cpp b/test/test_rest_client.cpp index db8800b57f..711bd1c89b 100644 --- a/test/test_rest_client.cpp +++ b/test/test_rest_client.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/configuration.h" #include "fma-common/logger.h" diff --git a/test/test_restful_abnormal_branch.cpp b/test/test_restful_abnormal_branch.cpp index f2c93b02f4..a1c95c8b34 100644 --- a/test/test_restful_abnormal_branch.cpp +++ b/test/test_restful_abnormal_branch.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/configuration.h" #include "fma-common/logging.h" diff --git a/test/test_restful_base_operation.cpp b/test/test_restful_base_operation.cpp index 95d84e2627..03112ca093 100644 --- a/test/test_restful_base_operation.cpp +++ b/test/test_restful_base_operation.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/configuration.h" #include "fma-common/logging.h" diff --git a/test/test_restful_import_online.cpp b/test/test_restful_import_online.cpp index 9906aa1265..ff45c2f54a 100644 --- a/test/test_restful_import_online.cpp +++ b/test/test_restful_import_online.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/configuration.h" #include "fma-common/logging.h" diff --git a/test/test_rpc.cpp b/test/test_rpc.cpp index 24df291dc7..ea516342c3 100644 --- a/test/test_rpc.cpp +++ b/test/test_rpc.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include #include diff --git a/test/test_schema.cpp b/test/test_schema.cpp index 314c2a1866..d6185bddd3 100644 --- a/test/test_schema.cpp +++ b/test/test_schema.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/logging.h" #include "fma-common/utils.h" diff --git a/test/test_schema_change.cpp b/test/test_schema_change.cpp index 64100eabaf..3c6818ce73 100644 --- a/test/test_schema_change.cpp +++ b/test/test_schema_change.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/configuration.h" #include "fma-common/logger.h" diff --git a/test/test_schema_common.cpp b/test/test_schema_common.cpp index 5396211425..0d2fa491af 100644 --- a/test/test_schema_common.cpp +++ b/test/test_schema_common.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "gtest/gtest.h" diff --git a/test/test_schema_manager.cpp b/test/test_schema_manager.cpp index f3b1b5dec0..630f4c8745 100644 --- a/test/test_schema_manager.cpp +++ b/test/test_schema_manager.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "gtest/gtest.h" diff --git a/test/test_service.cpp b/test/test_service.cpp index c4e7121ce9..5cb54ed604 100644 --- a/test/test_service.cpp +++ b/test/test_service.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include #include diff --git a/test/test_snapshot.cpp b/test/test_snapshot.cpp index 67bf99aa76..9d07088946 100644 --- a/test/test_snapshot.cpp +++ b/test/test_snapshot.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include #include "fma-common/configuration.h" diff --git a/test/test_static_vector.cpp b/test/test_static_vector.cpp index 164ab23108..fcd8244de8 100644 --- a/test/test_static_vector.cpp +++ b/test/test_static_vector.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/logger.h" #include "gtest/gtest.h" diff --git a/test/test_sync_file_implementations.cpp b/test/test_sync_file_implementations.cpp index de7e014297..d6d1798d70 100644 --- a/test/test_sync_file_implementations.cpp +++ b/test/test_sync_file_implementations.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #ifndef _WIN32 diff --git a/test/test_task_tracker.cpp b/test/test_task_tracker.cpp index affd7432eb..4abd2cd9cc 100644 --- a/test/test_task_tracker.cpp +++ b/test/test_task_tracker.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include diff --git a/test/test_token_manager.cpp b/test/test_token_manager.cpp index 942b8ff7d7..aee1d53282 100644 --- a/test/test_token_manager.cpp +++ b/test/test_token_manager.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/configuration.h" #include "gtest/gtest.h" diff --git a/test/test_tools.h b/test/test_tools.h index bfc23d6d5b..5f95f05302 100644 --- a/test/test_tools.h +++ b/test/test_tools.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once #include diff --git a/test/test_transaction.cpp b/test/test_transaction.cpp index 1024febad2..c8bbb9732e 100644 --- a/test/test_transaction.cpp +++ b/test/test_transaction.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/configuration.h" #include "fma-common/logger.h" diff --git a/test/test_txn_fork.cpp b/test/test_txn_fork.cpp index 7fe82334a1..0f8b7a7275 100644 --- a/test/test_txn_fork.cpp +++ b/test/test_txn_fork.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include #include diff --git a/test/test_type_convert.cpp b/test/test_type_convert.cpp index 949e67f08a..14e15d3f07 100644 --- a/test/test_type_convert.cpp +++ b/test/test_type_convert.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "gtest/gtest.h" diff --git a/test/test_value.cpp b/test/test_value.cpp index 5270996da4..b3b66e2ff5 100644 --- a/test/test_value.cpp +++ b/test/test_value.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/logging.h" #include "gtest/gtest.h" diff --git a/test/test_vertex_index.cpp b/test/test_vertex_index.cpp index a0ede7c9ca..2bc4dbf31f 100644 --- a/test/test_vertex_index.cpp +++ b/test/test_vertex_index.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "gtest/gtest.h" #include "fma-common/configuration.h" diff --git a/test/test_vid_table.cpp b/test/test_vid_table.cpp index 69261839e1..514ea2c618 100644 --- a/test/test_vid_table.cpp +++ b/test/test_vid_table.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include #include diff --git a/test/ut_utils.cpp b/test/ut_utils.cpp index 355801d1f3..d59c50a37a 100644 --- a/test/ut_utils.cpp +++ b/test/ut_utils.cpp @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/fma_stream.h" #include "../test/ut_utils.h" diff --git a/test/ut_utils.h b/test/ut_utils.h index ca0ea0b7bc..a2b5e117e3 100644 --- a/test/ut_utils.h +++ b/test/ut_utils.h @@ -1,4 +1,16 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #pragma once #include diff --git a/toolkits/lgraph_backup.cpp b/toolkits/lgraph_backup.cpp index 1956630940..8d8025b76b 100644 --- a/toolkits/lgraph_backup.cpp +++ b/toolkits/lgraph_backup.cpp @@ -1,5 +1,17 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/configuration.h" #include "fma-common/file_system.h" diff --git a/toolkits/lgraph_binlog.cpp b/toolkits/lgraph_binlog.cpp index c96dae5ad1..08050b74ef 100644 --- a/toolkits/lgraph_binlog.cpp +++ b/toolkits/lgraph_binlog.cpp @@ -1,5 +1,17 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include #include "fma-common/configuration.h" diff --git a/toolkits/lgraph_export.cpp b/toolkits/lgraph_export.cpp index 1c10f09171..09dd90ee5c 100644 --- a/toolkits/lgraph_export.cpp +++ b/toolkits/lgraph_export.cpp @@ -1,5 +1,17 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include #include "fma-common/configuration.h" diff --git a/toolkits/lgraph_import.cpp b/toolkits/lgraph_import.cpp index dc8f99fc45..3b9a06b589 100644 --- a/toolkits/lgraph_import.cpp +++ b/toolkits/lgraph_import.cpp @@ -1,5 +1,17 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/check_date.h" #include "fma-common/configuration.h" diff --git a/toolkits/lgraph_monitor.cpp b/toolkits/lgraph_monitor.cpp index fea576e1ce..33a3b84991 100644 --- a/toolkits/lgraph_monitor.cpp +++ b/toolkits/lgraph_monitor.cpp @@ -1,5 +1,17 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/configuration.h" #include "lgraph/lgraph_rpc_client.h" diff --git a/toolkits/lgraph_peek.cpp b/toolkits/lgraph_peek.cpp index 60f9c52eda..d4a2fa6e8d 100644 --- a/toolkits/lgraph_peek.cpp +++ b/toolkits/lgraph_peek.cpp @@ -1,5 +1,17 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include #include "fma-common/configuration.h" diff --git a/toolkits/lgraph_validate.cpp b/toolkits/lgraph_validate.cpp index ffcc228199..0fd80f5638 100644 --- a/toolkits/lgraph_validate.cpp +++ b/toolkits/lgraph_validate.cpp @@ -1,5 +1,17 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include #include "fma-common/check_date.h" diff --git a/toolkits/lgraph_warmup.cpp b/toolkits/lgraph_warmup.cpp index b50b83f27c..1a1b82f26c 100644 --- a/toolkits/lgraph_warmup.cpp +++ b/toolkits/lgraph_warmup.cpp @@ -1,5 +1,17 @@ -/* Copyright (c) 2022 AntGroup. All Rights Reserved. */ +/** + * Copyright 2022 AntGroup CO., Ltd. + * + * 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. + */ #include "fma-common/configuration.h" #include "fma-common/logging.h"