public class AggStar extends Object
There is the following class structure:
AggStar Table JoinCondition Column Level extends Column FactTable extends Table Measure extends Table.Column DimTable extends Table
Each inner class is non-static meaning that instances have implied references to the enclosing object.
Modifier and Type | Class and Description |
---|---|
class |
AggStar.DimTable
This class represents a dimension table.
|
class |
AggStar.FactTable
This is an aggregate fact table.
|
class |
AggStar.Table
Base Table class for the FactTable and DimTable classes.
|
Modifier and Type | Method and Description |
---|---|
AggStar.Table |
findTable(String name)
Find a table by name (alias) that is a descendant of the base
fact table.
|
BitKey |
getBitKey()
Returns the BitKey.
|
BitKey |
getDistinctMeasureBitKey()
Returns a BitKey containing only distinct measures.
|
AggStar.FactTable |
getFactTable()
Get the fact table.
|
BitKey |
getForeignKeyBitKey() |
BitKey |
getLevelBitKey()
Get the foreign-key/level BitKey.
|
BitKey |
getMeasureBitKey()
Returns a BitKey of all measures.
|
long |
getSize()
Returns a measure of the IO cost of querying this table.
|
RolapStar |
getStar()
Get this AggStar's RolapStar.
|
boolean |
hasForeignKeys()
Returns whether this AggStar has foreign keys.
|
boolean |
hasIgnoredColumns() |
boolean |
hasLevels()
Return true if AggStar has levels
|
boolean |
hasMeasures()
Return true if AggStar has measures
|
boolean |
isFullyCollapsed()
Returns true if every level column in the AggStar is collapsed.
|
AggStar.Table.Column |
lookupColumn(int bitPos)
Get the Column at the bit position.
|
AggStar.Table.Level |
lookupLevel(int bitPos)
Get the Level at the given bit position or return null.
|
AggStar.FactTable.Measure |
lookupMeasure(int bitPos)
Get the Measure at the given bit position or return null.
|
static 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. |
void |
print(PrintWriter pw,
String prefix)
Print this AggStar.
|
boolean |
select(BitKey levelBitKey,
BitKey coreLevelBitKey,
BitKey measureBitKey)
Return true if this AggStar's level BitKey equals the
levelBitKey parameter
and if this AggStar's measure BitKey is a super set
(proper or not) of the measureBitKey parameter. |
boolean |
superSetMatch(BitKey bitKey)
Is this AggStar's BitKey a super set (proper or not) of the BitKey
parameter.
|
String |
toString() |
public static AggStar makeAggStar(RolapStar star, JdbcSchema.Table dbTable, MessageRecorder msgRecorder, long approxRowCount)
AggStar.Table
, AggStar.Table.Column
s,
etc.public AggStar.FactTable getFactTable()
public AggStar.Table findTable(String name)
name
- the table to findpublic long getSize()
MondrianProperties.ChooseAggregateByVolume
is true, then volume is returned, otherwise row count.public BitKey getForeignKeyBitKey()
public boolean superSetMatch(BitKey bitKey)
public boolean select(BitKey levelBitKey, BitKey coreLevelBitKey, BitKey measureBitKey)
levelBitKey
parameter
and if this AggStar's measure BitKey is a super set
(proper or not) of the measureBitKey
parameter.public RolapStar getStar()
public boolean hasMeasures()
public boolean hasLevels()
public boolean hasForeignKeys()
public BitKey getBitKey()
public BitKey getLevelBitKey()
public BitKey getMeasureBitKey()
public BitKey getDistinctMeasureBitKey()
public AggStar.FactTable.Measure lookupMeasure(int bitPos)
public AggStar.Table.Level lookupLevel(int bitPos)
public AggStar.Table.Column lookupColumn(int bitPos)
public boolean isFullyCollapsed()
public boolean hasIgnoredColumns()
public void print(PrintWriter pw, String prefix)
Copyright © 2020 Hitachi Vantara. All rights reserved.