public abstract class XFactoryExternalStore
extends java.lang.Object
implements org.deckfour.xes.factory.XFactory
XAttributable XES objects in a,
possibly external, ExternalStore. This implementation stores
attributes of XEvent, XTrace objects in a
ExternalStore either on a file-backed storage or a memory-backed
storage.
Use one of the embedded sub-classes in this class to create a version that fits your needs:
XFactoryExternalStore.MapDBDiskImpl
XFactoryExternalStore.MapDBDiskWithoutCacheImpl
XFactoryExternalStore.MapDBDiskSequentialAccessImpl
XFactoryExternalStore.InMemoryStoreImpl
PLEASE NOTE: Attributes are generally immutable in this implementation, as they may be serialized and re-created at any time.
| Modifier and Type | Class and Description |
|---|---|
static class |
XFactoryExternalStore.InMemoryStoreAlignmentAwareImpl
Specialized implementation for storing aligned logs.
|
static class |
XFactoryExternalStore.InMemoryStoreImpl
A XES factory that stores the attributes in an optimized column-format in
the heap memory.
|
static class |
XFactoryExternalStore.MapDBDiskImpl
A XES Factory that stores XAttributes with MapDB on disk.
|
static class |
XFactoryExternalStore.MapDBDiskSequentialAccessImpl
A XES Factory that stores XAttributes with MapDB on disk.
|
static class |
XFactoryExternalStore.MapDBDiskSequentialAccessWithoutCacheImpl
Deprecated.
|
static class |
XFactoryExternalStore.MapDBDiskWithoutCacheImpl
A XES Factory that stores XAttributes with MapDB on disk.
|
| Constructor and Description |
|---|
XFactoryExternalStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
commit() |
static boolean |
containsFactory(java.lang.Class<? extends XFactoryExternalStore> clazz) |
org.deckfour.xes.model.XAttributeBoolean |
createAttributeBoolean(java.lang.String key,
boolean value,
org.deckfour.xes.extension.XExtension extension) |
org.deckfour.xes.model.XAttributeContainer |
createAttributeContainer(java.lang.String key,
org.deckfour.xes.extension.XExtension extension) |
org.deckfour.xes.model.XAttributeContinuous |
createAttributeContinuous(java.lang.String key,
double value,
org.deckfour.xes.extension.XExtension extension) |
org.deckfour.xes.model.XAttributeDiscrete |
createAttributeDiscrete(java.lang.String key,
long value,
org.deckfour.xes.extension.XExtension extension) |
org.deckfour.xes.model.XAttributeID |
createAttributeID(java.lang.String key,
org.deckfour.xes.id.XID value,
org.deckfour.xes.extension.XExtension extension) |
org.deckfour.xes.model.XAttributeList |
createAttributeList(java.lang.String key,
org.deckfour.xes.extension.XExtension extension) |
org.deckfour.xes.model.XAttributeLiteral |
createAttributeLiteral(java.lang.String key,
java.lang.String value,
org.deckfour.xes.extension.XExtension extension) |
org.deckfour.xes.model.XAttributeMap |
createAttributeMap() |
org.deckfour.xes.model.XAttributeTimestamp |
createAttributeTimestamp(java.lang.String key,
java.util.Date value,
org.deckfour.xes.extension.XExtension extension) |
org.deckfour.xes.model.XAttributeTimestamp |
createAttributeTimestamp(java.lang.String key,
long millis,
org.deckfour.xes.extension.XExtension extension) |
org.deckfour.xes.model.XEvent |
createEvent() |
org.deckfour.xes.model.XEvent |
createEvent(org.deckfour.xes.model.XAttributeMap attributes) |
org.deckfour.xes.model.XEvent |
createEvent(org.deckfour.xes.id.XID id,
org.deckfour.xes.model.XAttributeMap attributes) |
org.deckfour.xes.model.XLog |
createLog() |
org.deckfour.xes.model.XLog |
createLog(java.util.Collection<org.deckfour.xes.model.XTrace> traces) |
org.deckfour.xes.model.XLog |
createLog(org.deckfour.xes.model.XAttributeMap attributes) |
org.deckfour.xes.factory.XFactory |
createPumpTransferFactory() |
org.deckfour.xes.model.XTrace |
createTrace() |
org.deckfour.xes.model.XTrace |
createTrace(java.util.Collection<org.deckfour.xes.model.XEvent> events) |
org.deckfour.xes.model.XTrace |
createTrace(org.deckfour.xes.model.XAttributeMap attributes) |
void |
dispose() |
void |
finishPump() |
protected java.util.List<org.deckfour.xes.model.XAttribute> |
getAttributeList(org.deckfour.xes.model.XAttributable attributable) |
java.lang.String |
getAuthor() |
protected abstract ExternalStore |
getStore() |
java.net.URI |
getUri() |
java.lang.String |
getVendor() |
protected java.lang.Integer |
intern(java.lang.String key) |
boolean |
isPumping() |
org.deckfour.xes.model.XLog |
loadLogStructure() |
org.deckfour.xes.model.XEvent |
pumpEvent(org.deckfour.xes.model.XEvent pumpEvent) |
org.deckfour.xes.model.XLog |
pumpLog(org.deckfour.xes.model.XLog pumpLog) |
org.deckfour.xes.model.XTrace |
pumpTrace(org.deckfour.xes.model.XTrace pumpTrace) |
void |
saveLogStructure(org.deckfour.xes.model.XLog log) |
void |
startPump() |
java.lang.String |
toString() |
protected abstract ExternalStore getStore()
public static boolean containsFactory(java.lang.Class<? extends XFactoryExternalStore> clazz)
protected java.lang.Integer intern(java.lang.String key)
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getAuthor()
getAuthor in interface org.deckfour.xes.factory.XFactorypublic java.net.URI getUri()
getUri in interface org.deckfour.xes.factory.XFactorypublic java.lang.String getVendor()
getVendor in interface org.deckfour.xes.factory.XFactorypublic org.deckfour.xes.model.XLog createLog()
createLog in interface org.deckfour.xes.factory.XFactorypublic org.deckfour.xes.model.XLog createLog(org.deckfour.xes.model.XAttributeMap attributes)
createLog in interface org.deckfour.xes.factory.XFactorypublic org.deckfour.xes.model.XLog createLog(java.util.Collection<org.deckfour.xes.model.XTrace> traces)
public org.deckfour.xes.model.XTrace createTrace()
createTrace in interface org.deckfour.xes.factory.XFactorypublic org.deckfour.xes.model.XTrace createTrace(java.util.Collection<org.deckfour.xes.model.XEvent> events)
public org.deckfour.xes.model.XTrace createTrace(org.deckfour.xes.model.XAttributeMap attributes)
createTrace in interface org.deckfour.xes.factory.XFactorypublic org.deckfour.xes.model.XEvent createEvent()
createEvent in interface org.deckfour.xes.factory.XFactorypublic org.deckfour.xes.model.XEvent createEvent(org.deckfour.xes.model.XAttributeMap attributes)
createEvent in interface org.deckfour.xes.factory.XFactorypublic org.deckfour.xes.model.XEvent createEvent(org.deckfour.xes.id.XID id,
org.deckfour.xes.model.XAttributeMap attributes)
createEvent in interface org.deckfour.xes.factory.XFactorypublic org.deckfour.xes.model.XAttributeMap createAttributeMap()
createAttributeMap in interface org.deckfour.xes.factory.XFactorypublic org.deckfour.xes.model.XAttributeBoolean createAttributeBoolean(java.lang.String key,
boolean value,
org.deckfour.xes.extension.XExtension extension)
createAttributeBoolean in interface org.deckfour.xes.factory.XFactorypublic org.deckfour.xes.model.XAttributeContinuous createAttributeContinuous(java.lang.String key,
double value,
org.deckfour.xes.extension.XExtension extension)
createAttributeContinuous in interface org.deckfour.xes.factory.XFactorypublic org.deckfour.xes.model.XAttributeDiscrete createAttributeDiscrete(java.lang.String key,
long value,
org.deckfour.xes.extension.XExtension extension)
createAttributeDiscrete in interface org.deckfour.xes.factory.XFactorypublic org.deckfour.xes.model.XAttributeLiteral createAttributeLiteral(java.lang.String key,
java.lang.String value,
org.deckfour.xes.extension.XExtension extension)
createAttributeLiteral in interface org.deckfour.xes.factory.XFactorypublic org.deckfour.xes.model.XAttributeTimestamp createAttributeTimestamp(java.lang.String key,
java.util.Date value,
org.deckfour.xes.extension.XExtension extension)
createAttributeTimestamp in interface org.deckfour.xes.factory.XFactorypublic org.deckfour.xes.model.XAttributeTimestamp createAttributeTimestamp(java.lang.String key,
long millis,
org.deckfour.xes.extension.XExtension extension)
createAttributeTimestamp in interface org.deckfour.xes.factory.XFactorypublic org.deckfour.xes.model.XAttributeID createAttributeID(java.lang.String key,
org.deckfour.xes.id.XID value,
org.deckfour.xes.extension.XExtension extension)
createAttributeID in interface org.deckfour.xes.factory.XFactorypublic org.deckfour.xes.model.XAttributeContainer createAttributeContainer(java.lang.String key,
org.deckfour.xes.extension.XExtension extension)
createAttributeContainer in interface org.deckfour.xes.factory.XFactorypublic org.deckfour.xes.model.XAttributeList createAttributeList(java.lang.String key,
org.deckfour.xes.extension.XExtension extension)
createAttributeList in interface org.deckfour.xes.factory.XFactorypublic void startPump()
public boolean isPumping()
public org.deckfour.xes.model.XEvent pumpEvent(org.deckfour.xes.model.XEvent pumpEvent)
public org.deckfour.xes.model.XTrace pumpTrace(org.deckfour.xes.model.XTrace pumpTrace)
public org.deckfour.xes.model.XLog pumpLog(org.deckfour.xes.model.XLog pumpLog)
protected java.util.List<org.deckfour.xes.model.XAttribute> getAttributeList(org.deckfour.xes.model.XAttributable attributable)
public void finishPump()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic org.deckfour.xes.factory.XFactory createPumpTransferFactory()
public void commit()
public void dispose()
public void saveLogStructure(org.deckfour.xes.model.XLog log)
public org.deckfour.xes.model.XLog loadLogStructure()