public class DateRevQueue extends AbstractRevQueue
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
DateRevQueue.Entry |
| Modifier and Type | Field and Description |
|---|---|
private int |
first |
private DateRevQueue.Entry |
free |
private DateRevQueue.Entry |
head |
private DateRevQueue.Entry[] |
index |
private int |
inQueue |
private int |
last |
private static int |
REBUILD_INDEX_COUNT |
private int |
sinceLastIndex |
EMPTY_QUEUE, outputTypeHAS_REWRITE, HAS_UNINTERESTING, NEEDS_REWRITE, SORT_COMMIT_TIME_DESC, SORT_TOPO| Constructor and Description |
|---|
DateRevQueue()
Create an empty date queue.
|
DateRevQueue(Generator s) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(RevCommit c)
Add a commit to the queue.
|
(package private) boolean |
anybodyHasFlag(int f) |
private void |
buildIndex() |
void |
clear()
Remove all entries from this queue.
|
(package private) boolean |
everbodyHasFlag(int f) |
private void |
freeEntry(DateRevQueue.Entry e) |
private DateRevQueue.Entry |
newEntry(RevCommit c) |
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.
|
RevCommit |
peek()
Peek at the next commit, without removing it.
|
java.lang.String |
toString() |
add, addParents, describeshareFreeListprivate static final int REBUILD_INDEX_COUNT
private DateRevQueue.Entry head
private DateRevQueue.Entry free
private int inQueue
private int sinceLastIndex
private DateRevQueue.Entry[] index
private int first
private int last
public DateRevQueue()
DateRevQueue(Generator s) throws MissingObjectException, IncorrectObjectTypeException, java.io.IOException
MissingObjectExceptionIncorrectObjectTypeExceptionjava.io.IOExceptionpublic void add(RevCommit c)
This method always adds the commit, even if it is already in the queue or
previously was in the queue but has already been removed. To control
queue admission use AbstractRevQueue.add(RevCommit, RevFlag).
add in class AbstractRevQueuec - commit to add.public RevCommit next()
Remove the first commit from the queue.
next in class AbstractRevQueueprivate void buildIndex()
public RevCommit peek()
public void clear()
clear in class AbstractRevQueueboolean everbodyHasFlag(int f)
everbodyHasFlag in class AbstractRevQueueboolean anybodyHasFlag(int f)
anybodyHasFlag in class AbstractRevQueueint outputType()
GeneratoroutputType in class AbstractRevQueuepublic java.lang.String toString()
toString in class java.lang.Objectprivate DateRevQueue.Entry newEntry(RevCommit c)
private void freeEntry(DateRevQueue.Entry e)