public class QueryRequestImpl extends OperationImpl implements QueryRequest
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isEnterprise |
protected Query |
query |
| Constructor and Description |
|---|
QueryRequestImpl(Query query)
Instantiates a new QueryRequestImpl with a $(@link Query) query,
|
QueryRequestImpl(Query query,
boolean isEnterprise)
Instantiates a new QueryRequestImpl with a $(@link Query) and a boolean indicating if it is an
Enterprise QueryRequest.
|
QueryRequestImpl(Query query,
boolean isEnterprise,
Collection<String> siteNames,
Map<String,Serializable> properties)
Instantiates a new QueryRequestImpl with a $(@link Query), a boolean indicating if it is an
Enterprise QueryRequest, a $
Collection of siteNames, and a $Map of properties |
QueryRequestImpl(Query query,
Collection<String> sourceIds)
Instantiates a new QueryRequestImpl with a $(@link Query) and a $
Collection of
sourceIDs |
QueryRequestImpl(Query query,
Map<String,Serializable> properties)
Instantiates a new QueryRequestImpl with a $(@link Query) and a $
Map of properties |
| Modifier and Type | Method and Description |
|---|---|
Query |
getQuery()
Returns a
Query associated with the QueryRequest |
Set<String> |
getSourceIds()
Returns the source ids that are associated with the
Federatable implementation. |
boolean |
isEnterprise()
Specifies whether the
Federatable implementation should be applied to the enterprise |
String |
toString() |
containsPropertyName, getProperties, getPropertyNames, getPropertyValue, hasProperties, setPropertiesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetStoreIdscontainsPropertyName, getProperties, getPropertyNames, getPropertyValue, hasPropertiesprotected Query query
protected boolean isEnterprise
public QueryRequestImpl(Query query)
query - the querypublic QueryRequestImpl(Query query, Map<String,Serializable> properties)
Map of propertiesquery - the queryproperties - a Map of propertiespublic QueryRequestImpl(Query query, Collection<String> sourceIds)
Collection of
sourceIDsquery - the querysourceIds - a Collection of sourceIDspublic QueryRequestImpl(Query query, boolean isEnterprise)
query - the queryisEnterprise - the enterprise indicatorpublic QueryRequestImpl(Query query, boolean isEnterprise, Collection<String> siteNames, Map<String,Serializable> properties)
Collection of siteNames, and a $Map of propertiesquery - the queryisEnterprise - the enterprise indicatorsiteNames - a Collection of siteNamesproperties - the propertiespublic Query getQuery()
QueryRequestQuery associated with the QueryRequestgetQuery in interface QueryRequestQuery to be executedpublic Set<String> getSourceIds()
FederatableFederatable implementation. The
source ids will be the complete set of sources that should be acted upon. A set is used to
avoid duplicate ids.getSourceIds in interface Federatablenull or an empty list if
Federatable.isEnterprise() method returns true as that means all known sources should
be acted upon (and the complete list might not have been known at Object creation).public boolean isEnterprise()
FederatableFederatable implementation should be applied to the enterpriseisEnterprise in interface Federatabletrue if the Federatable implementation should be applied to the entire
enterprise (meaning all sources), otherwise false is returned. If false is
returned then a list containing at least 1 source id should be returned by the Federatable.getSourceIds() method.This work is licensed under a Creative Commons Attribution 4.0 International License.