public interface Attribute
Each Attribute knows its join path to the fact table of the star schema. An attribute may be the key or name of a level, or a property of a member such as phone number. An attribute may reside in the fact table, but more commonly resides in a dimension table.
A Measure is a special kind of Attribute.
| Modifier and Type | Method and Description |
|---|---|
double |
estimateSpace()
Estimates the average number of bytes required to store a value of
this attribute.
|
List<Attribute> |
getAncestorAttributes()
Returns a list of Ancestor Attributes that make this attribute unique
|
String |
getCandidateColumnName()
Returns a suggestion for the name of a column in which to store this
attribute as part of an aggregate table.
|
String |
getDatatype(Dialect dialect)
Returns a description of the SQL data type of this attribute in the
given dialect.
|
String |
getLabel()
Returns a description of this attribute for tracing purposes.
|
Table |
getTable()
Returns the table that this attribute belongs to.
|
String getLabel()
Table getTable()
double estimateSpace()
String getCandidateColumnName()
The suggestion does not need to be unique within the table or less than the database's column name limit, but the implementation should try to generate a name that is likely to be unique and descriptive in the first 20 or so characters.
String getDatatype(Dialect dialect)
dialect - DialectCopyright © 2006–2016 Julian Hyde. All rights reserved.