Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
nevermore3 committed Mar 16, 2022
1 parent 3161f01 commit b52586b
Show file tree
Hide file tree
Showing 89 changed files with 301 additions and 537 deletions.
9 changes: 3 additions & 6 deletions src/graph/executor/admin/SwitchSpaceExecutor.cpp
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
/* Copyright (c) 2020 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*/
// Copyright (c) 2022 vesoft inc. All rights reserved.
//
// This source code is licensed under Apache 2.0 License.

#include "graph/executor/admin/SwitchSpaceExecutor.h"

#include "clients/meta/MetaClient.h"
#include "common/time/ScopedTimer.h"
#include "graph/context/QueryContext.h"
#include "graph/planner/plan/Query.h"
#include "graph/service/PermissionManager.h"
#include "interface/gen-cpp2/meta_types.h"
Expand Down
7 changes: 3 additions & 4 deletions src/graph/executor/admin/SwitchSpaceExecutor.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Copyright (c) 2020 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*/
// Copyright (c) 2022 vesoft inc. All rights reserved.
//
// This source code is licensed under Apache 2.0 License.

#ifndef GRAPH_EXECUTOR_QUERY_SWITCHSPACEEXECUTOR_H_
#define GRAPH_EXECUTOR_QUERY_SWITCHSPACEEXECUTOR_H_
Expand Down
9 changes: 4 additions & 5 deletions src/graph/executor/admin/UpdateUserExecutor.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
/* Copyright (c) 2020 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*/
// Copyright (c) 2022 vesoft inc. All rights reserved.
//
// This source code is licensed under Apache 2.0 License.

#include "graph/executor/admin/UpdateUserExecutor.h"

#include <proxygen/lib/utils/CryptUtil.h>

#include "graph/context/QueryContext.h"
#include "graph/planner/plan/Admin.h"

namespace nebula {
Expand Down
7 changes: 3 additions & 4 deletions src/graph/executor/admin/UpdateUserExecutor.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Copyright (c) 2020 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*/
// Copyright (c) 2022 vesoft inc. All rights reserved.
//
// This source code is licensed under Apache 2.0 License.

#ifndef GRAPH_EXECUTOR_ADMIN_UPDATEUSEREXECUTOR_H_
#define GRAPH_EXECUTOR_ADMIN_UPDATEUSEREXECUTOR_H_
Expand Down
8 changes: 3 additions & 5 deletions src/graph/executor/admin/ZoneExecutor.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
/* Copyright (c) 2020 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*/
// Copyright (c) 2022 vesoft inc. All rights reserved.
//
// This source code is licensed under Apache 2.0 License.

#include "graph/executor/admin/ZoneExecutor.h"

#include "common/time/ScopedTimer.h"
#include "graph/planner/plan/Admin.h"

namespace nebula {
Expand Down
7 changes: 3 additions & 4 deletions src/graph/executor/admin/ZoneExecutor.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Copyright (c) 2020 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*/
// Copyright (c) 2022 vesoft inc. All rights reserved.
//
// This source code is licensed under Apache 2.0 License.

#ifndef GRAPH_EXECUTOR_ADMIN_ZONEEXECUTOR_H_
#define GRAPH_EXECUTOR_ADMIN_ZONEEXECUTOR_H_
Expand Down
7 changes: 3 additions & 4 deletions src/graph/executor/algo/CartesianProductExecutor.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Copyright (c) 2020 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*/
// Copyright (c) 2022 vesoft inc. All rights reserved.
//
// This source code is licensed under Apache 2.0 License.

#include "graph/executor/algo/CartesianProductExecutor.h"

Expand Down
7 changes: 3 additions & 4 deletions src/graph/executor/algo/CartesianProductExecutor.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Copyright (c) 2020 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*/
// Copyright (c) 2022 vesoft inc. All rights reserved.
//
// This source code is licensed under Apache 2.0 License.

#ifndef GRAPH_EXECUTOR_ALGO_CARTESIANPRODUCTEXECUTOR_H_
#define GRAPH_EXECUTOR_ALGO_CARTESIANPRODUCTEXECUTOR_H_
Expand Down
7 changes: 3 additions & 4 deletions src/graph/executor/algo/SubgraphExecutor.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Copyright (c) 2021 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*/
// Copyright (c) 2022 vesoft inc. All rights reserved.
//
// This source code is licensed under Apache 2.0 License.

#include "graph/executor/algo/SubgraphExecutor.h"

Expand Down
7 changes: 3 additions & 4 deletions src/graph/executor/algo/SubgraphExecutor.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Copyright (c) 2021 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*/
// Copyright (c) 2022 vesoft inc. All rights reserved.
//
// This source code is licensed under Apache 2.0 License.

#ifndef GRAPH_EXECUTOR_ALGO_SUBGRAPHEXECUTOR_H_
#define GRAPH_EXECUTOR_ALGO_SUBGRAPHEXECUTOR_H_
Expand Down
8 changes: 3 additions & 5 deletions src/graph/executor/logic/ArgumentExecutor.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
/* Copyright (c) 2021 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*/
// Copyright (c) 2022 vesoft inc. All rights reserved.
//
// This source code is licensed under Apache 2.0 License.

#include "graph/executor/logic/ArgumentExecutor.h"

#include "graph/planner/plan/Logic.h"

namespace nebula {
Expand Down
7 changes: 3 additions & 4 deletions src/graph/executor/logic/ArgumentExecutor.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Copyright (c) 2021 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*/
// Copyright (c) 2022 vesoft inc. All rights reserved.
//
// This source code is licensed under Apache 2.0 License.

#ifndef GRAPH_EXECUTOR_LOGIC_ARGUMENTEXECUTOR_H
#define GRAPH_EXECUTOR_LOGIC_ARGUMENTEXECUTOR_H
Expand Down
15 changes: 3 additions & 12 deletions src/graph/executor/logic/LoopExecutor.cpp
Original file line number Diff line number Diff line change
@@ -1,19 +1,10 @@
/* Copyright (c) 2020 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*/
// Copyright (c) 2022 vesoft inc. All rights reserved.
//
// This source code is licensed under Apache 2.0 License.

#include "graph/executor/logic/LoopExecutor.h"

#include <folly/String.h>

#include "common/time/ScopedTimer.h"
#include "graph/context/QueryExpressionContext.h"
#include "graph/planner/plan/Logic.h"
#include "graph/planner/plan/Query.h"
#include "interface/gen-cpp2/common_types.h"

using folly::stringPrintf;

namespace nebula {
namespace graph {
Expand Down
7 changes: 3 additions & 4 deletions src/graph/executor/logic/LoopExecutor.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Copyright (c) 2020 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*/
// Copyright (c) 2022 vesoft inc. All rights reserved.
//
// This source code is licensed under Apache 2.0 License.

#ifndef GRAPH_EXECUTOR_LOGIC_LOOPEXECUTOR_H_
#define GRAPH_EXECUTOR_LOGIC_LOOPEXECUTOR_H_
Expand Down
10 changes: 3 additions & 7 deletions src/graph/executor/logic/PassThroughExecutor.cpp
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
/* Copyright (c) 2020 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*/
// Copyright (c) 2022 vesoft inc. All rights reserved.
//
// This source code is licensed under Apache 2.0 License.

#include "graph/executor/logic/PassThroughExecutor.h"

#include "common/time/ScopedTimer.h"
#include "graph/planner/plan/Query.h"

namespace nebula {
namespace graph {

Expand Down
7 changes: 3 additions & 4 deletions src/graph/executor/logic/PassThroughExecutor.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Copyright (c) 2020 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*/
// Copyright (c) 2022 vesoft inc. All rights reserved.
//
// This source code is licensed under Apache 2.0 License.

#ifndef GRAPH_EXECUTOR_LOGIC_PASSTHROUGHEXECUTOR_H_
#define GRAPH_EXECUTOR_LOGIC_PASSTHROUGHEXECUTOR_H_
Expand Down
11 changes: 3 additions & 8 deletions src/graph/executor/logic/SelectExecutor.cpp
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
/* Copyright (c) 2020 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*/
// Copyright (c) 2022 vesoft inc. All rights reserved.
//
// This source code is licensed under Apache 2.0 License.

#include "graph/executor/logic/SelectExecutor.h"

#include "common/time/ScopedTimer.h"
#include "graph/context/QueryExpressionContext.h"
#include "graph/planner/plan/Logic.h"
#include "graph/planner/plan/Query.h"

namespace nebula {
namespace graph {
Expand Down
7 changes: 3 additions & 4 deletions src/graph/executor/logic/SelectExecutor.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Copyright (c) 2020 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*/
// Copyright (c) 2022 vesoft inc. All rights reserved.
//
// This source code is licensed under Apache 2.0 License.

#ifndef GRAPH_EXECUTOR_LOGIC_SELECTEXECUTOR_H_
#define GRAPH_EXECUTOR_LOGIC_SELECTEXECUTOR_H_
Expand Down
10 changes: 3 additions & 7 deletions src/graph/executor/logic/StartExecutor.cpp
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
/* Copyright (c) 2020 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*/
// Copyright (c) 2022 vesoft inc. All rights reserved.
//
// This source code is licensed under Apache 2.0 License.

#include "graph/executor/logic/StartExecutor.h"

#include "common/time/ScopedTimer.h"
#include "graph/planner/plan/PlanNode.h"

namespace nebula {
namespace graph {

Expand Down
9 changes: 4 additions & 5 deletions src/graph/executor/logic/StartExecutor.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
/* Copyright (c) 2020 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*/
// Copyright (c) 2022 vesoft inc. All rights reserved.
//
// This source code is licensed under Apache 2.0 License.

#ifndef GRAPH_EXECUTOR_LOGIC_STARTEXECUTOR_H_
#define GRAPH_EXECUTOR_LOGIC_STARTEXECUTOR_H_

#include "graph/executor/Executor.h"

// the leaf node of the execution plan does not depend on other operators, do nothing
namespace nebula {
namespace graph {

Expand Down
10 changes: 3 additions & 7 deletions src/graph/executor/maintain/EdgeExecutor.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
/* Copyright (c) 2020 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*/
// Copyright (c) 2022 vesoft inc. All rights reserved.
//
// This source code is licensed under Apache 2.0 License.

#include "graph/executor/maintain/EdgeExecutor.h"

#include "common/time/ScopedTimer.h"
#include "graph/context/QueryContext.h"
#include "graph/planner/plan/Maintain.h"
#include "graph/util/SchemaUtil.h"

Expand Down
7 changes: 3 additions & 4 deletions src/graph/executor/maintain/EdgeExecutor.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Copyright (c) 2020 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*/
// Copyright (c) 2022 vesoft inc. All rights reserved.
//
// This source code is licensed under Apache 2.0 License.

#ifndef GRAPH_EXECUTOR_MAINTAIN_EDGEEXECUTOR_H_
#define GRAPH_EXECUTOR_MAINTAIN_EDGEEXECUTOR_H_
Expand Down
7 changes: 3 additions & 4 deletions src/graph/executor/maintain/EdgeIndexExecutor.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Copyright (c) 2020 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*/
// Copyright (c) 2022 vesoft inc. All rights reserved.
//
// This source code is licensed under Apache 2.0 License.

#include "graph/executor/maintain/EdgeIndexExecutor.h"

Expand Down
7 changes: 3 additions & 4 deletions src/graph/executor/maintain/EdgeIndexExecutor.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Copyright (c) 2020 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*/
// Copyright (c) 2022 vesoft inc. All rights reserved.
//
// This source code is licensed under Apache 2.0 License.

#ifndef GRAPH_EXECUTOR_MAINTAIN_EDGEINDEXEXECUTOR_H_
#define GRAPH_EXECUTOR_MAINTAIN_EDGEINDEXEXECUTOR_H_
Expand Down
9 changes: 3 additions & 6 deletions src/graph/executor/maintain/FTIndexExecutor.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
/* Copyright (c) 2021 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*/
// Copyright (c) 2022 vesoft inc. All rights reserved.
//
// This source code is licensed under Apache 2.0 License.

#include "graph/executor/maintain/FTIndexExecutor.h"

#include "graph/context/QueryContext.h"
#include "graph/planner/plan/Maintain.h"
#include "graph/util/FTIndexUtils.h"
#include "interface/gen-cpp2/meta_types.h"
Expand Down
7 changes: 3 additions & 4 deletions src/graph/executor/maintain/FTIndexExecutor.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Copyright (c) 2021 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*/
// Copyright (c) 2022 vesoft inc. All rights reserved.
//
// This source code is licensed under Apache 2.0 License.

#ifndef GRAPH_EXECUTOR_ADMIN_SHOW_FT_INDEXES_EXECUTOR_H_
#define GRAPH_EXECUTOR_ADMIN_SHOW_FT_INDEXES_EXECUTOR_H_
Expand Down
10 changes: 3 additions & 7 deletions src/graph/executor/maintain/TagExecutor.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
/* Copyright (c) 2020 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*/
// Copyright (c) 2022 vesoft inc. All rights reserved.
//
// This source code is licensed under Apache 2.0 License.

#include "graph/executor/maintain/TagExecutor.h"

#include "common/time/ScopedTimer.h"
#include "graph/context/QueryContext.h"
#include "graph/planner/plan/Maintain.h"
#include "graph/util/SchemaUtil.h"

Expand Down
7 changes: 3 additions & 4 deletions src/graph/executor/maintain/TagExecutor.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Copyright (c) 2020 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*/
// Copyright (c) 2022 vesoft inc. All rights reserved.
//
// This source code is licensed under Apache 2.0 License.

#ifndef GRAPH_EXECUTOR_MAINTAIN_TAGEXECUTOR_H_
#define GRAPH_EXECUTOR_MAINTAIN_TAGEXECUTOR_H_
Expand Down
7 changes: 3 additions & 4 deletions src/graph/executor/maintain/TagIndexExecutor.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Copyright (c) 2020 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*/
// Copyright (c) 2022 vesoft inc. All rights reserved.
//
// This source code is licensed under Apache 2.0 License.

#include "graph/executor/maintain/TagIndexExecutor.h"

Expand Down
Loading

0 comments on commit b52586b

Please sign in to comment.