Class RegisteredQueryCursor<T>
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.QueryCursorImpl<T>
-
- org.apache.ignite.internal.processors.query.h2.RegisteredQueryCursor<T>
-
- All Implemented Interfaces:
AutoCloseable,Iterable<T>,FieldsQueryCursor<T>,QueryCursor<T>,QueryCursorEx<T>
public class RegisteredQueryCursor<T> extends QueryCursorImpl<T>
Query cursor for registered as running queries. Running query will be unregistered during close of cursor.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.ignite.internal.processors.cache.QueryCursorImpl
QueryCursorImpl.LazyIterator<Type extends Object>, QueryCursorImpl.State
-
Nested classes/interfaces inherited from interface org.apache.ignite.internal.processors.cache.query.QueryCursorEx
QueryCursorEx.Consumer<T extends Object>
-
-
Constructor Summary
Constructors Constructor Description RegisteredQueryCursor(Iterable<T> iterExec, GridQueryCancel cancel, RunningQueryManager runningQryMgr, boolean lazy, long qryId, Tracing tracing)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancel()Cancels query.voidclose()protected Iterator<T>iter()-
Methods inherited from class org.apache.ignite.internal.processors.cache.QueryCursorImpl
fieldsMeta, fieldsMeta, getAll, getAll, getColumnsCount, getFieldName, isQuery, iterator, lazy, partitionResult, partitionResult
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
RegisteredQueryCursor
public RegisteredQueryCursor(Iterable<T> iterExec, GridQueryCancel cancel, RunningQueryManager runningQryMgr, boolean lazy, long qryId, Tracing tracing)
- Parameters:
iterExec- Query executor.cancel- Cancellation closure.runningQryMgr- Running query manager.lazy- Lazy mode flag.qryId- Registered running query id.tracing- Tracing processor.
-
-
Method Detail
-
iter
protected Iterator<T> iter()
- Overrides:
iterin classQueryCursorImpl<T>
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceQueryCursor<T>- Overrides:
closein classQueryCursorImpl<T>
-
cancel
public void cancel()
Cancels query.
-
-