Turtle DB
A mini DDBMS
|
Public Member Functions | |
Engine () | |
void | put (String name, Relation r) |
Table | evaluate (Relation query) |
Table | evaluate (String s) |
Table | evaluate (Document d) |
int | getStorageSize () |
int | getTuplesReceived () |
Protected Attributes | |
Map< String, Relation > | m_tables |
int | m_tuplesReceived |
An engine does two things:
Instantiates a new database query engine.
Table ca.uqac.dim.ddb.Engine.evaluate | ( | Relation | query | ) |
Locally evaluates a query
query | The query XML document |
Table ca.uqac.dim.ddb.Engine.evaluate | ( | String | s | ) |
Locally evaluates a query
s | The query string |
Table ca.uqac.dim.ddb.Engine.evaluate | ( | Document | d | ) |
Returns the total number of tuples hosted locally by this database engine. This can be used, in conjunction with getTuplesReceived, to compute cost metrics.
Returns the number of tuples this engine received from the outside world. This can be used, in conjunction with getStorageSize, to compute cost metrics.
void ca.uqac.dim.ddb.Engine.put | ( | String | name, |
Relation | r | ||
) |
Stores a new relation within the engine. Normally one would only store instances of Table here (although any relation can be passed).
name | The relation's name |
r | The relation |
Map<String,Relation> ca.uqac.dim.ddb.Engine.m_tables [protected] |
int ca.uqac.dim.ddb.Engine.m_tuplesReceived [protected] |