|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.uhn.cache.impl.ParamSpace
A multi-dimensional space of IQueryParam
s. A data item
has a location in this space (see IDataInspector
). Data
items are divided into IChunk
s that represent regions of the
space.
Constructor Summary | |
ParamSpace()
|
Method Summary | |
void |
afterPropertiesSet()
|
IQueryParam[] |
chunk(IQueryParam theParam)
TODO: this assumes that chunk sizes along a given dimension are independent of other dimensions, but this may not be feasible. For example, possibly sparse data (e.g. ECG should be divided into longer time spans than oft-collected data (e.g. CBC), in order to have an efficient number of data items per chunk. RESOLUTION: allow multiple caches in SelfCachingDataSource |
static ParamSpace |
createInstance(IParamSpaceConfig theParamSpaceConfig)
Factory method. |
IDimension[] |
getDimensions()
|
IParamSpaceConfig |
getParamSpaceConfig()
|
IQuery[] |
group(IQuery[] theQueries,
int theMaxGroups)
Given a list of queries, finds a small set of queries that includes all of them, without including too many queries that aren't in the list. There may be a trade-off between number of queries returned and extra queries included. For example, one query could be returned for each original query, in which case no extra queries would be included. On the other hand a single query could be returnd which covers the whole IParamSpace. Good solutions lie somewhere between these extremes. |
void |
setParamSpaceConfig(IParamSpaceConfig theConfigData)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ParamSpace()
Method Detail |
public static ParamSpace createInstance(IParamSpaceConfig theParamSpaceConfig)
theParamSpaceConfig
- The configuration information for this space (defining dimensions, etc).
ParamSpace
.public IDimension[] getDimensions()
getDimensions
in interface IParamSpace
public IQueryParam[] chunk(IQueryParam theParam)
chunk
in interface IParamSpace
theParam
- a IQueryParam
IQueryParam
s that together encompasses the given
IQueryParam
, each of which corresponds to the size of a
IChunk
.public IQuery[] group(IQuery[] theQueries, int theMaxGroups)
group
in interface IParamSpace
theQueries
- a list of IQuery
ies to be covered by the returned
IQuery
stheMaxGroups
- maximum number of IQuery
s returned (lower numbers
will generally force more extra chunks to be spanned)
IQuery
s that include all the specified chunkspublic IParamSpaceConfig getParamSpaceConfig()
public void setParamSpaceConfig(IParamSpaceConfig theConfigData)
theConfigData
- The configData to set.public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |