Eclipse Platform
Release 3.6

org.eclipse.equinox.p2.query
Class LimitQuery<T>

java.lang.Object
  extended by org.eclipse.equinox.p2.metadata.query.ExpressionContextQuery<T>
      extended by org.eclipse.equinox.p2.query.LimitQuery<T>
All Implemented Interfaces:
org.eclipse.equinox.p2.metadata.index.IQueryWithIndex<T>, IQuery<T>

public class LimitQuery<T>
extends ExpressionContextQuery<T>

A limit query can be used to limit the number of query results returned. Once the limit is reached, the query is terminated.

Since:
2.0

Constructor Summary
LimitQuery(IQuery<T> query, int limit)
           
 
Method Summary
 
Methods inherited from class org.eclipse.equinox.p2.metadata.query.ExpressionContextQuery
createExpression, getElementClass, getElementClass, getExpression, perform, perform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LimitQuery

public LimitQuery(IQuery<T> query,
                  int limit)

Eclipse Platform
Release 3.6

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.