Eclipse Platform
Release 3.6

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

java.lang.Object
  extended by org.eclipse.equinox.p2.query.PipedQuery<T>

public abstract class PipedQuery<T>
extends Object

A PipedQuery is a composite query in which each sub-query is executed in succession. The results from the ith sub-query are piped as input into the i+1th sub-query. The query will short-circuit if any query returns an empty result set.

Since:
2.0

Constructor Summary
PipedQuery()
           
 
Method Summary
static
<E> IQuery<E>
createPipe(IQuery<? extends E> query1, IQuery<? extends E> query2)
          Creates a piped query based on the two provided input queries.
static
<E> IQuery<E>
createPipe(IQuery<E>[] queries)
          Creates a piped query based on the provided input queries.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PipedQuery

public PipedQuery()
Method Detail

createPipe

public static <E> IQuery<E> createPipe(IQuery<? extends E> query1,
                                       IQuery<? extends E> query2)
Creates a piped query based on the two provided input queries. The full query input will be passed into the first query in the provided array. The second query will obtain as input the result of the first query.

Parameters:
query1 - the first query
query2 - the second query

createPipe

public static <E> IQuery<E> createPipe(IQuery<E>[] queries)
Creates a piped query based on the provided input queries. The full query input will be passed into the first query in the provided array. Subsequent queries will obtain as input the result of execution of the previous query.

Parameters:
queries - the ordered list of queries to perform

Eclipse Platform
Release 3.6

Guidelines for using Eclipse APIs.

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