class TopoSortGenerator extends Generator
Modifier and Type | Field and Description |
---|---|
private int |
outputType |
private FIFORevQueue |
pending |
private static int |
TOPO_DELAY |
firstParent, HAS_REWRITE, HAS_UNINTERESTING, NEEDS_REWRITE, SORT_COMMIT_TIME_DESC, SORT_TOPO
Constructor and Description |
---|
TopoSortGenerator(Generator s)
Create a new sorter and completely spin the generator.
|
Modifier and Type | Method and Description |
---|---|
(package private) RevCommit |
next()
Return the next commit to the application, or the next generator.
|
(package private) int |
outputType()
Obtain flags describing the output behavior of this generator.
|
(package private) void |
shareFreeList(BlockRevQueue q)
Connect the supplied queue to this generator's own free list (if any).
|
private static final int TOPO_DELAY
private final FIFORevQueue pending
private final int outputType
TopoSortGenerator(Generator s) throws MissingObjectException, IncorrectObjectTypeException, java.io.IOException
When the constructor completes the supplied generator will have no commits remaining, as all of the commits will be held inside of this generator's internal buffer.
s
- generator to pull all commits out of, and into this buffer.MissingObjectException
IncorrectObjectTypeException
java.io.IOException
int outputType()
Generator
outputType
in class Generator
void shareFreeList(BlockRevQueue q)
Generator
shareFreeList
in class Generator
q
- another FIFO queue that wants to share our queue's free list.RevCommit next() throws MissingObjectException, IncorrectObjectTypeException, java.io.IOException
Generator
next
in class Generator
MissingObjectException
IncorrectObjectTypeException
java.io.IOException