java.lang.Object
java.io.OutputStream
de.grogra.util.OutputQueue
de.grogra.util.HierarchicalQueue
de.grogra.xl.impl.base.GraphQueue
- All Implemented Interfaces:
Queue
,Closeable
,DataOutput
,Flushable
,ObjectOutput
,AutoCloseable
,Executor
- Direct Known Subclasses:
GraphQueueImpl
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
static final class
static final class
static final class
static final class
static final class
static final class
protected class
Nested classes/interfaces inherited from class de.grogra.util.HierarchicalQueue
HierarchicalQueue.Cursor, HierarchicalQueue.Data, HierarchicalQueue.Reader
-
Field Summary
Modifier and TypeFieldDescriptionstatic final GraphQueue.AddEdgeDescriptor
static final GraphQueue.AddNodeDescriptor
static final GraphQueue.AddUndirectedEdgeDescriptor
static final GraphQueue.ConnectDescriptor
static final GraphQueue.DeleteEdgeDescriptor
static final GraphQueue.DeleteNodeDescriptor
static final GraphQueue.ExecuteDescriptor
static final QueueDescriptor
static final QueueDescriptor
Fields inherited from class de.grogra.util.HierarchicalQueue
BEGIN_LEVEL, IS_FINISHED, ITEM_AND_BITS_MASK, ITEM_MASK, MAX_UNUSED_BIT, MIN_UNUSED_BIT, MIN_UNUSED_ITEM, NEXT_EXISTS, out
-
Constructor Summary
ConstructorDescriptionGraphQueue
(QueueDescriptor<?> descr, boolean usesObjectQueue, boolean createBackLinks) -
Method Summary
Modifier and TypeMethodDescriptionabstract void
addEdgeBits
(Object source, Object target, int edges) abstract void
abstract void
addUndirectedEdgeBits
(Object source, Object target, int edges) void
clear()
Clears the queue.protected void
clearSegmentsToExcludeImpl
(int[] segs) abstract <N,
P> void abstract void
connectAdjacent
(Object start, Object end, int edges) abstract <N> void
connectIncoming
(N source, N target, Operator<N> operator) abstract <N> void
connectOutgoing
(N source, N target, Operator<N> operator) abstract void
copyIncoming
(Object source, Object target, int edges) abstract void
copyIncoming
(Object source, Object target, int edges, int copyMask, int addMask) abstract void
copyOutgoing
(Object source, Object target, int edges) abstract void
copyOutgoing
(Object source, Object target, int edges, int copyMask, int addMask) protected abstract GraphQueue.Processor
abstract void
deleteCurrentEdges
(Object node, int edges, boolean outgoing) abstract void
deleteEdgeBits
(Object source, Object target, int edges) abstract void
deleteNode
(Object node) abstract void
embedInterpretive
(Object interpreted, Object start, Object end) Returns the descriptor which was used to create this queue.protected abstract RuntimeModel
getModel()
void
markSegment
(int n) abstract void
moveIncoming
(Object source, Object target, int edges) abstract void
moveOutgoing
(Object source, Object target, int edges) boolean
process
(int[] segments) Processes all queued tasks.void
resetToSegment
(int n) Methods inherited from class de.grogra.util.HierarchicalQueue
beginLevel, beginSkipBlock, cloneData, createData, discardLevel, endLevel, endSkipBlock, getCursor, getData, hasItems, hasItemsInCurrentLevel, moveTo, restore, setItemSize, writeItem, writeObject, writeObjectInStream
Methods inherited from class de.grogra.util.OutputQueue
close, dump, flush, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeObjectInQueue, writeShort, writeUTF
Methods inherited from class java.io.OutputStream
nullOutputStream
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.io.DataOutput
writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
Methods inherited from interface de.grogra.xl.impl.queues.Queue
clearSegmentsToExclude
-
Field Details
-
ADD_NODE_DESCRIPTOR
-
CONNECT_DESCRIPTOR
-
ADD_EDGE_DESCRIPTOR
-
ADD_UNDIRECTED_EDGE_DESCRIPTOR
-
DELETE_EDGE_DESCRIPTOR
-
DELETE_NODE_DESCRIPTOR
-
EXECUTE_DESCRIPTOR
-
FIRST_QUEUE
-
LAST_QUEUE
-
-
Constructor Details
-
GraphQueue
-
-
Method Details
-
getDescriptor
Description copied from interface:Queue
Returns the descriptor which was used to create this queue.- Specified by:
getDescriptor
in interfaceQueue
- Returns:
- descriptor of this queue
- See Also:
-
createProcessor
-
process
Description copied from interface:Queue
Processes all queued tasks. This method is invoked byQueueCollection.process(int[])
.- Specified by:
process
in interfaceQueue
- Returns:
true
iff the execution of tasks resulted in modifications to theGraph
- Throws:
RuntimeModelException
- if some error occurs during execution
-
clearSegmentsToExcludeImpl
protected void clearSegmentsToExcludeImpl(int[] segs) -
markSegment
public void markSegment(int n) - Specified by:
markSegment
in interfaceQueue
-
resetToSegment
public void resetToSegment(int n) - Specified by:
resetToSegment
in interfaceQueue
-
clear
public void clear()Description copied from interface:Queue
Clears the queue. This is invoked by theQueueCollection
in order to reuse the queue for a new transformation step.- Specified by:
clear
in interfaceQueue
- Overrides:
clear
in classHierarchicalQueue
-
getModel
-
addNode
-
addEdgeBits
-
addUndirectedEdgeBits
-
deleteEdgeBits
-
deleteNode
-
deleteCurrentEdges
-
moveIncoming
-
copyIncoming
-
copyIncoming
-
moveOutgoing
-
copyOutgoing
-
copyOutgoing
-
connectIncoming
-
connectOutgoing
-
connect
-
connectAdjacent
-
embedInterpretive
-