Package org.eclipse.equinox.p2.query
Class CompoundQueryable<T>
java.lang.Object
org.eclipse.equinox.internal.p2.metadata.index.IndexProvider<T>
org.eclipse.equinox.p2.query.CompoundQueryable<T>
- All Implemented Interfaces:
- IIndexProvider<T>,- IQueryable<T>
public final class CompoundQueryable<T>
extends org.eclipse.equinox.internal.p2.metadata.index.IndexProvider<T>
A queryable that holds a number of other IQueryables and provides a mechanism
 for querying the entire set.
- Since:
- 2.0
- 
Constructor SummaryConstructorsConstructorDescriptionCompoundQueryable(Collection<? extends IQueryable<T>> queryables) Creates a queryable that combines the given collection of input queryablesCompoundQueryable(IQueryable<T>[] queryables) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleanReturns true if this queryable contains the given element, else false.Return the iterator that delivers all rows that the target query should consider.Return an index optimized for producing candidates based on values for amemberNamethat denotes a member of the index type.getManagedProperty(Object client, String memberName, Object key) Returns a property that this index manages on behalf of aclientobject.Methods inherited from class org.eclipse.equinox.internal.p2.metadata.index.IndexProviderquery, query
- 
Constructor Details- 
CompoundQueryable
- 
CompoundQueryableCreates a queryable that combines the given collection of input queryables- Parameters:
- queryables- The collection of queryables to be combined
- Since:
- 2.8
 
 
- 
- 
Method Details- 
getIndexDescription copied from interface:IIndexProviderReturn an index optimized for producing candidates based on values for amemberNamethat denotes a member of the index type.- Parameters:
- memberName- A member of type- T.
- Returns:
- An index or nullif this provider does not support this index.
 
- 
everythingDescription copied from interface:IIndexProviderReturn the iterator that delivers all rows that the target query should consider. This is used when no index can be found for any possible member.- Returns:
- An iterator. Possibly empty but never null.
 
- 
containsDescription copied from interface:IQueryableReturns true if this queryable contains the given element, else false.- Parameters:
- element- the element to query for
- Returns:
- true if the given element is found in this queryable
 
- 
getManagedPropertyDescription copied from interface:IIndexProviderReturns a property that this index manages on behalf of aclientobject. Examples of this is the properties that a profile manages for installable units.- Parameters:
- client- The client for which the property is managed. Typically an IU.
- memberName- The name of the managed properties, i.e. "profileProperties"
- key- The property key
- Returns:
- The managed property value or nullif no value could be found.
 
 
-