Package mondrian.rolap.aggmatcher
Class JdbcSchema.Table
java.lang.Object
mondrian.rolap.aggmatcher.JdbcSchema.Table
- Enclosing class:
- JdbcSchema
A table in a database.
-
Nested Class Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
constainsColumn
(String columnName) Return true if this table contains a column with the given name.void
flushes all star usage referencesReturns a column by its name.Returns the collection of columns in this Table.getColumnUsages
(JdbcSchema.UsageType usageType) Returns an iterator over all column usages of a given type.getName()
Returns the name of the table.long
Returns the number of rows in the table.Returns the table's type.mondrian.rolap.aggmatcher.JdbcSchema.TableUsageType
Returns the table's usage type.int
Returns the total size of a row (sum of the column sizes).void
load()
void
print
(PrintWriter pw, String prefix) void
setTableUsageType
(mondrian.rolap.aggmatcher.JdbcSchema.TableUsageType tableUsageType) Sets the table usage (fact, aggregate or other).toString()
-
Field Details
-
table
-
-
Method Details
-
load
- Throws:
SQLException
-
flushUsages
public void flushUsages()flushes all star usage references -
getName
Returns the name of the table. -
getTotalColumnSize
public int getTotalColumnSize()Returns the total size of a row (sum of the column sizes). -
getNumberOfRows
public long getNumberOfRows()Returns the number of rows in the table. -
getColumns
Returns the collection of columns in this Table. -
getColumnUsages
Returns an iterator over all column usages of a given type. -
getColumn
Returns a column by its name. -
constainsColumn
Return true if this table contains a column with the given name. -
setTableUsageType
public void setTableUsageType(mondrian.rolap.aggmatcher.JdbcSchema.TableUsageType tableUsageType) Sets the table usage (fact, aggregate or other).- Parameters:
tableUsageType
- Usage type
-
getTableUsageType
public mondrian.rolap.aggmatcher.JdbcSchema.TableUsageType getTableUsageType()Returns the table's usage type. -
getTableType
Returns the table's type. -
toString
-
print
-
getColumnMap
-