Class SystemViewLocal<R>
- java.lang.Object
-
- org.apache.ignite.internal.processors.query.h2.sys.view.SqlAbstractSystemView
-
- org.apache.ignite.internal.processors.query.h2.sys.view.SqlAbstractLocalSystemView
-
- org.apache.ignite.internal.processors.query.h2.sys.view.SystemViewLocal<R>
-
- All Implemented Interfaces:
SqlSystemView
- Direct Known Subclasses:
FiltrableSystemViewLocal
public class SystemViewLocal<R> extends SqlAbstractLocalSystemView
SQL system view to exportSystemViewdata.
-
-
Field Summary
Fields Modifier and Type Field Description protected SystemView<R>sysViewSystem view for export.-
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 SystemViewLocal(GridKernalContext ctx, SystemView<R> sysView)protectedSystemViewLocal(GridKernalContext ctx, SystemView<R> sysView, String[] indexes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanGetRowCount()Check if the row count can be retrieved quickly.longgetRowCount()Gets row count for this view (or approximated row count, if real value can't be calculated quickly).longgetRowCountApproximation()Gets approximated row count (required to build execution plan).Iterator<org.h2.result.Row>getRows(org.h2.engine.Session ses, org.h2.result.SearchRow first, org.h2.result.SearchRow last)Gets view content.protected Iterator<R>viewIterator(org.h2.result.SearchRow first, org.h2.result.SearchRow last)System view iterator.-
Methods inherited from class org.apache.ignite.internal.processors.query.h2.sys.view.SqlAbstractLocalSystemView
conditionForColumn, createRow, getColumnIndex, isDistributed, nodeFilter, toStringSafe, uuidFromValue, valueTimestampFromMillis
-
Methods inherited from class org.apache.ignite.internal.processors.query.h2.sys.view.SqlAbstractSystemView
getColumns, getCreateSQL, getDescription, getIndexes, getTableName, newColumn, newColumn
-
-
-
-
Field Detail
-
sysView
protected final SystemView<R> sysView
System view for export.
-
-
Constructor Detail
-
SystemViewLocal
protected SystemViewLocal(GridKernalContext ctx, SystemView<R> sysView, String[] indexes)
- Parameters:
ctx- Kernal context.sysView- View to export.indexes- Indexed fields.
-
SystemViewLocal
public SystemViewLocal(GridKernalContext ctx, SystemView<R> sysView)
- Parameters:
ctx- Kernal context.sysView- View to export.
-
-
Method Detail
-
viewIterator
protected Iterator<R> viewIterator(org.h2.result.SearchRow first, org.h2.result.SearchRow last)
System view iterator.
-
getRows
public Iterator<org.h2.result.Row> getRows(org.h2.engine.Session ses, org.h2.result.SearchRow first, org.h2.result.SearchRow last)
Gets view content.- Parameters:
ses- Session.first- First.last- Last.
-
getRowCount
public long getRowCount()
Gets row count for this view (or approximated row count, if real value can't be calculated quickly).- Specified by:
getRowCountin interfaceSqlSystemView- Overrides:
getRowCountin classSqlAbstractSystemView
-
getRowCountApproximation
public long getRowCountApproximation()
Gets approximated row count (required to build execution plan).- Specified by:
getRowCountApproximationin interfaceSqlSystemView- Overrides:
getRowCountApproximationin classSqlAbstractSystemView
-
canGetRowCount
public boolean canGetRowCount()
Check if the row count can be retrieved quickly.- Specified by:
canGetRowCountin interfaceSqlSystemView- Overrides:
canGetRowCountin classSqlAbstractSystemView- Returns:
- true if it can
-
-