|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deckfour.xes.model.buffered.XFastEventList
public class XFastEventList
Implements a fast list of events stored in disk buffers, by using the means of the NikeFS2 virtual file system for event logs. Frees main memory for other tasks, while guaranteeing quick sequential and random access to event log data.
Field Summary | |
---|---|
protected XAttributeMapSerializer |
attributeMapSerializer
Attribute map serializer. |
protected XSequentialEventBuffer |
buffer
Sequential event buffer used for raw buffered storage. |
protected BitSet |
holeFlags
Indicates the positions in the list which are no longer valid, i.e. |
static int |
OVERFLOW_LIMIT
Maximal number of buffered edit operations on the list, before it is consolidated to the disk buffer. |
protected XEvent[] |
overflowEntries
Array of additional overflow entries. |
protected int[] |
overflowIndices
Array of list indices for additional overflow entries. |
protected int |
overflowSize
Current, actual size of the overflow data structures. |
protected int |
size
Size of the list. |
Constructor Summary | |
---|---|
XFastEventList(XAttributeMapSerializer attributeMapSerializer)
Creates a new fast event list. |
Method Summary | |
---|---|
int |
append(XEvent event)
Appends the given event to the end of this fast event list. |
void |
cleanup()
Cleans up this fast event list after use, frees all associated resources. |
Object |
clone()
Creates a clone of this list. |
boolean |
consolidate()
Consolidates this fast event list. |
protected void |
finalize()
|
XEvent |
get(int index)
Retrieves an event at a specific index in the list. |
void |
insert(XEvent event,
int index)
Inserts an event at a given index into the list. |
int |
insertOrdered(XEvent event)
Inserts the given event at its logical position in the list. |
boolean |
isTainted()
Checks whether this list needs consolidation, i.e. |
XEvent |
remove(int index)
Removes the event at the given index from this list. |
XEvent |
replace(XEvent event,
int index)
Replaces the event at the given index with another event. |
int |
size()
Returns the size of this event list. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int OVERFLOW_LIMIT
protected int size
protected XSequentialEventBuffer buffer
protected XAttributeMapSerializer attributeMapSerializer
protected BitSet holeFlags
protected int[] overflowIndices
protected XEvent[] overflowEntries
protected int overflowSize
Constructor Detail |
---|
public XFastEventList(XAttributeMapSerializer attributeMapSerializer) throws IOException
attributeMapSerializer
- The attribute map serializer to be used.
IOException
Method Detail |
---|
public int append(XEvent event) throws IOException
event
- Event to be added.
IOException
public void cleanup() throws IOException
IOException
public boolean consolidate() throws IOException
IOException
public XEvent get(int index) throws IndexOutOfBoundsException, IOException
index
- Index of the required event in the list.
IndexOutOfBoundsException
IOException
public void insert(XEvent event, int index) throws IndexOutOfBoundsException, IOException
event
- The event to be inserted.index
- Requested index of the inserted event.
IndexOutOfBoundsException
IOException
public int insertOrdered(XEvent event) throws IOException
event
- Event to be inserted.
IOException
public boolean isTainted()
public XEvent remove(int index) throws IndexOutOfBoundsException, IOException
index
- Index of the event to be removed.
IndexOutOfBoundsException
IOException
public XEvent replace(XEvent event, int index) throws IndexOutOfBoundsException, IOException
event
- Event to be inserted at the given position.index
- Position to replace event at.
IndexOutOfBoundsException
IOException
public int size()
public Object clone()
clone
in class Object
protected void finalize() throws Throwable
finalize
in class Object
Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |