- TIBCO BusinessEvents®
- ActiveSpaces(Deprecated)
- AS

# AS.queryIterator()

## Signature

`Object queryIterator(String destinationUri, SimpleEvent eventTemplate, String browserTypeStr, String timeScope, String distributionScope, int timeout, long prefetch, String filter)`

## Domain

ACTION, CONDITION, QUERY

## Description

Retrieves the iterator of entries that match the conditions you specified in the associated Space.

## Parameters

Name | Type | Description
--- | --- | ---
`destinationUri` | `String` | AS Destination URI
`eventTemplate` | `SimpleEvent` | SimpleEvent Template
`browserTypeStr` | `String` | BrowserType: GET or TAKE
`timeScope` | `String` | TimeScope: SNAPSHORT, ALL or NEW
`distributionScope` | `String` | DistributionScope: ALL or SEEDED
`timeout` | `int` | Timeout
`prefetch` | `long` | The number of events will be prefetched
`filter` | `String` | Query condition

## Returns

Type | Description
--- | ---
`Iterator` | The iterator for matched Events