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 Details

    • TemplatesExtendedIndexHandler

      public TemplatesExtendedIndexHandler(TypeDataIndex index)
  • 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:
      insertEntryIndexedField in interface IExtendedIndex<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:
      removeEntryIndexedField in interface IExtendedIndex<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:
      establishScan in interface IExtendedIndexScanPositioner<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:
      establishScan in interface IExtendedIndexScanPositioner<K,TemplateCacheInfo>
    • getOrderedStore