Package | Description |
---|---|
mondrian.rolap |
Implements the data access layer for the olap package.
|
mondrian.rolap.agg |
Manages a cache of aggregates containing cell values.
|
mondrian.rolap.aggmatcher |
Defines a 'matcher' which scans the schema to find candidate aggregate tables.
|
mondrian.rolap.sql |
Database-independent library for generating SQL.
|
Modifier and Type | Method and Description |
---|---|
List<AggStar> |
RolapStar.getAggStars()
Returns this RolapStar's aggregate table AggStars, ordered in ascending
order of size.
|
Modifier and Type | Method and Description |
---|---|
void |
RolapStar.addAggStar(AggStar aggStar)
Adds an
AggStar to this star. |
void |
RolapNativeSet.SetConstraint.addConstraint(SqlQuery sqlQuery,
RolapCube baseCube,
AggStar aggStar) |
void |
SqlContextConstraint.addConstraint(SqlQuery sqlQuery,
RolapCube baseCube,
AggStar aggStar)
Called from LevelMembers: restricts the SQL resultset to the current
context.
|
void |
DefaultTupleConstraint.addConstraint(SqlQuery sqlQuery,
RolapCube baseCube,
AggStar aggStar) |
static void |
SqlConstraintUtils.addContextConstraint(SqlQuery sqlQuery,
AggStar aggStar,
Evaluator evaluator,
RolapCube baseCube,
boolean restrictMemberTypes)
For every restricting member in the current context, generates
a WHERE condition and a join to the fact table.
|
void |
SqlContextConstraint.addLevelConstraint(SqlQuery sqlQuery,
RolapCube baseCube,
AggStar aggStar,
RolapLevel level) |
void |
DefaultMemberChildrenConstraint.addLevelConstraint(SqlQuery query,
RolapCube baseCube,
AggStar aggStar,
RolapLevel level) |
void |
DefaultTupleConstraint.addLevelConstraint(SqlQuery sqlQuery,
RolapCube baseCube,
AggStar aggStar,
RolapLevel level) |
protected void |
SqlTupleReader.addLevelMemberSql(SqlQuery sqlQuery,
RolapLevel level,
RolapCube baseCube,
mondrian.rolap.SqlTupleReader.WhichSelect whichSelect,
AggStar aggStar)
Generates the SQL statement to access members of
level . |
void |
SqlContextConstraint.addMemberConstraint(SqlQuery sqlQuery,
RolapCube baseCube,
AggStar aggStar,
List<RolapMember> parents)
Adds
parents to the current
context and restricts the SQL resultset to that new context. |
void |
DefaultMemberChildrenConstraint.addMemberConstraint(SqlQuery sqlQuery,
RolapCube baseCube,
AggStar aggStar,
List<RolapMember> parents) |
static void |
SqlConstraintUtils.addMemberConstraint(SqlQuery sqlQuery,
RolapCube baseCube,
AggStar aggStar,
List<RolapMember> members,
boolean restrictMemberTypes,
boolean crossJoin,
boolean exclude)
Creates a "WHERE exp IN (...)" condition containing the values
of all parents.
|
void |
SqlContextConstraint.addMemberConstraint(SqlQuery sqlQuery,
RolapCube baseCube,
AggStar aggStar,
RolapMember parent)
Called from MemberChildren: adds
parent to the current
context and restricts the SQL resultset to that new context. |
void |
DefaultMemberChildrenConstraint.addMemberConstraint(SqlQuery sqlQuery,
RolapCube baseCube,
AggStar aggStar,
RolapMember parent) |
static void |
SqlConstraintUtils.addMemberConstraint(SqlQuery sqlQuery,
RolapCube baseCube,
AggStar aggStar,
RolapMember parent,
boolean restrictMemberTypes)
Creates a "WHERE parent = value" constraint.
|
static String |
SqlConstraintUtils.constrainLevel(RolapLevel level,
SqlQuery query,
RolapCube baseCube,
AggStar aggStar,
String[] columnValue,
boolean caseSensitive)
Generates a sql expression constraining a level by some value
|
static String |
SqlConstraintUtils.constrainLevel(RolapLevel level,
SqlQuery query,
RolapCube baseCube,
AggStar aggStar,
String columnValue,
boolean caseSensitive) |
static String |
SqlConstraintUtils.getColumnExpr(SqlQuery sqlQuery,
AggStar aggStar,
RolapStar.Column column)
Get the column expression from the AggStar if provided or the regular
table if not, and ensure table is in From
|
static void |
SqlConstraintUtils.joinLevelTableToFactTable(SqlQuery sqlQuery,
RolapCube baseCube,
AggStar aggStar,
Evaluator e,
RolapCubeLevel level)
Ensures that the table of
level is joined to the fact
table |
Constructor and Description |
---|
RolapNativeSql(SqlQuery sqlQuery,
AggStar aggStar,
Evaluator evaluator,
RolapLevel rolapLevel)
Creates a RolapNativeSql.
|
Modifier and Type | Method and Description |
---|---|
static AggStar |
AggregationManager.findAgg(RolapStar star,
BitKey levelBitKey,
BitKey measureBitKey,
boolean[] rollup)
Finds an aggregate table in the given star which has the desired levels
and measures.
|
Modifier and Type | Method and Description |
---|---|
protected AggStar |
AggStar.Table.getAggStar()
Get this table's enclosing AggStar.
|
static AggStar |
AggStar.makeAggStar(RolapStar star,
JdbcSchema.Table dbTable,
MessageRecorder msgRecorder,
long approxRowCount)
Creates an AggStar and all of its
AggStar.Table , AggStar.Table.Column s,
etc. |
Modifier and Type | Method and Description |
---|---|
void |
TupleConstraint.addConstraint(SqlQuery sqlQuery,
RolapCube baseCube,
AggStar aggStar)
Modifies a Level.Members query.
|
void |
CrossJoinArg.addConstraint(SqlQuery sqlQuery,
RolapCube baseCube,
AggStar aggStar) |
void |
DescendantsCrossJoinArg.addConstraint(SqlQuery sqlQuery,
RolapCube baseCube,
AggStar aggStar) |
void |
MemberListCrossJoinArg.addConstraint(SqlQuery sqlQuery,
RolapCube baseCube,
AggStar aggStar) |
void |
MemberKeyConstraint.addConstraint(SqlQuery sqlQuery,
RolapCube baseCube,
AggStar aggStar) |
void |
TupleConstraint.addLevelConstraint(SqlQuery sqlQuery,
RolapCube baseCube,
AggStar aggStar,
RolapLevel level)
Will be called multiple times for every "group by" level in
Level.Members query, i.e.
|
void |
MemberChildrenConstraint.addLevelConstraint(SqlQuery query,
RolapCube baseCube,
AggStar aggStar,
RolapLevel level)
Will be called once for the level that contains the
children of a Member.Children query.
|
void |
MemberKeyConstraint.addLevelConstraint(SqlQuery sqlQuery,
RolapCube baseCube,
AggStar aggStar,
RolapLevel level) |
void |
MemberChildrenConstraint.addMemberConstraint(SqlQuery sqlQuery,
RolapCube baseCube,
AggStar aggStar,
List<RolapMember> parents)
Modifies a
Member.Children query so that (all or some)
children of all parent members contained in parents
will be returned in the result set. |
void |
MemberChildrenConstraint.addMemberConstraint(SqlQuery sqlQuery,
RolapCube baseCube,
AggStar aggStar,
RolapMember parent)
Modifies a
Member.Children query so that only the children
of parent will be returned in the result set. |
Copyright © 2020 Hitachi Vantara. All rights reserved.