1 /* 2 * Copyright (c) 2021 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 #include "kvdb_windowed_result_set.h" 16 17 #include "db_errno.h" 18 19 namespace DistributedDB { KvDBWindowedResultSet()20KvDBWindowedResultSet::KvDBWindowedResultSet() 21 : window_(nullptr) 22 { 23 } 24 ~KvDBWindowedResultSet()25KvDBWindowedResultSet::~KvDBWindowedResultSet() 26 { 27 window_ = nullptr; 28 } 29 Open(bool isMemDb)30int KvDBWindowedResultSet::Open(bool isMemDb) 31 { 32 return -E_NOT_SUPPORT; 33 } 34 GetCount() const35int KvDBWindowedResultSet::GetCount() const 36 { 37 return 0; 38 } 39 GetPosition() const40int KvDBWindowedResultSet::GetPosition() const 41 { 42 return -1; // return invalid position 43 } 44 MoveTo(int position) const45int KvDBWindowedResultSet::MoveTo(int position) const 46 { 47 return -E_NOT_SUPPORT; 48 } 49 GetEntry(Entry & entry) const50int KvDBWindowedResultSet::GetEntry(Entry &entry) const 51 { 52 return -E_NOT_SUPPORT; 53 } 54 Close()55void KvDBWindowedResultSet::Close() 56 { 57 } 58 } // namespace DistributedDB 59