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 179d980
Show file tree
Hide file tree
Showing 152 changed files with 492 additions and 853 deletions.
9 changes: 3 additions & 6 deletions src/graph/executor/ExecutionError.h
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.

#ifndef GRAPH_EXECUTOR_EXECUTIONERROR_H_
#define GRAPH_EXECUTOR_EXECUTIONERROR_H_

#include <stdexcept>

#include "common/base/Status.h"

namespace nebula {
Expand Down
9 changes: 3 additions & 6 deletions src/graph/executor/Executor.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/Executor.h"

Expand All @@ -13,9 +12,7 @@
#include "common/base/ObjectPool.h"
#include "common/memory/MemoryUtils.h"
#include "common/stats/StatsManager.h"
#include "common/time/ScopedTimer.h"
#include "graph/context/ExecutionContext.h"
#include "graph/context/QueryContext.h"
#include "graph/executor/ExecutionError.h"
#include "graph/executor/admin/AddHostsExecutor.h"
#include "graph/executor/admin/ChangePasswordExecutor.h"
Expand Down
13 changes: 4 additions & 9 deletions src/graph/executor/Executor.h
Original file line number Diff line number Diff line change
@@ -1,24 +1,19 @@
/* 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_EXECUTOR_H_
#define GRAPH_EXECUTOR_EXECUTOR_H_

#include <folly/futures/Future.h>

#include <boost/core/noncopyable.hpp>
#include <set>
#include <string>
#include <vector>

#include "common/base/Status.h"
#include "common/cpp/helpers.h"
#include "common/datatypes/Value.h"
#include "common/time/Duration.h"
#include "common/time/ScopedTimer.h"
#include "graph/context/ExecutionContext.h"
#include "graph/context/QueryContext.h"

namespace nebula {
namespace graph {
Expand Down
8 changes: 3 additions & 5 deletions src/graph/executor/StorageAccessExecutor.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
/* 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/StorageAccessExecutor.h"

#include <folly/Format.h>

#include "graph/context/Iterator.h"
#include "graph/context/QueryExpressionContext.h"
#include "graph/util/SchemaUtil.h"
Expand Down
8 changes: 3 additions & 5 deletions src/graph/executor/StorageAccessExecutor.h
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
/* 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_STORAGEACCESSEXECUTOR_H_
#define GRAPH_EXECUTOR_STORAGEACCESSEXECUTOR_H_

#include <thrift/lib/cpp/util/EnumUtils.h>

#include "clients/storage/StorageClientBase.h"
#include "graph/context/QueryContext.h"
#include "graph/executor/Executor.h"

namespace nebula {
Expand Down
7 changes: 3 additions & 4 deletions src/graph/executor/admin/AddHostsExecutor.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/admin/AddHostsExecutor.h"

Expand Down
7 changes: 3 additions & 4 deletions src/graph/executor/admin/AddHostsExecutor.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_ADD_HOST_EXECUTOR_H_
#define GRAPH_EXECUTOR_ADMIN_ADD_HOST_EXECUTOR_H_
Expand Down
9 changes: 3 additions & 6 deletions src/graph/executor/admin/ChangePasswordExecutor.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/ChangePasswordExecutor.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/ChangePasswordExecutor.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_CHANGEPASSWORDEXECUTOR_H_
#define GRAPH_EXECUTOR_ADMIN_CHANGEPASSWORDEXECUTOR_H_
Expand Down
10 changes: 3 additions & 7 deletions src/graph/executor/admin/CharsetExecutor.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/admin/CharsetExecutor.h"

#include "common/time/ScopedTimer.h"
#include "graph/context/QueryContext.h"

namespace nebula {
namespace graph {
folly::Future<Status> ShowCharsetExecutor::execute() {
Expand Down
7 changes: 3 additions & 4 deletions src/graph/executor/admin/CharsetExecutor.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_CHARSETEXECUTOR_H_
#define GRAPH_EXECUTOR_ADMIN_CHARSETEXECUTOR_H_
Expand Down
10 changes: 3 additions & 7 deletions src/graph/executor/admin/ConfigExecutor.cpp
Original file line number Diff line number Diff line change
@@ -1,15 +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/ConfigExecutor.h"

#include <thrift/lib/cpp/util/EnumUtils.h>

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

Expand Down
7 changes: 3 additions & 4 deletions src/graph/executor/admin/ConfigExecutor.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_CONFIGEXECUTOR_H_
#define GRAPH_EXECUTOR_ADMIN_CONFIGEXECUTOR_H_
Expand Down
9 changes: 3 additions & 6 deletions src/graph/executor/admin/CreateUserExecutor.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/CreateUserExecutor.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/CreateUserExecutor.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_CREATEUSEREXECUTOR_H_
#define GRAPH_EXECUTOR_ADMIN_CREATEUSEREXECUTOR_H_
Expand Down
9 changes: 3 additions & 6 deletions src/graph/executor/admin/DescribeUserExecutor.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/DescribeUserExecutor.h"

#include <thrift/lib/cpp/util/EnumUtils.h>

#include "graph/context/QueryContext.h"
#include "graph/planner/plan/Admin.h"
#include "interface/gen-cpp2/meta_types.h"

Expand Down
7 changes: 3 additions & 4 deletions src/graph/executor/admin/DescribeUserExecutor.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_DESCRIBEUSEREXECUTOR_H_
#define GRAPH_EXECUTOR_ADMIN_DESCRIBEUSEREXECUTOR_H_
Expand Down
8 changes: 3 additions & 5 deletions src/graph/executor/admin/DownloadExecutor.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
/* 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/admin/DownloadExecutor.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/DownloadExecutor.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_DOWNLOADEXECUTOR_H_
#define GRAPH_EXECUTOR_ADMIN_DOWNLOADEXECUTOR_H_
Expand Down
7 changes: 3 additions & 4 deletions src/graph/executor/admin/DropHostsExecutor.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/admin/DropHostsExecutor.h"

Expand Down
7 changes: 3 additions & 4 deletions src/graph/executor/admin/DropHostsExecutor.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_DROP_HOST_EXECUTOR_H_
#define GRAPH_EXECUTOR_ADMIN_DROP_HOST_EXECUTOR_H_
Expand Down
9 changes: 3 additions & 6 deletions src/graph/executor/admin/DropUserExecutor.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +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/admin/DropUserExecutor.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/DropUserExecutor.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_DROPUSEREXECUTOR_H_
#define GRAPH_EXECUTOR_ADMIN_DROPUSEREXECUTOR_H_
Expand Down
8 changes: 3 additions & 5 deletions src/graph/executor/admin/GrantRoleExecutor.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/GrantRoleExecutor.h"

#include "graph/context/QueryContext.h"
#include "graph/planner/plan/Admin.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/GrantRoleExecutor.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_GRANTROLEEXECUTOR_H_
#define GRAPH_EXECUTOR_ADMIN_GRANTROLEEXECUTOR_H_
Expand Down
8 changes: 3 additions & 5 deletions src/graph/executor/admin/IngestExecutor.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
/* 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/admin/IngestExecutor.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/IngestExecutor.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_INGESTEXECUTOR_H_
#define GRAPH_EXECUTOR_ADMIN_INGESTEXECUTOR_H_
Expand Down
Loading

0 comments on commit 179d980

Please sign in to comment.