docs / it.uniroma3.dbtree / DBElement

DBElement

class DBElement (source)

Class representing the atomic component of each node.

Can be either an aggregated value (A:x), or a key-value pair (P:(x,y)). The discrimination happens by means of the boolean

Field

isAgg: that goes true if the content is an aggregated value.

The DBElement stores the values of pairs and aggregated values in the form of Strings (i.e. they are always stored as non-parsed, hence not in their actual types). Parsing to the actual type is performed every time we need to execute some operation (e.g. comparisons, etc) with the actual content of the DBElement.

Constructors

<init>

Class representing the atomic component of each node.

DBElement(content: String)

Functions

isAgg

fun isAgg(): Boolean

isPair

fun isPair(): Boolean

k

Returns the key of the element. PRE: value is not A.

fun k(): String

setV

Sets the value of a DBElement.

fun setV(s: String): Unit

toString

fun toString(): String

v

fun v(): String