QueryDSLBuilder

folap.olapdsl.QueryDSLBuilder

DSL builder object for OLAP queries. Provides natural syntax for olap operations.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Extensions

Extensions

extension [A <: Attribute, M <: Measure, E <: Event[A, M]](op: AggregationOp)
infix def of(q: QueryDSL[A, M, E]): QueryWithOp[A, M, E]

Wraps a cube and a roll-up operation into a QueryWithOp.

Wraps a cube and a roll-up operation into a QueryWithOp.

Value parameters

q

the query (cube) to which the operation will be applied

Attributes

Returns

a QueryWithOp with the cube and operation

extension [A <: Attribute, M <: Measure, E <: Event[A, M]](q: QueryDSL[A, M, E])
infix def union[A2 <: Attribute, M2 <: Measure, E2 <: Event[A2, M2], E3 <: Event[A, M | M2]](other: QueryDSL[A2, M2, E2])(using constructor: (A, M | M2) => E3): QueryDSL[A, M | M2, E3]

Performs a drill across between two queries (cubes).

Performs a drill across between two queries (cubes).

Value parameters

constructor

given constructor used to create events

other

other cube to combine witt

Attributes

Returns

a new QueryDSL representing the drill-across result

infix def where(filters: Iterable[Attribute]): QueryDSL[A, M, E]

Performs the slice and dice

Performs the slice and dice

Value parameters

filters

attributes used as filters

Attributes

Returns

a new QueryDSL instance (cube) with filtered events

infix def where(filter: Attribute): QueryDSL[A, M, E]

Performs the slice and dice

Performs the slice and dice

Value parameters

filter

attribute used as filter

Attributes

Returns

a new QueryDSL instance (cube) with filtered events

extension [A <: Attribute, M <: Measure, M2 <: Measure, E <: Event[A, M]](qwo: QueryWithOp[A, M, E])
def by(attributes: Iterable[Attribute])(using computable: Computable[A, M, E]): QueryDSL[A, M, E]

Aggregates the cube by a set of attributes using the specified roll up operation.

Aggregates the cube by a set of attributes using the specified roll up operation.

Value parameters

attributes

attributes to group by

constructor

implicit constructor used to create events

Attributes

Returns

a new QueryDSL containing the rolled-up result.

def by(attribute: String)(using computable: Computable[A, M, E]): QueryDSL[A, M, E]

Aggregates the cube by a single attribute using the specified roll up operation.

Aggregates the cube by a single attribute using the specified roll up operation.

Value parameters

attribute

name of the attribute to group by

constructor

implicit constructor used to create events

Attributes

Returns

a new QueryDSL containing the rolled-up result.