T
- The type of input object that this query acceptspublic interface IQuery<T>
IQueryable
.
A query is a piece of logic that selects some objects from a list of provided
inputs using some established criteria.
Any given query must be stable - running the same query on the same inputs must return an equal query result each time the query is executed. Thus a client that has performed a query can freely cache the result as long as they know the query input has not changed.
Modifier and Type | Method and Description |
---|---|
IExpression |
getExpression()
Returns the IExpression backing this query or
null if
this is not an expression query. |
IQueryResult<T> |
perform(Iterator<T> iterator)
Evaluates the query for a specific input.
|
IQueryResult<T> perform(Iterator<T> iterator)
iterator
- The elements for which to evaluate the query onIExpression getExpression()
null
if
this is not an expression query.null
.
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.