forked from vesoft-inc/nebula
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSchemaWriter.h
33 lines (23 loc) · 874 Bytes
/
SchemaWriter.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* Copyright (c) 2018 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License,
* attached with Common Clause Condition 1.0, found in the LICENSES directory.
*/
#ifndef DATAMAN_SCHEMAWRITER_H_
#define DATAMAN_SCHEMAWRITER_H_
#include "base/Base.h"
#include "dataman/ResultSchemaProvider.h"
namespace nebula {
class SchemaWriter : public ResultSchemaProvider {
public:
explicit SchemaWriter(SchemaVer ver = 0) : ResultSchemaProvider(ver) {}
// Move the schema out of the writer
cpp2::Schema moveSchema() noexcept;
SchemaWriter& appendCol(folly::StringPiece name,
cpp2::SupportedType type) noexcept;
SchemaWriter& appendCol(folly::StringPiece name,
cpp2::ValueType&& type)noexcept;
private:
};
} // namespace nebula
#endif // DATAMAN_SCHEMAWRITER_H_