CubeExpression

data class CubeExpression<T : Any>(val type: CubeExpressionType, val left: ScalarExpression<*>, val right: ScalarExpression<*>, val sqlType: SqlType<T>, val isLeafNode: Boolean = false, val extraProperties: Map<String, Any> = emptyMap()) : ScalarExpression<T> (source)

Expression class represents PostgreSQL Cube operations.

Constructors

Link copied to clipboard
constructor(type: CubeExpressionType, left: ScalarExpression<*>, right: ScalarExpression<*>, sqlType: SqlType<T>, isLeafNode: Boolean = false, extraProperties: Map<String, Any> = emptyMap())

Properties

Link copied to clipboard
open override val extraProperties: Map<String, Any>
Link copied to clipboard
open override val isLeafNode: Boolean = false
Link copied to clipboard

the expression's left operand.

Link copied to clipboard

the expression's right operand.

Link copied to clipboard
open override val sqlType: SqlType<T>
Link copied to clipboard

the expression's type.

Functions

Link copied to clipboard
open override fun aliased(label: String?): ColumnDeclaringExpression<T>
Link copied to clipboard
open override fun asExpression(): ScalarExpression<T>
Link copied to clipboard
@JvmName(name = "earthContainedIn")
fun ColumnDeclaring<Earth>.containedIn(argument: Cube): CubeExpression<Boolean>

Cube contained in operator, translated to the <@ operator in PostgreSQL.

HStore contained-in operator, translated to the <@ operator in PostgreSQL.

Link copied to clipboard

HStore contains operator, translated to the @> operator in PostgreSQL.

@JvmName(name = "containsEarth")
fun ColumnDeclaring<Cube>.contains(argument: Earth): CubeExpression<Boolean>

Cube contains operator, translated to the @> operator in PostgreSQL.

Link copied to clipboard

HStore contains-all-keys operator, translated to the ?& operator in PostgreSQL.

Link copied to clipboard

HStore contains-any-keys operator, translated to the ?| operator in PostgreSQL.

Link copied to clipboard

HStore contains-key operator, translated to the ? operator in PostgreSQL.

Link copied to clipboard
@JvmName(name = "getValues")
operator fun ColumnDeclaring<HStore>.get(argument: TextArray): HStoreExpression<TextArray>

HStore get-values-for-keys operator, translated to the -> operator in PostgreSQL.

@JvmName(name = "getValue")
operator fun ColumnDeclaring<HStore>.get(argument: String): HStoreExpression<String>
@JvmName(name = "getValue")
operator fun ColumnDeclaring<HStore>.get(expr: ColumnDeclaring<String>): HStoreExpression<String>

HStore get-value-for-key operator, translated to the -> operator in PostgreSQL.

Link copied to clipboard
infix fun ColumnDeclaring<*>.ilike(argument: String): ILikeExpression

ILike operator, translated to the ilike keyword in PostgreSQL.

Link copied to clipboard
@JvmName(name = "minusKeys")
operator fun ColumnDeclaring<HStore>.minus(argument: TextArray): HStoreExpression<HStore>

HStore delete-keys operator, translated to the - operator in PostgreSQL.

@JvmName(name = "minusKey")
operator fun ColumnDeclaring<HStore>.minus(argument: String): HStoreExpression<HStore>

HStore delete-key operator, translated to the - operator in PostgreSQL.

@JvmName(name = "minusMatching")
operator fun ColumnDeclaring<HStore>.minus(argument: HStore): HStoreExpression<HStore>
@JvmName(name = "minusMatching")
operator fun ColumnDeclaring<HStore>.minus(expr: ColumnDeclaring<HStore>): HStoreExpression<HStore>

HStore delete-matching-pairs operator, translated to the - operator in PostgreSQL.

Link copied to clipboard

Cube overlap operator, translated to the && operator in PostgreSQL.

Link copied to clipboard

HStore concatenate operator, translated to the || operator in PostgreSQL.

Link copied to clipboard
open override fun wrapArgument(argument: T?): ArgumentExpression<T>