public final class MapDBStore
extends java.lang.Object
BTreeMap
with a single Long
as
key.Modifier and Type | Class and Description |
---|---|
static class |
MapDBStore.Builder |
Modifier and Type | Field and Description |
---|---|
static java.util.prefs.Preferences |
PREFS |
Modifier and Type | Method and Description |
---|---|
void |
commit()
Commits all pending changes to the underlying storage
|
protected org.deckfour.xes.model.XAttributeMap |
createAttributeMap(ExternalAttributable attributable) |
void |
dispose()
Closes the storage and releases all resources
|
StringPool |
getAttributeKeyPool() |
org.deckfour.xes.model.XAttributeMap |
getAttributes(ExternalAttributable attributable) |
static int |
getDefaultKeyPoolShift() |
static int |
getDefaultNodeSize() |
IdFactory |
getIdFactory() |
StringPool |
getLiteralPool() |
static int |
getMaxKeyPoolShift() |
org.xeslite.external.PumpService |
getPumpService() |
boolean |
hasAttributes(ExternalAttributable attributable) |
boolean |
isPumping() |
org.deckfour.xes.model.XLog |
loadLogStructure(XFactoryExternalStore factory)
Loads a saved XLog from the external store
|
org.deckfour.xes.model.XAttributeMap |
removeAttributes(ExternalAttributable attributable) |
void |
saveLogStructure(org.deckfour.xes.model.XLog log)
Saves the XLog to the external store
|
void |
setAttributes(ExternalAttributable attributable,
org.deckfour.xes.model.XAttributeMap attributes) |
org.xeslite.external.PumpService |
startPump()
Starts the batch import mode (can only be done once).
|
public static int getDefaultKeyPoolShift()
public static int getMaxKeyPoolShift()
public static int getDefaultNodeSize()
protected final org.deckfour.xes.model.XAttributeMap createAttributeMap(ExternalAttributable attributable)
public org.xeslite.external.PumpService startPump()
ExternalStore
PumpService
MUST be used. Any other operation will fail or lead to a deadlock!public org.xeslite.external.PumpService getPumpService()
public boolean isPumping()
public final StringPool getAttributeKeyPool()
StringPool
that is used to map key String
s to
Integer
spublic StringPool getLiteralPool()
StringPool
that is used to map general literals
String
s to Integer
spublic final IdFactory getIdFactory()
IdFactory
that can be used to obtain new 'unique'
identifiers for objects stored in the ExternalStore
public final void commit()
ExternalStore
public void dispose()
ExternalStore
public void saveLogStructure(org.deckfour.xes.model.XLog log)
ExternalStore
public org.deckfour.xes.model.XLog loadLogStructure(XFactoryExternalStore factory)
ExternalStore
public final org.deckfour.xes.model.XAttributeMap getAttributes(ExternalAttributable attributable)
getAttributes
in interface ExternalStore
public 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
public final org.deckfour.xes.model.XAttributeMap removeAttributes(ExternalAttributable attributable)
removeAttributes
in interface ExternalStore