|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mondrian.rolap.RolapStar.Column
public static class RolapStar.Column
A column in a star schema.
Constructor Summary | |
---|---|
protected |
RolapStar.Column(SqlQuery.Datatype datatype)
Fake column. |
Method Summary | |
---|---|
static String |
createInExpr(String expr,
StarColumnPredicate predicate,
SqlQuery.Datatype datatype,
SqlQuery sqlQuery)
Generates a predicate that a column matches one of a list of values. |
boolean |
equals(Object obj)
|
String |
generateExprString(SqlQuery query)
Generates a SQL expression, which typically this looks like this: tableName.columnName . |
int |
getBitPosition()
|
int |
getCardinality()
Get column cardinality from the schema cache if possible; otherwise issue a select count(distinct) query to retrieve the cardinality and stores it in the cache. |
SqlQuery.Datatype |
getDatatype()
|
String |
getDatatypeString(SqlQuery.Dialect dialect)
Returns a string representation of the datatype of this column, in the dialect specified. |
MondrianDef.Expression |
getExpression()
|
String |
getName()
|
RolapStar.Column |
getNameColumn()
|
RolapStar.Column |
getParentColumn()
|
SqlQuery |
getSqlQuery()
|
RolapStar |
getStar()
|
RolapStar.Table |
getTable()
|
String |
getUsagePrefix()
|
int |
hashCode()
|
boolean |
isNameColumn()
|
void |
print(PrintWriter pw,
String prefix)
Prints this column. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected RolapStar.Column(SqlQuery.Datatype datatype)
datatype
- DatatypeMethod Detail |
---|
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String getName()
public int getBitPosition()
public RolapStar getStar()
public RolapStar.Table getTable()
public SqlQuery getSqlQuery()
public RolapStar.Column getNameColumn()
public RolapStar.Column getParentColumn()
public String getUsagePrefix()
public boolean isNameColumn()
public MondrianDef.Expression getExpression()
public String generateExprString(SqlQuery query)
tableName.columnName
.
public int getCardinality()
public static String createInExpr(String expr, StarColumnPredicate predicate, SqlQuery.Datatype datatype, SqlQuery sqlQuery)
Several possible outputs, depending upon whether the there are nulls:
foo.bar = 1
foo.bar in (1, 2, 3)
(foo.bar is null or foo.bar in (1, 2))
foo.bar is null
foo.bar in ('a', 'b', 'c')
public String toString()
toString
in class Object
public void print(PrintWriter pw, String prefix)
pw
- Print writerprefix
- Prefix to print first, such as spaces for indentationpublic SqlQuery.Datatype getDatatype()
public String getDatatypeString(SqlQuery.Dialect dialect)
dialect
- Dialect
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |