/Users/deen/code/yugabyte-db/src/yb/docdb/ql_rowwise_iterator_interface.cc
Line | Count | Source (jump to first uncovered line) |
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/docdb/ql_rowwise_iterator_interface.h" |
15 | | |
16 | | #include "yb/util/result.h" |
17 | | |
18 | | namespace yb { |
19 | | namespace docdb { |
20 | | |
21 | 3 | Status YQLRowwiseIteratorIf::GetNextReadSubDocKey(SubDocKey* sub_doc_key) const { |
22 | 3 | return Status::OK(); |
23 | 3 | } |
24 | | |
25 | 0 | Result<Slice> YQLRowwiseIteratorIf::GetTupleId() const { |
26 | 0 | return STATUS(NotSupported, "This iterator does not provide tuple id"); |
27 | 0 | } |
28 | | |
29 | 0 | Result<bool> YQLRowwiseIteratorIf::SeekTuple(const Slice& tuple_id) { |
30 | 0 | return STATUS(NotSupported, "This iterator cannot seek by tuple id"); |
31 | 0 | } |
32 | | |
33 | 30.5M | Status YQLRowwiseIteratorIf::NextRow(const Schema& projection, QLTableRow* table_row) { |
34 | 30.5M | return DoNextRow(projection, table_row); |
35 | 30.5M | } |
36 | | |
37 | 3.66M | Status YQLRowwiseIteratorIf::NextRow(QLTableRow* table_row) { |
38 | 3.66M | return DoNextRow(schema(), table_row); |
39 | 3.66M | } |
40 | | |
41 | | } // namespace docdb |
42 | | } // namespace yb |