![]() |
mutable
A Database System for Research and Fast Prototyping
|
The base class for indexes. More...
#include <Index.hpp>
Public Member Functions | |
IndexBase (IndexBase &&)=default | |
virtual | ~IndexBase () |
virtual void | bulkload (const Table &table, const Schema &key_schema)=0 |
Bulkloads the index by executing a query on table using key_schema . | |
virtual std::size_t | num_entries () const =0 |
virtual IndexMethod | method () const =0 |
Returns the IndexMethod of the index. | |
virtual void | dump (std::ostream &out) const =0 |
virtual void | dump () const =0 |
Protected Member Functions | |
IndexBase ()=default | |
Static Protected Member Functions | |
static std::string | build_query (const Table &table, const Schema &schema) |
Constructs a query string to select all attributes in schema from table . | |
|
protecteddefault |
|
default |
Constructs a query string to select all attributes in schema
from table
.
Definition at line 40 of file Index.cpp.
References m::Schema::at(), m::Schema::entry_type::id, m::Table::name(), and m::Schema::num_entries().
|
pure virtual |
Bulkloads the index by executing a query on table
using key_schema
.
Implemented in m::idx::ArrayIndex< Key >.
|
pure virtual |
Implemented in m::idx::ArrayIndex< Key >, and m::idx::RecursiveModelIndex< Key >.
|
pure virtual |
Implemented in m::idx::ArrayIndex< Key >, and m::idx::RecursiveModelIndex< Key >.
|
pure virtual |
Returns the IndexMethod
of the index.
Implemented in m::idx::ArrayIndex< Key >, and m::idx::RecursiveModelIndex< Key >.
|
pure virtual |
Implemented in m::idx::ArrayIndex< Key >.