|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.coherence.rest.NamedQueryResource
public class NamedQueryResource
REST resource representing a set of filtered cache entries.
Field Summary | |
---|---|
protected NamedCache |
m_cache NamedCache wrapped by this resource. |
protected int |
m_cMaxResults Maximum size of the result set this resource is allowed to return. |
protected com.tangosol.coherence.rest.config.NamedQuery |
m_query Named query responsible to filter cache entries. |
protected QueryEngineRegistry |
m_registry Query engine registry. |
Constructor Summary | |
---|---|
NamedQueryResource(NamedCache cache, com.tangosol.coherence.rest.config.NamedQuery query, QueryEngineRegistry registry, int cMaxResults) Create a instance of NamedQueryResource. |
Method Summary | |
---|---|
javax.ws.rs.core.Response |
aggregate(javax.ws.rs.core.UriInfo uriInfo, java.lang.String sAggr, AggregatorRegistry aggrRegistry) Perform an aggregating operation against the entries that belong to the named query. |
javax.ws.rs.core.Response |
get(javax.ws.rs.core.UriInfo uriInfo, int nStart, int cResults, java.lang.String sSort, com.tangosol.coherence.rest.util.PropertySet propertySet) Return the cache values that satisfy criteria defined by this resource. |
javax.ws.rs.core.Response |
getKeys(javax.ws.rs.core.UriInfo uriInfo) Return the keys for cache entries that satisfy criteria defined by this resource. |
protected java.util.Set |
keys(javax.ws.rs.core.UriInfo uriInfo) Return the keys of cache entries that satisfy the named query criteria. |
javax.ws.rs.core.Response |
process(javax.ws.rs.core.UriInfo uriInfo, java.lang.String sProc, ProcessorRegistry procRegistry) Invoke the specified processor against the entries that belong to the named query. |
protected java.util.Collection |
values(javax.ws.rs.core.UriInfo uriInfo, int nStart, int cResults, java.lang.String sSort) Return the cache values that satisfy the named query criteria. |
Field Detail |
---|
protected final NamedCache m_cache
protected final com.tangosol.coherence.rest.config.NamedQuery m_query
protected final QueryEngineRegistry m_registry
protected final int m_cMaxResults
Constructor Detail |
---|
public NamedQueryResource(NamedCache cache, com.tangosol.coherence.rest.config.NamedQuery query, QueryEngineRegistry registry, int cMaxResults)
cache
- cache to create a resource forquery
- query filtering the cache entriesregistry
- query engine registry, contains mappings between query engines name and QueryEngine instancecMaxResults
- max size of result set for this resourceMethod Detail |
---|
public javax.ws.rs.core.Response aggregate(@Context
javax.ws.rs.core.UriInfo uriInfo,
java.lang.String sAggr,
AggregatorRegistry aggrRegistry)
uriInfo
- UriInfo for the invoked resource methodsAggr
- name of the aggregatoraggrRegistry
- aggregator registry that is used to map the given aggregator name to an EntryAggregator instance
public javax.ws.rs.core.Response process(@Context
javax.ws.rs.core.UriInfo uriInfo,
java.lang.String sProc,
ProcessorRegistry procRegistry)
uriInfo
- UriInfo for the invoked resource methodsProc
- the name of the processorprocRegistry
- processor registry that is used to map the given processor name to an the EntryProcessor instance
public javax.ws.rs.core.Response get(@Context
javax.ws.rs.core.UriInfo uriInfo,
int nStart,
int cResults,
java.lang.String sSort,
com.tangosol.coherence.rest.util.PropertySet propertySet)
uriInfo
- UriInfo for the invoked resource methodnStart
- starting index of result set to be returnedcResults
- size of result set to be returned (page size)sSort
- a string expression that represents orderingpropertySet
- properties to return (if null, values will be returned)
public javax.ws.rs.core.Response getKeys(@Context
javax.ws.rs.core.UriInfo uriInfo)
uriInfo
- UriInfo for the invoked resource methodprotected java.util.Collection values(javax.ws.rs.core.UriInfo uriInfo, int nStart, int cResults, java.lang.String sSort)
uriInfo
- UriInfo for invoked resource methodnStart
- starting index of result set to be returnedcResults
- size of result set to be returned (page size)sSort
- a string expression that represents orderingprotected java.util.Set keys(javax.ws.rs.core.UriInfo uriInfo)
uriInfo
- UriInfo for invoked resource method
|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |