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
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanconstainsColumn(String columnName) Return true if this table contains a column with the given name.voidflushes 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.longReturns the number of rows in the table.Returns the table's type.mondrian.rolap.aggmatcher.JdbcSchema.TableUsageTypeReturns the table's usage type.intReturns the total size of a row (sum of the column sizes).voidload()voidprint(PrintWriter pw, String prefix) voidsetTableUsageType(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
-