Package org.eclipse.jgit.revwalk
Class TopoNonIntermixSortGenerator
java.lang.Object
org.eclipse.jgit.revwalk.Generator
org.eclipse.jgit.revwalk.TopoNonIntermixSortGenerator
Sorts commits in topological order without intermixing lines of history.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
private final FIFORevQueue
private static final int
Fields inherited from class org.eclipse.jgit.revwalk.Generator
firstParent, HAS_REWRITE, HAS_UNINTERESTING, NEEDS_REWRITE, SORT_COMMIT_TIME_DESC, SORT_TOPO
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new sorter and completely spin the generator. -
Method Summary
Modifier and TypeMethodDescription(package private) RevCommit
next()
Return the next commit to the application, or the next generator.(package private) int
Obtain flags describing the output behavior of this generator.(package private) void
Connect the supplied queue to this generator's own free list (if any).
-
Field Details
-
TOPO_QUEUED
private static final int TOPO_QUEUED- See Also:
-
pending
-
outputType
private final int outputType
-
-
Constructor Details
-
TopoNonIntermixSortGenerator
TopoNonIntermixSortGenerator(Generator s) throws MissingObjectException, IncorrectObjectTypeException, IOException Create a new sorter and completely spin the generator.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.
- Parameters:
s
- generator to pull all commits out of, and into this buffer.- Throws:
MissingObjectException
IncorrectObjectTypeException
IOException
-
-
Method Details
-
outputType
int outputType()Description copied from class:Generator
Obtain flags describing the output behavior of this generator.- Specified by:
outputType
in classGenerator
- Returns:
- one or more of the constants declared in this class, describing how this generator produces its results.
-
next
Description copied from class:Generator
Return the next commit to the application, or the next generator.- Specified by:
next
in classGenerator
- Returns:
- next available commit; null if no more are to be returned.
- Throws:
MissingObjectException
IncorrectObjectTypeException
IOException
-