Package com.j_spaces.core.cache
Class TemplatesExtendedIndexHandler<K>
java.lang.Object
com.j_spaces.core.cache.TemplatesExtendedIndexHandler<K>
- All Implemented Interfaces:
IExtendedIndex<K,,TemplateCacheInfo> IExtendedIndexScanPositioner<K,TemplateCacheInfo>
public class TemplatesExtendedIndexHandler<K>
extends Object
implements IExtendedIndex<K,TemplateCacheInfo>
handles data manipulation of space extended index
- Since:
- 8.03
- Version:
- 1.0
- Author:
- Yechiel Fefer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionestablishScan(K startPos, short relation, K endPos, boolean endPosInclusive) establish a scan according to the relation given and startPos : the start-scan object , null means scan all values.establishScan(K startPos, short relation, K endPos, boolean endPosInclusive, boolean ordered) establish a scan according to the relation given and startPos : the start-scan object , null means scan all values.insertEntryIndexedField(TemplateCacheInfo pTemplate, K fieldValue, TypeData pType, boolean alreadyCloned) insert a value for this key- if key already exist insert into the SL of same valuesvoidremoveEntryIndexedField(IEntryHolder eh, Object fieldValue, TemplateCacheInfo pTemplate, IObjectInfo oi) remove entry indexed field from cache.
-
Constructor Details
-
TemplatesExtendedIndexHandler
-
-
Method Details
-
insertEntryIndexedField
public IObjectInfo insertEntryIndexedField(TemplateCacheInfo pTemplate, K fieldValue, TypeData pType, boolean alreadyCloned) insert a value for this key- if key already exist insert into the SL of same values- Specified by:
insertEntryIndexedFieldin interfaceIExtendedIndex<K,TemplateCacheInfo> - Returns:
- the index backref
-
removeEntryIndexedField
public void removeEntryIndexedField(IEntryHolder eh, Object fieldValue, TemplateCacheInfo pTemplate, IObjectInfo oi) remove entry indexed field from cache.- Specified by:
removeEntryIndexedFieldin interfaceIExtendedIndex<K,TemplateCacheInfo>
-
establishScan
public ExtendedIndexIterator<TemplateCacheInfo> establishScan(K startPos, short relation, K endPos, boolean endPosInclusive) establish a scan according to the relation given and startPos : the start-scan object , null means scan all values. The relation is from com.j_spaces.client.TemplateMatchCodes: LT, LE, GT, GE (other codes are not relevant) endPos- key up to (or null if no limit in index) endPosInclusive : is the endPos up to (or down to) and including ? returns an ExtendedIndexIterator object which enables scanning the ordered index, Null if no relevant elements to scan- Specified by:
establishScanin interfaceIExtendedIndexScanPositioner<K,TemplateCacheInfo>
-
establishScan
public ExtendedIndexIterator<TemplateCacheInfo> establishScan(K startPos, short relation, K endPos, boolean endPosInclusive, boolean ordered) establish a scan according to the relation given and startPos : the start-scan object , null means scan all values. The relation is from com.j_spaces.client.TemplateMatchCodes: LT, LE, GT, GE (other codes are not relevant) endPos- key up to (or null if no limit in index) endPosInclusive : is the endPos up to (or down to) and including ? ordered - according to the condition. GT, GE ==> ascending, LT, LE =====> descending. returns an IOrderedIndexScan object which enables scanning the ordered index, Null if no relevant elements to scan- Specified by:
establishScanin interfaceIExtendedIndexScanPositioner<K,TemplateCacheInfo>
-
getOrderedStore
-