Skip to content

Commit

Permalink
rebase TTL_schema
Browse files Browse the repository at this point in the history
  • Loading branch information
ayyt committed Jun 28, 2019
1 parent e0d2ba6 commit 96d2c71
Show file tree
Hide file tree
Showing 27 changed files with 532 additions and 655 deletions.
8 changes: 1 addition & 7 deletions src/dataman/ResultSchemaProvider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ bool ResultSchemaProvider::ResultSchemaField::isValid() const {
*
**********************************/
ResultSchemaProvider::ResultSchemaProvider(Schema schema)
: columns_(std::move(schema.get_columns())),
schemaProp_(std::move(schema.get_schema_prop())) {
: columns_(std::move(schema.get_columns())) {
for (int64_t i = 0; i < static_cast<int64_t>(columns_.size()); i++) {
const std::string& name = columns_[i].get_name();
nameIndex_.emplace(std::make_pair(SpookyHashV2::Hash64(name.data(), name.size(), 0), i));
Expand Down Expand Up @@ -114,10 +113,5 @@ std::shared_ptr<const meta::SchemaProviderIf::Field> ResultSchemaProvider::field
return std::make_shared<ResultSchemaField>(&(columns_[index]));
}


const cpp2::SchemaProp ResultSchemaProvider::getProp() const {
return schemaProp_;
}

} // namespace nebula

4 changes: 0 additions & 4 deletions src/dataman/ResultSchemaProvider.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ class ResultSchemaProvider : public meta::SchemaProviderIf {
std::shared_ptr<const meta::SchemaProviderIf::Field> field(
const folly::StringPiece name) const override;

const cpp2::SchemaProp getProp() const override;

protected:
SchemaVer schemaVer_{0};

Expand All @@ -61,8 +59,6 @@ class ResultSchemaProvider : public meta::SchemaProviderIf {

// Default constructor, only used by SchemaWriter
explicit ResultSchemaProvider(SchemaVer ver = 0) : schemaVer_(ver) {}

cpp2::SchemaProp schemaProp_;
};

} // namespace nebula
Expand Down
3 changes: 0 additions & 3 deletions src/graph/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ add_library(
DropEdgeExecutor.cpp
DescribeTagExecutor.cpp
DescribeEdgeExecutor.cpp
ShowCreateTagExecutor.cpp
ShowCreateEdgeExecutor.cpp
InsertVertexExecutor.cpp
InsertEdgeExecutor.cpp
AssignmentExecutor.cpp
Expand All @@ -33,7 +31,6 @@ add_library(
CreateSpaceExecutor.cpp
DropSpaceExecutor.cpp
DescribeSpaceExecutor.cpp
ShowCreateSpaceExecutor.cpp
ShowExecutor.cpp
YieldExecutor.cpp
SchemaHelper.cpp
Expand Down
4 changes: 0 additions & 4 deletions src/graph/CreateEdgeExecutor.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ class CreateEdgeExecutor final : public Executor {

void execute() override;

Status setTTLDuration(SchemaPropItem* schemaProp);

Status setTTLCol(SchemaPropItem* schemaProp);

private:
CreateEdgeSentence *sentence_{nullptr};
nebula::cpp2::Schema schema_;
Expand Down
4 changes: 0 additions & 4 deletions src/graph/CreateTagExecutor.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ class CreateTagExecutor final : public Executor {

void execute() override;

Status setTTLDuration(SchemaPropItem* schemaProp);

Status setTTLCol(SchemaPropItem* schemaProp);

private:
CreateTagSentence *sentence_{nullptr};
nebula::cpp2::Schema schema_;
Expand Down
12 changes: 0 additions & 12 deletions src/graph/Executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
#include "graph/DropEdgeExecutor.h"
#include "graph/DescribeTagExecutor.h"
#include "graph/DescribeEdgeExecutor.h"
#include "graph/ShowCreateTagExecutor.h"
#include "graph/ShowCreateEdgeExecutor.h"
#include "graph/InsertVertexExecutor.h"
#include "graph/InsertEdgeExecutor.h"
#include "graph/AssignmentExecutor.h"
Expand All @@ -31,7 +29,6 @@
#include "graph/RemoveHostsExecutor.h"
#include "graph/CreateSpaceExecutor.h"
#include "graph/DescribeSpaceExecutor.h"
#include "graph/ShowCreateSpaceExecutor.h"
#include "graph/DropSpaceExecutor.h"
#include "graph/YieldExecutor.h"

Expand Down Expand Up @@ -69,12 +66,6 @@ std::unique_ptr<Executor> Executor::makeExecutor(Sentence *sentence) {
case Sentence::Kind::kDescribeEdge:
executor = std::make_unique<DescribeEdgeExecutor>(sentence, ectx());
break;
case Sentence::Kind::kShowCreateTag:
executor = std::make_unique<ShowCreateTagExecutor>(sentence, ectx());
break;
case Sentence::Kind::kShowCreateEdge:
executor = std::make_unique<ShowCreateEdgeExecutor>(sentence, ectx());
break;
case Sentence::Kind::kDropTag:
executor = std::make_unique<DropTagExecutor>(sentence, ectx());
break;
Expand Down Expand Up @@ -108,9 +99,6 @@ std::unique_ptr<Executor> Executor::makeExecutor(Sentence *sentence) {
case Sentence::Kind::kDescribeSpace:
executor = std::make_unique<DescribeSpaceExecutor>(sentence, ectx());
break;
case Sentence::Kind::kShowCreateSpace:
executor = std::make_unique<ShowCreateSpaceExecutor>(sentence, ectx());
break;
case Sentence::Kind::kYield:
executor = std::make_unique<YieldExecutor>(sentence, ectx());
break;
Expand Down
102 changes: 0 additions & 102 deletions src/graph/ShowCreateEdgeExecutor.cpp

This file was deleted.

38 changes: 0 additions & 38 deletions src/graph/ShowCreateEdgeExecutor.h

This file was deleted.

79 changes: 0 additions & 79 deletions src/graph/ShowCreateSpaceExecutor.cpp

This file was deleted.

38 changes: 0 additions & 38 deletions src/graph/ShowCreateSpaceExecutor.h

This file was deleted.

Loading

0 comments on commit 96d2c71

Please sign in to comment.