|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mondrian.rolap.aggmatcher.AggStar
public class AggStar
This is an aggregate table version of a RolapStar for a fact table.
There is the following class structure:
AggStar Table JoinCondition Column Level extends Column FactTable extends Table Measure extends Table.Column DimTable extends TableEach inner class is non-static meaning that instances have implied references to the enclosing object.
Nested Class Summary | |
---|---|
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. |
Constructor Summary | |
---|---|
AggStar(RolapStar star,
JdbcSchema.Table aggTable)
|
Method Summary | |
---|---|
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. |
(package private) static org.apache.log4j.Logger |
getLogger()
|
BitKey |
getMeasureBitKey()
Returns a BitKey of all measures. |
int |
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 |
hasLevels()
Return true if AggStar has levels |
boolean |
hasMeasures()
Return true if AggStar has measures |
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)
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. |
(package private) void |
setForeignKey(int index)
|
boolean |
superSetMatch(BitKey bitKey)
Is this AggStar's BitKey a super set (proper or not) of the BitKey parameter. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
AggStar(RolapStar star, JdbcSchema.Table aggTable)
Method Detail |
---|
static org.apache.log4j.Logger getLogger()
public static AggStar makeAggStar(RolapStar star, JdbcSchema.Table dbTable, MessageRecorder msgRecorder)
AggStar.Table
, AggStar.Table.Column
s,
etc.
public AggStar.FactTable getFactTable()
public AggStar.Table findTable(String name)
name
- the table to find
public int getSize()
MondrianProperties.ChooseAggregateByVolume
is true, then volume is returned, otherwise row count.
void setForeignKey(int index)
public BitKey getForeignKeyBitKey()
public boolean superSetMatch(BitKey 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)
bitPos
-
public AggStar.Table.Level lookupLevel(int bitPos)
bitPos
-
public AggStar.Table.Column lookupColumn(int bitPos)
public String toString()
toString
in class Object
public void print(PrintWriter pw, String prefix)
pw
- prefix
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |