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

PairIntIntParser

class PairIntIntParser : KeyParser<PairIntIntKey> (source)

Example of KeyParser class, managing a key: PairIntIntKey.

Constructors

<init>

Example of KeyParser class, managing a key: PairIntIntKey.

PairIntIntParser()

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: PairIntIntKey): String

geqDB

DB query for 'greater than or equal' relationship.

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

getMax

Returns the maximum value for the managed key type.

fun getMax(): PairIntIntKey

getMin

Returns the minimum value for the managed key type..

fun getMin(): PairIntIntKey

gtDB

DB query for 'greater than' relationship.

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

leqDB

DB query for 'less than or equal' relationship.

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

ltDB

DB query for 'less than' relationship.

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

parse

The string s is the string as the format defined in PairIntIntKey.toString.

fun parse(s: String): PairIntIntKey

toDB

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

fun toDB(k: PairIntIntKey): String

toNodeTransfer

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

fun toNodeTransfer(rs: ResultSet): NodeTransfer