Class MergedReftable.MergedRefCursor
- java.lang.Object
-
- org.eclipse.jgit.internal.storage.reftable.RefCursor
-
- org.eclipse.jgit.internal.storage.reftable.MergedReftable.MergedRefCursor
-
- All Implemented Interfaces:
java.lang.AutoCloseable
- Direct Known Subclasses:
MergedReftable.FilteringMergedRefCursor
- Enclosing class:
- MergedReftable
private class MergedReftable.MergedRefCursor extends RefCursor
-
-
Field Summary
Fields Modifier and Type Field Description private MergedReftable.RefQueueEntryheadprivate java.util.PriorityQueue<MergedReftable.RefQueueEntry>queueprivate Refref
-
Constructor Summary
Constructors Constructor Description MergedRefCursor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidadd(MergedReftable.RefQueueEntry t)voidclose()RefgetRef()Get reference at the current position.booleannext()Check if another reference is available.private MergedReftable.RefQueueEntrypoll()private voidskipShadowedRefs(java.lang.String name)-
Methods inherited from class org.eclipse.jgit.internal.storage.reftable.RefCursor
wasDeleted
-
-
-
-
Field Detail
-
queue
private final java.util.PriorityQueue<MergedReftable.RefQueueEntry> queue
-
head
private MergedReftable.RefQueueEntry head
-
ref
private Ref ref
-
-
Method Detail
-
add
void add(MergedReftable.RefQueueEntry t) throws java.io.IOException
- Throws:
java.io.IOException
-
next
public boolean next() throws java.io.IOExceptionDescription copied from class:RefCursorCheck if another reference is available.
-
poll
private MergedReftable.RefQueueEntry poll()
-
skipShadowedRefs
private void skipShadowedRefs(java.lang.String name) throws java.io.IOException- Throws:
java.io.IOException
-
getRef
public Ref getRef()
Description copied from class:RefCursorGet reference at the current position.
-
-