public final class MapDBStore extends java.lang.Object implements ExternalStore
Modifier and Type | Class and Description |
---|---|
static class |
MapDBStore.Builder |
Modifier and Type | Field and Description |
---|---|
static int |
NODE_SIZE |
Modifier and Type | Method and Description |
---|---|
void |
commit()
Commits all pending changes to the underlying storage
|
void |
dispose()
Closes the storage and releases all resources
|
StringPool |
getAttributeKeyPool() |
org.deckfour.xes.model.XAttributeMap |
getAttributes(ExternalAttributable attributable) |
IdFactory |
getIdFactory() |
StringPool |
getLiteralPool() |
org.processmining.xeslite.external.PumpService |
getPumpService() |
boolean |
hasAttributes(ExternalAttributable attributable) |
boolean |
isPumping() |
org.deckfour.xes.model.XAttributeMap |
removeAttributes(ExternalAttributable attributable) |
void |
setAttributes(ExternalAttributable attributable,
org.deckfour.xes.model.XAttributeMap attributes) |
org.processmining.xeslite.external.PumpService |
startPump()
Starts the batch import mode (can only be done once).
|
public static final int NODE_SIZE
public org.processmining.xeslite.external.PumpService startPump()
ExternalStore
PumpService
MUST be used. Any other operation will fail or lead to a deadlock!startPump
in interface ExternalStore
public org.processmining.xeslite.external.PumpService getPumpService()
getPumpService
in interface ExternalStore
public boolean isPumping()
isPumping
in interface ExternalStore
public final StringPool getAttributeKeyPool()
getAttributeKeyPool
in interface ExternalStore
StringPool
that is used to map key String
s to
Integer
spublic StringPool getLiteralPool()
getLiteralPool
in interface ExternalStore
StringPool
that is used to map general literals
String
s to Integer
spublic final IdFactory getIdFactory()
getIdFactory
in interface ExternalStore
IdFactory
that can be used to obtain new 'unique'
identifiers for objects stored in the ExternalStorage
public final org.deckfour.xes.model.XAttributeMap getAttributes(ExternalAttributable attributable)
getAttributes
in interface ExternalStore
attributable
- that the attributes should be returned forpublic final boolean hasAttributes(ExternalAttributable attributable)
hasAttributes
in interface ExternalStore
public final void setAttributes(ExternalAttributable attributable, org.deckfour.xes.model.XAttributeMap attributes)
setAttributes
in interface ExternalStore
attributable
- that the attributes should be attached toattributes
- the attributes that replace all existing attributespublic final org.deckfour.xes.model.XAttributeMap removeAttributes(ExternalAttributable attributable)
removeAttributes
in interface ExternalStore
attributable
- whose attributes should be removedpublic final void commit()
ExternalStore
commit
in interface ExternalStore
public void dispose()
ExternalStore
dispose
in interface ExternalStore