org.progressmining.xeslite.external.store.mapdb
Class XMapDBCachingAttributeMap

java.lang.Object
  extended by org.progressmining.xeslite.external.store.mapdb.XMapDBAttributeMap
      extended by org.progressmining.xeslite.external.store.mapdb.XMapDBCachingAttributeMap
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map<java.lang.String,org.deckfour.xes.model.XAttribute>, org.deckfour.xes.model.XAttributeMap

public class XMapDBCachingAttributeMap
extends XMapDBAttributeMap

This XMapDBAttributeMap caches the three most commonly used attributes concept:name, transition:lifecycle and org:resource for fast access in memory.

Author:
F. Mannhardt

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Field Summary
 
Fields inherited from class org.progressmining.xeslite.external.store.mapdb.XMapDBAttributeMap
owner, store
 
Constructor Summary
XMapDBCachingAttributeMap(XExternalAttributable owner, XAttributeMapDBStore store, com.google.common.collect.Interner<java.lang.String> interner)
           
 
Method Summary
 void clear()
           
 org.deckfour.xes.model.XAttribute get(java.lang.Object key)
           
 org.deckfour.xes.model.XAttribute put(java.lang.String key, org.deckfour.xes.model.XAttribute value)
           
 org.deckfour.xes.model.XAttribute remove(java.lang.Object key)
           
 
Methods inherited from class org.progressmining.xeslite.external.store.mapdb.XMapDBAttributeMap
clone, containsKey, containsValue, entrySet, isEmpty, keySet, putAll, size, values
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

XMapDBCachingAttributeMap

public XMapDBCachingAttributeMap(XExternalAttributable owner,
                                 XAttributeMapDBStore store,
                                 com.google.common.collect.Interner<java.lang.String> interner)
Method Detail

put

public org.deckfour.xes.model.XAttribute put(java.lang.String key,
                                             org.deckfour.xes.model.XAttribute value)
Specified by:
put in interface java.util.Map<java.lang.String,org.deckfour.xes.model.XAttribute>
Overrides:
put in class XMapDBAttributeMap

get

public org.deckfour.xes.model.XAttribute get(java.lang.Object key)
Specified by:
get in interface java.util.Map<java.lang.String,org.deckfour.xes.model.XAttribute>
Overrides:
get in class XMapDBAttributeMap

remove

public org.deckfour.xes.model.XAttribute remove(java.lang.Object key)
Specified by:
remove in interface java.util.Map<java.lang.String,org.deckfour.xes.model.XAttribute>
Overrides:
remove in class XMapDBAttributeMap

clear

public void clear()
Specified by:
clear in interface java.util.Map<java.lang.String,org.deckfour.xes.model.XAttribute>
Overrides:
clear in class XMapDBAttributeMap