Class H2ResultSetIterator<T>
- java.lang.Object
-
- org.apache.ignite.internal.util.lang.GridIteratorAdapter<T>
-
- org.apache.ignite.internal.processors.query.h2.H2ResultSetIterator<T>
-
- All Implemented Interfaces:
Serializable,AutoCloseable,Iterable<T>,Iterator<T>,GridSerializableIterator<T>,GridCloseableIterator<T>,GridIterator<T>,IgniteSpiCloseableIterator<T>
- Direct Known Subclasses:
H2FieldsIterator
public abstract class H2ResultSetIterator<T> extends GridIteratorAdapter<T> implements GridCloseableIterator<T>
Iterator over result set.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedH2ResultSetIterator(ResultSet data, int pageSize, IgniteLogger log, IgniteH2Indexing h2, H2QueryInfo qryInfo, Tracing tracing)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidclose()protected abstract TcreateRow()booleanhasNextX()booleanisClosed()voidlockTables()TnextX()voidonClose()voidremoveX()StringtoString()voidunlockTables()-
Methods inherited from class org.apache.ignite.internal.util.lang.GridIteratorAdapter
hasNext, iterator, next, remove
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Methods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next, remove
-
-
-
-
Constructor Detail
-
H2ResultSetIterator
protected H2ResultSetIterator(ResultSet data, int pageSize, IgniteLogger log, IgniteH2Indexing h2, H2QueryInfo qryInfo, Tracing tracing) throws IgniteCheckedException
- Parameters:
data- Data array.log- Logger.h2- Indexing H2.pageSize- Page size.tracing- Tracing processor.- Throws:
IgniteCheckedException- If failed.
-
-
Method Detail
-
lockTables
public void lockTables()
-
unlockTables
public void unlockTables()
-
createRow
protected abstract T createRow()
- Returns:
- Row.
-
onClose
public void onClose() throws IgniteCheckedException- Throws:
IgniteCheckedException- On error.
-
close
public void close() throws IgniteCheckedException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceGridCloseableIterator<T>- Specified by:
closein interfaceIgniteSpiCloseableIterator<T>- Throws:
IgniteCheckedException
-
isClosed
public boolean isClosed()
- Specified by:
isClosedin interfaceGridCloseableIterator<T>
-
hasNextX
public boolean hasNextX() throws IgniteCheckedException- Specified by:
hasNextXin interfaceGridIterator<T>- Throws:
IgniteCheckedException
-
nextX
public T nextX() throws IgniteCheckedException
- Specified by:
nextXin interfaceGridIterator<T>- Throws:
IgniteCheckedException
-
removeX
public void removeX() throws IgniteCheckedException- Specified by:
removeXin interfaceGridIterator<T>- Throws:
IgniteCheckedException
-
-