docs / it.uniroma3.dbtree / NodeTransfer

NodeTransfer

class NodeTransfer (source)

DTO for a DB-tree node, employed for mediating communications with the database.

This DTO is necessary due to the possible conversion in the representation of the keys(and elements nodes) from database world to the in-memory one. NodeTransfer stores keys and context in the form of strings.

Constructors

<init>

DTO for a DB-tree node, employed for mediating communications with the database.

NodeTransfer(level: Int, k_min: String, k_max: String, context: String)

Properties

context

var context: String

k_max

var k_max: String

k_min

var k_min: String

level

var level: Int

Functions

parseContext

Parse a DTO context into a DBTree one

fun parseContext(): LinkedList<DBElement>

toString

fun toString(): String