Class AbstractIndexManager.DataIndex<D extends Data,​C>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.Map<D,​C> dataMap  
      protected java.util.Map<java.lang.String,​C> dbDataMap  
    • Constructor Summary

      Constructors 
      Constructor Description
      DataIndex()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()  
      protected D getOriginalData​(D data)  
      protected C putIndexCollection​(D data, C collection)
      Put the collection to use for the specified data
      protected C removeIndexCollection​(D data)
      Removes the mapping for a key from this map if it is present (optional operation).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • dataMap

        protected java.util.Map<D extends Data,​C> dataMap
      • dbDataMap

        protected java.util.Map<java.lang.String,​C> dbDataMap
    • Constructor Detail

      • DataIndex

        public DataIndex()
    • Method Detail

      • 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()