T - input typeV - transformed output typepublic static class IgniteRepositoryQuery.QueryCursorWrapper<T,V> extends AbstractCollection<V> implements QueryCursor<V>
Ensures closing underline cursor when there is no data.
| Constructor and Description |
|---|
QueryCursorWrapper(QueryCursor<T> delegate,
Function<T,V> transformer)
Instantiates a new Query cursor wrapper.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
List<V> |
getAll() |
Iterator<V> |
iterator() |
int |
size() |
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorequals, hashCode, parallelStream, removeIf, spliterator, streampublic QueryCursorWrapper(QueryCursor<T> delegate, Function<T,V> transformer)
delegate - delegate QueryCursor with T input elementstransformer - Function to transform T to V elementspublic Iterator<V> iterator()
iterator in interface Iterable<V>iterator in interface Collection<V>iterator in class AbstractCollection<V>public void close()
close in interface AutoCloseableclose in interface QueryCursor<V>public List<V> getAll()
getAll in interface QueryCursor<V>public int size()
size in interface Collection<V>size in class AbstractCollection<V>
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.1 Release Date : December 9 2020