/Users/deen/code/yugabyte-db/src/yb/master/yql_empty_vtable.cc
Line | Count | Source |
1 | | // Copyright (c) YugaByte, Inc. |
2 | | // |
3 | | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except |
4 | | // in compliance with the License. You may obtain a copy of the License at |
5 | | // |
6 | | // http://www.apache.org/licenses/LICENSE-2.0 |
7 | | // |
8 | | // Unless required by applicable law or agreed to in writing, software distributed under the License |
9 | | // is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express |
10 | | // or implied. See the License for the specific language governing permissions and limitations |
11 | | // under the License. |
12 | | // |
13 | | |
14 | | #include "yb/master/yql_empty_vtable.h" |
15 | | |
16 | | namespace yb { |
17 | | namespace master { |
18 | | |
19 | | YQLEmptyVTable::YQLEmptyVTable(const TableName& table_name, |
20 | | const NamespaceName& namespace_name, |
21 | | const Master* const master, |
22 | | const Schema& schema) |
23 | 8.03k | : YQLVirtualTable(table_name, namespace_name, master, schema) { |
24 | 8.03k | } |
25 | | |
26 | | Result<std::shared_ptr<QLRowBlock>> YQLEmptyVTable::RetrieveData( |
27 | 49.4k | const QLReadRequestPB& request) const { |
28 | | // Empty rowblock. |
29 | 49.4k | return std::make_shared<QLRowBlock>(schema()); |
30 | 49.4k | } |
31 | | |
32 | | } // namespace master |
33 | | } // namespace yb |