docs / it.uniroma3.dbtree.spi / Connector / connect

connect

abstract fun connect(aggrFunName: String, maxLevel: Int, initRootContext: String): Unit (source)

Connects with the underlying database.

The connection should either recover the state left by the previous close(), or (in case no previous state is found) start a new one.

Connector should make sure that:

Parameters

aggrFunName - the aggregation function's name.

maxLevel - the level of the root for the DB-tree.

initRootContext - the identity aggregate value (for the root) wrt the aggregation function.