A platform for high-performance distributed tool and library development written in C++. It can be deployed in two different cluster modes: standalone or distributed. API for v0.5.0, released on June 13, 2018.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
FileSetPageIterator.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * *
3  * Copyright 2018 Rice University *
4  * *
5  * Licensed under the Apache License, Version 2.0 (the "License"); *
6  * you may not use this file except in compliance with the License. *
7  * You may obtain a copy of the License at *
8  * *
9  * http://www.apache.org/licenses/LICENSE-2.0 *
10  * *
11  * Unless required by applicable law or agreed to in writing, software *
12  * distributed under the License is distributed on an "AS IS" BASIS, *
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
14  * See the License for the specific language governing permissions and *
15  * limitations under the License. *
16  * *
17  *****************************************************************************/
18 
19 #ifndef FILESETPAGEITERATOR_H
20 #define FILESETPAGEITERATOR_H
21 
22 #include "FileSet.h"
23 #include "DataTypes.h"
24 #include "PageCache.h"
25 #include "PageIterator.h"
26 #include <memory>
27 using namespace std;
29 
30 typedef shared_ptr<FileSetPageIterator> FileSetPageIteratorPtr;
31 
33 public:
35  int fileHandle,
36  size_t fileSize,
37  size_t pageSize,
38  NodeID nodeId,
39  DatabaseID dbId,
40  UserTypeID typeId,
41  SetID setId);
42  virtual ~FileSetPageIterator();
43  PDBPagePtr next() override;
44  bool hasNext() override;
45  bool offsetIteratedSize(size_t iteratedSize);
46 
47 private:
49  int handle;
50  size_t fileSize;
51  size_t pageSize;
52  size_t iteratedSize;
58 };
59 
60 #endif
unsigned int SetID
Definition: DataTypes.h:31
shared_ptr< PDBPage > PDBPagePtr
Definition: PDBPage.h:32
shared_ptr< PageCache > PageCachePtr
Definition: PageCache.h:39
unsigned int NodeID
Definition: DataTypes.h:27
unsigned int DatabaseID
Definition: DataTypes.h:29
unsigned int PageID
Definition: DataTypes.h:26
shared_ptr< FileSetPageIterator > FileSetPageIteratorPtr
unsigned int UserTypeID
Definition: DataTypes.h:25