public abstract class SqlAbstractSystemView extends Object implements SqlSystemView
| Modifier and Type | Field and Description |
|---|---|
protected Column[] |
cols
Columns.
|
protected GridKernalContext |
ctx
Grid context.
|
protected static long |
DEFAULT_ROW_COUNT_APPROXIMATION
Default row count approximation.
|
protected String |
desc
Description.
|
protected String[] |
indexes
Indexed column names.
|
protected IgniteLogger |
log
Logger.
|
protected String |
tblName
Table name.
|
| Constructor and Description |
|---|
SqlAbstractSystemView(String tblName,
String desc,
GridKernalContext ctx,
Column[] cols,
String[] indexes) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canGetRowCount()
Check if the row count can be retrieved quickly.
|
Column[] |
getColumns()
Gets columns.
|
String |
getCreateSQL()
Gets SQL script for creating table.
|
String |
getDescription()
Gets description.
|
String[] |
getIndexes()
Gets indexed column names.
|
long |
getRowCount()
Gets row count for this view (or approximated row count, if real value can't be calculated quickly).
|
String |
getTableName()
Gets table name.
|
protected static Column |
newColumn(String name) |
protected static Column |
newColumn(String name,
int type) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRows, isDistributedprotected static final long DEFAULT_ROW_COUNT_APPROXIMATION
protected final String tblName
protected final String desc
protected final GridKernalContext ctx
protected final IgniteLogger log
protected final Column[] cols
protected final String[] indexes
protected static Column newColumn(String name)
name - Name.protected static Column newColumn(String name, int type)
name - Name.type - Type.public String getTableName()
getTableName in interface SqlSystemViewpublic String getDescription()
getDescription in interface SqlSystemViewpublic Column[] getColumns()
getColumns in interface SqlSystemViewpublic String[] getIndexes()
getIndexes in interface SqlSystemViewpublic long getRowCount()
getRowCount in interface SqlSystemViewpublic boolean canGetRowCount()
canGetRowCount in interface SqlSystemViewpublic String getCreateSQL()
getCreateSQL in interface SqlSystemView
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2-p3 Release Date : April 25 2019