Class AbstractIndexManager.DataIndex<D extends Data,C>

java.lang.Object
com.jalios.jcms.AbstractIndexManager.DataIndex<D,C>
Type Parameters:
D - the data type for which index is being created
C - the type of collection stored
Direct Known Subclasses:
AbstractIndexManager.DataIndexMap, AbstractIndexManager.DataIndexSet
Enclosing class:
AbstractIndexManager

public static class AbstractIndexManager.DataIndex<D extends Data,C> extends Object
Collection to store previoulsy computed information associated to Data and DBData
Since:
9.0.3 - JCMS-5258
  • Field Details

    • dataMap

      protected Map<D extends Data,C> dataMap
    • dbDataMap

      protected Map<String,C> dbDataMap
  • Constructor Details

    • DataIndex

      public DataIndex()
  • Method Details

    • putIndexCollection

      protected C putIndexCollection(D data, C collection)
      Put the collection to use for the specified data
      Parameters:
      data - the data for which the Index is being modified
      collection - the collection to associate to the data (must not be null)
      Returns:
      the previous collection associated with data, or null if there was no mapping for data.
    • removeIndexCollection

      protected C removeIndexCollection(D data)
      Removes the mapping for a key from this map if it is present (optional operation).
      Parameters:
      data - the data for which the Index is being removed
      Returns:
      the previous value associated with key, or null if there was no mapping for key
    • getOriginalData

      protected D getOriginalData(D data)
    • clear

      public void clear()