Top Inners Fields Constructors Methods
org.eclipse.jgit.revwalk

pack-priv abstract Class BlockRevQueue

extends AbstractRevQueue
Class Inheritance
Known Direct Subclasses
org.eclipse.jgit.revwalk.FIFORevQueue, org.eclipse.jgit.revwalk.LIFORevQueue
Imports
java.io.IOException, org.eclipse.jgit.errors.IncorrectObjectTypeException, .MissingObjectException

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
pack-priv static class

Field Summary

Modifier and TypeField and Description
protected BlockRevQueue.BlockFreeList
Inherited from org.eclipse.jgit.revwalk.AbstractRevQueue:
EMPTY_QUEUEoutputType

Constructor Summary

AccessConstructor and Description
protected
BlockRevQueue(boolean
whether only first-parent links should be followed when walking
firstParent
)

Create an empty revision queue.

pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
shareFreeList(BlockRevQueue
another FIFO queue that wants to share our queue's free list.
q
)

Overrides org.eclipse.jgit.revwalk.Generator.shareFreeList.

Reconfigure this queue to share the same free list as another.

Inherited from org.eclipse.jgit.revwalk.AbstractRevQueue:
addaddaddParentsanybodyHasFlagcleardescribeeverbodyHasFlagnextoutputType

Field Detail

freeback to summary
protected BlockRevQueue.BlockFreeList free

Constructor Detail

BlockRevQueueback to summary
protected BlockRevQueue(boolean firstParent)

Create an empty revision queue.

Parameters
firstParent:boolean

whether only first-parent links should be followed when walking

BlockRevQueueback to summary
pack-priv BlockRevQueue(Generator s) throws MissingObjectException, IncorrectObjectTypeException, IOException

Method Detail

shareFreeListback to summary
public void shareFreeList(BlockRevQueue q)

Overrides org.eclipse.jgit.revwalk.Generator.shareFreeList.

Reconfigure this queue to share the same free list as another.

Multiple revision queues can be connected to the same free list, making it less expensive for applications to shuttle commits between them. This method arranges for the receiver to take from / return to the same free list as the supplied queue.

Free lists are not thread-safe. Applications must ensure that all queues sharing the same free list are doing so from only a single thread.

Parameters
q:BlockRevQueue

another FIFO queue that wants to share our queue's free list.

Annotations
@Override
See Also
Generator#shareFreeList
org.eclipse.jgit.revwalk back to summary

pack-priv final Class BlockRevQueue.Block

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv static final int
pack-priv final RevCommit[]
commits

Our table of queued commits.

pack-priv int
headIndex

Next valid entry in commits.

pack-priv BlockRevQueue.Block
next

Next block in our chain of blocks; null if we are the last.

pack-priv int
tailIndex

Next free entry in commits for addition at.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv void
pack-priv boolean
pack-priv void
pack-priv boolean
pack-priv boolean
pack-priv RevCommit
peek()

pack-priv RevCommit
pop()

pack-priv void
pack-priv void
pack-priv void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

BLOCK_SIZEback to summary
pack-priv static final int BLOCK_SIZE
commitsback to summary
pack-priv final RevCommit[] commits

Our table of queued commits.

headIndexback to summary
pack-priv int headIndex

Next valid entry in commits.

nextback to summary
pack-priv BlockRevQueue.Block next

Next block in our chain of blocks; null if we are the last.

tailIndexback to summary
pack-priv int tailIndex

Next free entry in commits for addition at.

Constructor Detail

Blockback to summary
pack-priv Block()

Method Detail

addback to summary
pack-priv void add(RevCommit c)
canUnpopback to summary
pack-priv boolean canUnpop()
clearback to summary
pack-priv void clear()
isEmptyback to summary
pack-priv boolean isEmpty()
isFullback to summary
pack-priv boolean isFull()
peekback to summary
pack-priv RevCommit peek()
popback to summary
pack-priv RevCommit pop()
resetToEndback to summary
pack-priv void resetToEnd()
resetToMiddleback to summary
pack-priv void resetToMiddle()
unpopback to summary
pack-priv void unpop(RevCommit c)
org.eclipse.jgit.revwalk back to summary

pack-priv final Class BlockRevQueue.BlockFreeList

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private BlockRevQueue.Block

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv void
pack-priv void
pack-priv BlockRevQueue.Block
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

nextback to summary
private BlockRevQueue.Block next

Constructor Detail

BlockFreeListback to summary
pack-priv BlockFreeList()

Method Detail

clearback to summary
pack-priv void clear()
freeBlockback to summary
pack-priv void freeBlock(BlockRevQueue.Block b)
newBlockback to summary
pack-priv BlockRevQueue.Block newBlock()