Class SqlAbstractLocalSystemView
- java.lang.Object
-
- org.apache.ignite.internal.processors.query.h2.sys.view.SqlAbstractSystemView
-
- org.apache.ignite.internal.processors.query.h2.sys.view.SqlAbstractLocalSystemView
-
- All Implemented Interfaces:
SqlSystemView
- Direct Known Subclasses:
SystemViewLocal
public abstract class SqlAbstractLocalSystemView extends SqlAbstractSystemView
Local system view base class (which uses only local node data).
-
-
Field Summary
-
Fields inherited from class org.apache.ignite.internal.processors.query.h2.sys.view.SqlAbstractSystemView
cols, ctx, DEFAULT_ROW_COUNT_APPROXIMATION, desc, indexes, log, tblName
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSqlAbstractLocalSystemView(String tblName, String desc, GridKernalContext ctx, String[] indexes, org.h2.table.Column... cols)protectedSqlAbstractLocalSystemView(String tblName, String desc, GridKernalContext ctx, String indexedCols, org.h2.table.Column... cols)protectedSqlAbstractLocalSystemView(String tblName, String desc, GridKernalContext ctx, org.h2.table.Column... cols)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SqlSystemViewColumnConditionconditionForColumn(String colName, org.h2.result.SearchRow first, org.h2.result.SearchRow last)Parse condition for column.protected org.h2.result.RowcreateRow(org.h2.engine.Session ses, Object... data)protected intgetColumnIndex(String colName)Gets column index by name.booleanisDistributed()protected static @Nullable StringnodeFilter(CacheConfiguration<?,?> ccfg)Get node's filter string representation.protected static @Nullable StringtoStringSafe(@Nullable Object obj)Get string representation of an object properly catching all exceptions.protected static UUIDuuidFromValue(org.h2.value.Value val)Converts value to UUID safe (suppressing exceptions).protected static org.h2.value.ValuevalueTimestampFromMillis(long millis)Converts millis to ValueTimestamp-
Methods inherited from class org.apache.ignite.internal.processors.query.h2.sys.view.SqlAbstractSystemView
canGetRowCount, getColumns, getCreateSQL, getDescription, getIndexes, getRowCount, getRowCountApproximation, getTableName, newColumn, newColumn
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.ignite.internal.processors.query.h2.sys.view.SqlSystemView
getRows
-
-
-
-
Constructor Detail
-
SqlAbstractLocalSystemView
protected SqlAbstractLocalSystemView(String tblName, String desc, GridKernalContext ctx, String[] indexes, org.h2.table.Column... cols)
- Parameters:
tblName- Table name.desc- Description.ctx- Context.indexes- Indexes.cols- Columns.
-
SqlAbstractLocalSystemView
protected SqlAbstractLocalSystemView(String tblName, String desc, GridKernalContext ctx, String indexedCols, org.h2.table.Column... cols)
- Parameters:
tblName- Table name.desc- Description.ctx- Context.indexedCols- Indexed columns.cols- Columns.
-
SqlAbstractLocalSystemView
protected SqlAbstractLocalSystemView(String tblName, String desc, GridKernalContext ctx, org.h2.table.Column... cols)
- Parameters:
tblName- Table name.desc- Description.ctx- Context.cols- Columns.
-
-
Method Detail
-
createRow
protected org.h2.result.Row createRow(org.h2.engine.Session ses, Object... data)- Parameters:
ses- Session.data- Data for each column.
-
getColumnIndex
protected int getColumnIndex(String colName)
Gets column index by name.- Parameters:
colName- Column name.
-
isDistributed
public boolean isDistributed()
- Returns:
Trueif view is distributed.
-
conditionForColumn
protected SqlSystemViewColumnCondition conditionForColumn(String colName, org.h2.result.SearchRow first, org.h2.result.SearchRow last)
Parse condition for column.- Parameters:
colName- Column name.first- First.last- Last.
-
uuidFromValue
protected static UUID uuidFromValue(org.h2.value.Value val)
Converts value to UUID safe (suppressing exceptions).- Parameters:
val- UUID.
-
valueTimestampFromMillis
protected static org.h2.value.Value valueTimestampFromMillis(long millis)
Converts millis to ValueTimestamp- Parameters:
millis- Millis.
-
nodeFilter
@Nullable protected static @Nullable String nodeFilter(CacheConfiguration<?,?> ccfg)
Get node's filter string representation.- Parameters:
ccfg- Cache configuration.- Returns:
- String representation of node filter.
-
-