BadgerDB
 All Classes Namespaces Functions Variables Typedefs Enumerations Friends Pages
btree.cpp
1 
8 #include "btree.h"
9 #include "filescan.h"
10 #include "exceptions/bad_index_info_exception.h"
11 #include "exceptions/bad_opcodes_exception.h"
12 #include "exceptions/bad_scanrange_exception.h"
13 #include "exceptions/no_such_key_found_exception.h"
14 #include "exceptions/scan_not_initialized_exception.h"
15 #include "exceptions/index_scan_completed_exception.h"
16 #include "exceptions/file_not_found_exception.h"
17 #include "exceptions/end_of_file_exception.h"
18 
19 
20 //#define DEBUG
21 
22 namespace badgerdb
23 {
24 
25 // -----------------------------------------------------------------------------
26 // BTreeIndex::BTreeIndex -- Constructor
27 // -----------------------------------------------------------------------------
28 
29 BTreeIndex::BTreeIndex(const std::string & relationName,
30  std::string & outIndexName,
31  BufMgr *bufMgrIn,
32  const int attrByteOffset,
33  const Datatype attrType)
34 {
35 
36 }
37 
38 
39 // -----------------------------------------------------------------------------
40 // BTreeIndex::~BTreeIndex -- destructor
41 // -----------------------------------------------------------------------------
42 
44 {
45 }
46 
47 // -----------------------------------------------------------------------------
48 // BTreeIndex::insertEntry
49 // -----------------------------------------------------------------------------
50 
51 const void BTreeIndex::insertEntry(const void *key, const RecordId rid)
52 {
53 
54 }
55 
56 // -----------------------------------------------------------------------------
57 // BTreeIndex::startScan
58 // -----------------------------------------------------------------------------
59 
60 const void BTreeIndex::startScan(const void* lowValParm,
61  const Operator lowOpParm,
62  const void* highValParm,
63  const Operator highOpParm)
64 {
65 
66 }
67 
68 // -----------------------------------------------------------------------------
69 // BTreeIndex::scanNext
70 // -----------------------------------------------------------------------------
71 
72 const void BTreeIndex::scanNext(RecordId& outRid)
73 {
74 
75 }
76 
77 // -----------------------------------------------------------------------------
78 // BTreeIndex::endScan
79 // -----------------------------------------------------------------------------
80 //
81 const void BTreeIndex::endScan()
82 {
83 
84 }
85 
86 }
Datatype
Datatype enumeration type.
Definition: btree.h:26
The central class which manages the buffer pool including frame allocation and deallocation to pages ...
Definition: buffer.h:161
Operator
Scan operations enumeration. Passed to BTreeIndex::startScan() method.
Definition: btree.h:36
const void endScan()
Definition: btree.cpp:81
BTreeIndex(const std::string &relationName, std::string &outIndexName, BufMgr *bufMgrIn, const int attrByteOffset, const Datatype attrType)
Definition: btree.cpp:29
const void scanNext(RecordId &outRid)
Definition: btree.cpp:72
Identifier for a record in a page.
Definition: types.h:30
const void insertEntry(const void *key, const RecordId rid)
Definition: btree.cpp:51
const void startScan(const void *lowVal, const Operator lowOp, const void *highVal, const Operator highOp)
Definition: btree.cpp:60