Package com.j_spaces.core.cache
Class FifoGroupsExtendedIndexHandler<K>
java.lang.Object
com.j_spaces.core.cache.FifoGroupsExtendedIndexHandler<K>
- All Implemented Interfaces:
IExtendedEntriesIndex<K,,IEntryCacheInfo> IExtendedIndex<K,,IEntryCacheInfo> IExtendedIndexScanPositioner<K,IEntryCacheInfo>
public class FifoGroupsExtendedIndexHandler<K>
extends Object
implements IExtendedEntriesIndex<K,IEntryCacheInfo>
Handles extended index of fifo groups scans
- Since:
- 9.0
- Version:
- 1.0
- Author:
- Yechiel Fefer
-
Constructor Summary
ConstructorsConstructorDescriptionFifoGroupsExtendedIndexHandler(TypeDataIndex index, IExtendedIndex<K, IEntryCacheInfo> base, ISpaceIndex.FifoGroupsIndexTypes fifoGroupsIndexType) -
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.getIndexEntries(K indexValue) insertEntryIndexedField(IEntryCacheInfo pEntry, K fieldValue, TypeData pType, boolean alreadyCloned) voidonRemove(IEntryCacheInfo eci) voidonUpdate(IEntryCacheInfo eci) voidintvoidremoveEntryIndexedField(IEntryHolder eh, Object fieldValue, IEntryCacheInfo pEntry, IObjectInfo oi)
-
Constructor Details
-
FifoGroupsExtendedIndexHandler
public FifoGroupsExtendedIndexHandler(TypeDataIndex index, IExtendedIndex<K, IEntryCacheInfo> base, ISpaceIndex.FifoGroupsIndexTypes fifoGroupsIndexType)
-
-
Method Details
-
insertEntryIndexedField
public IObjectInfo insertEntryIndexedField(IEntryCacheInfo pEntry, K fieldValue, TypeData pType, boolean alreadyCloned) - Specified by:
insertEntryIndexedFieldin interfaceIExtendedIndex<K,IEntryCacheInfo>
-
removeEntryIndexedField
public void removeEntryIndexedField(IEntryHolder eh, Object fieldValue, IEntryCacheInfo pEntry, IObjectInfo oi) - Specified by:
removeEntryIndexedFieldin interfaceIExtendedIndex<K,IEntryCacheInfo>
-
establishScan
public IExtendedIndexIterator<IEntryCacheInfo> 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,IEntryCacheInfo>
-
establishScan
public IExtendedIndexIterator<IEntryCacheInfo> 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,IEntryCacheInfo>
-
onUpdate
- Specified by:
onUpdatein interfaceIExtendedEntriesIndex<K,IEntryCacheInfo>
-
onUpdateEnd
- Specified by:
onUpdateEndin interfaceIExtendedEntriesIndex<K,IEntryCacheInfo>
-
onRemove
- Specified by:
onRemovein interfaceIExtendedEntriesIndex<K,IEntryCacheInfo>
-
reapExpired
public int reapExpired()- Specified by:
reapExpiredin interfaceIExtendedEntriesIndex<K,IEntryCacheInfo>
-
getNonUniqueEntriesStore
- Specified by:
getNonUniqueEntriesStorein interfaceIExtendedEntriesIndex<K,IEntryCacheInfo>
-
getUniqueEntriesStore
- Specified by:
getUniqueEntriesStorein interfaceIExtendedEntriesIndex<K,IEntryCacheInfo>
-
getOrderedStore
- Specified by:
getOrderedStorein interfaceIExtendedEntriesIndex<K,IEntryCacheInfo>
-
getIndexEntries
- Specified by:
getIndexEntriesin interfaceIExtendedEntriesIndex<K,IEntryCacheInfo>
-