docs / it.uniroma3.dbtree.spi.impl.keyParsers / IntParser

IntParser

class IntParser : KeyParser<Int> (source)

Example of KeyParser class, managing simple key: Int.

Constructors

<init>

Example of KeyParser class, managing simple key: Int.

IntParser()

Properties

keyColumnsDefinitionDB

It is the list of all the column names and their definition that identify a key.

val keyColumnsDefinitionDB: List<Pair<String, String>>

Functions

eqDB

DB query for 'equal to' relationship.

fun eqDB(columnName: List<String>, k: Int): String

geqDB

DB query for 'greater than or equal' relationship.

fun geqDB(columnName: List<String>, k: Int): String

getMax

Returns the maximum value for the managed key type.

fun getMax(): Int

getMin

Returns the minimum value for the managed key type..

fun getMin(): Int

gtDB

DB query for 'greater than' relationship.

fun gtDB(columnName: List<String>, k: Int): String

leqDB

DB query for 'less than or equal' relationship.

fun leqDB(columnName: List<String>, k: Int): String

ltDB

DB query for 'less than' relationship.

fun ltDB(columnName: List<String>, k: Int): String

parse

Parses a key given the corresponding serialized representation.

fun parse(s: String): Int

toDB

Returns the full representation of a key into the underlying database.

fun toDB(k: Int): String

toNodeTransfer

Converts the ResultSet of a DB tuple into the corresponding NodeTransfer.

fun toNodeTransfer(rs: ResultSet): NodeTransfer