|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.bc.issue.search.QueryCacheImpl
public class QueryCacheImpl
The default implementation for the QueryCache The cache is stored in a common request cache, so caches are shared amongst instances.
| Constructor Summary | |
|---|---|
QueryCacheImpl()
|
|
| Method Summary | |
|---|---|
Collection<ClauseHandler> |
getClauseHandlers(com.atlassian.crowd.embedded.api.User searcher,
String jqlClauseName)
Retrieve the collection of ClauseHandlers registered
for the User jqlClauseName pair. |
Boolean |
getDoesQueryFitFilterFormCache(com.atlassian.crowd.embedded.api.User searcher,
Query query)
Retrieve the result of the last doesQueryFitFiterForm operation in the current thread. |
QueryContext |
getQueryContextCache(com.atlassian.crowd.embedded.api.User searcher,
Query query)
Retrieve the result of the last getQueryContext operation in the current thread for the User Query pair. |
QueryContext |
getSimpleQueryContextCache(com.atlassian.crowd.embedded.api.User searcher,
Query query)
Retrieve the result of the last getSimpleQueryContext operation in the current thread for the User Query pair. |
List<QueryLiteral> |
getValues(QueryCreationContext context,
Operand operand,
TerminalClause jqlClause)
Retrieve the list of QueryLiterals registered
for the QueryCreationContext Operand jqlClause triplet. |
void |
setClauseHandlers(com.atlassian.crowd.embedded.api.User searcher,
String jqlClauseName,
Collection<ClauseHandler> clauseHandlers)
Set the cached result of a getSimpleQueryContext operation on the User Query pair. |
void |
setDoesQueryFitFilterFormCache(com.atlassian.crowd.embedded.api.User searcher,
Query query,
boolean doesItFit)
Set the cached result of a doesQueryFitFiterForm operation on the User Query pair. |
void |
setQueryContextCache(com.atlassian.crowd.embedded.api.User searcher,
Query query,
QueryContext queryContext)
Set the cached result of a getQueryContext operation on the User Query pair. |
void |
setSimpleQueryContextCache(com.atlassian.crowd.embedded.api.User searcher,
Query query,
QueryContext queryContext)
Set the cached result of a getSimpleQueryContext operation on the User Query pair. |
void |
setValues(QueryCreationContext context,
Operand operand,
TerminalClause jqlClause,
List<QueryLiteral> values)
Set the cached result of a getValues operation on the for the QueryCreationContext Operand jqlClause triplet. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QueryCacheImpl()
| Method Detail |
|---|
public Boolean getDoesQueryFitFilterFormCache(com.atlassian.crowd.embedded.api.User searcher,
Query query)
QueryCacheUser Query pair.
getDoesQueryFitFilterFormCache in interface QueryCachesearcher - the user who is performing the searchquery - the query for which to find the result for; cannot be null.
User Query pair in the current thread, or null if
the operation has yet to be performed.
public void setDoesQueryFitFilterFormCache(com.atlassian.crowd.embedded.api.User searcher,
Query query,
boolean doesItFit)
QueryCacheUser Query pair. The cache result
is only held for the current thread.
setDoesQueryFitFilterFormCache in interface QueryCachesearcher - the user who is performing the searchquery - the query for which to store the result under; cannot be nulldoesItFit - the result of a doesSearchRequestFitNavigator operation for the.
User Query
public QueryContext getQueryContextCache(com.atlassian.crowd.embedded.api.User searcher,
Query query)
QueryCacheUser Query pair.
getQueryContextCache in interface QueryCachesearcher - the user who is performing the searchquery - the query for which to find the result for; cannot be null.
User Query pair in the current thread, or null if
the operation has yet to be performed.
public void setQueryContextCache(com.atlassian.crowd.embedded.api.User searcher,
Query query,
QueryContext queryContext)
QueryCacheUser Query pair. The cache result
is only held for the current thread.
setQueryContextCache in interface QueryCachesearcher - the user who is performing the searchquery - the query for which to store the result under; cannot be null.queryContext - the queryContext result to store
User Query
public QueryContext getSimpleQueryContextCache(com.atlassian.crowd.embedded.api.User searcher,
Query query)
QueryCacheUser Query pair.
getSimpleQueryContextCache in interface QueryCachesearcher - the user who is performing the searchquery - the query for which to find the result for; cannot be null.
User Query pair in the current thread, or null if
the operation has yet to be performed.
public void setSimpleQueryContextCache(com.atlassian.crowd.embedded.api.User searcher,
Query query,
QueryContext queryContext)
QueryCacheUser Query pair. The cache result
is only held for the current thread.
setSimpleQueryContextCache in interface QueryCachesearcher - the user who is performing the searchquery - the query for which to store the result under; cannot be null.queryContext - the querySimpleContext result to store
User Query
public Collection<ClauseHandler> getClauseHandlers(com.atlassian.crowd.embedded.api.User searcher,
String jqlClauseName)
QueryCacheClauseHandlers registered
for the User jqlClauseName pair.
getClauseHandlers in interface QueryCachesearcher - the user who is performing the searchjqlClauseName - the jQLClauseName for which to find the result for; cannot be null.
ClauseHandlers registered
for the User jqlClauseName pair.
public void setClauseHandlers(com.atlassian.crowd.embedded.api.User searcher,
String jqlClauseName,
Collection<ClauseHandler> clauseHandlers)
QueryCacheUser Query pair. The cache result
is only held for the current thread.
setClauseHandlers in interface QueryCachesearcher - the user who is performing the searchjqlClauseName - the jQLClauseName for which to store the result under; cannot be null.clauseHandlers - the collection of ClauseHandlers
User ClauseHandler
public List<QueryLiteral> getValues(QueryCreationContext context,
Operand operand,
TerminalClause jqlClause)
QueryCacheQueryLiterals registered
for the QueryCreationContext Operand jqlClause triplet.
getValues in interface QueryCachecontext - the query context of the search, which cannot be null.operand - the Operand which cannot be nulljqlClause - the jQLClause for which to find the result for; cannot be null.
QueryLiterals registered
for the QueryCreationContext jqlClause pair.
public void setValues(QueryCreationContext context,
Operand operand,
TerminalClause jqlClause,
List<QueryLiteral> values)
QueryCacheQueryCreationContext Operand jqlClause triplet. The cache result
is only held for the current thread.
setValues in interface QueryCachecontext - the query context the search is being performed inoperand - the Operand which cannot be nulljqlClause - the jQLClause for which to store the result under; cannot be null.values - the collection of QueryLiterals
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||