Show / Hide Table of Contents

# Interface IQueryCursor<T>

Query result cursor. Can be processed either in iterative mode, or by taking all entries using GetAll() method.

Note that you get enumerator or call `GetAll()` method only once during cursor lifetime. Any further attempts to get enumerator or all entries will result in exception.

##### Inherited Members

System.Collections.Generic.IEnumerable<T>.GetEnumerator()
System.IDisposable.Dispose()

###### Namespace: Apache.Ignite.Core.Cache.Query

###### Assembly: Apache.Ignite.Core.dll

##### Syntax

    public interface IQueryCursor<T> : IEnumerable<T>, IEnumerable, IDisposable

##### Type Parameters

Name | Description
--- | ---
T |

### Methods

#### GetAll()

Gets all query results. Use this method when you know in advance that query result is relatively small and will not cause memory utilization issues.

##### Declaration

    IList<T> GetAll()

##### Returns

Type | Description
--- | ---
System.Collections.Generic.IList<T> | List containing all query results.