public class JdbcSchema.Table extends Object
Modifier and Type | Class and Description |
---|---|
class |
JdbcSchema.Table.Column
A column in a table.
|
Modifier and Type | Field and Description |
---|---|
MondrianDef.Table |
table |
Modifier and Type | Method and Description |
---|---|
boolean |
constainsColumn(String columnName)
Return true if this table contains a column with the given name.
|
void |
flushUsages()
flushes all star usage references
|
JdbcSchema.Table.Column |
getColumn(String columnName)
Returns a column by its name.
|
Map<String,JdbcSchema.Table.Column> |
getColumnMap() |
Collection<JdbcSchema.Table.Column> |
getColumns()
Returns the collection of columns in this Table.
|
Iterator<JdbcSchema.Table.Column.Usage> |
getColumnUsages(JdbcSchema.UsageType usageType)
Returns an iterator over all column usages of a given type.
|
String |
getName()
Returns the name of the table.
|
long |
getNumberOfRows()
Returns the number of rows in the table.
|
String |
getTableType()
Returns the table's type.
|
mondrian.rolap.aggmatcher.JdbcSchema.TableUsageType |
getTableUsageType()
Returns the table's usage type.
|
int |
getTotalColumnSize()
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).
|
String |
toString() |
public MondrianDef.Table table
public void load() throws SQLException
SQLException
public void flushUsages()
public String getName()
public int getTotalColumnSize()
public long getNumberOfRows()
public Collection<JdbcSchema.Table.Column> getColumns()
public Iterator<JdbcSchema.Table.Column.Usage> getColumnUsages(JdbcSchema.UsageType usageType)
public JdbcSchema.Table.Column getColumn(String columnName)
public boolean constainsColumn(String columnName)
public void setTableUsageType(mondrian.rolap.aggmatcher.JdbcSchema.TableUsageType tableUsageType)
tableUsageType
- Usage typepublic mondrian.rolap.aggmatcher.JdbcSchema.TableUsageType getTableUsageType()
public String getTableType()
public void print(PrintWriter pw, String prefix)
public Map<String,JdbcSchema.Table.Column> getColumnMap()
Copyright © 2020 Hitachi Vantara. All rights reserved.