Class ReftableReader.RefCursorImpl
- java.lang.Object
-
- org.eclipse.jgit.internal.storage.reftable.RefCursor
-
- org.eclipse.jgit.internal.storage.reftable.ReftableReader.RefCursorImpl
-
- All Implemented Interfaces:
java.lang.AutoCloseable
- Enclosing class:
- ReftableReader
private class ReftableReader.RefCursorImpl extends RefCursor
-
-
Constructor Summary
Constructors Constructor Description RefCursorImpl(long scanEnd, byte[] match, boolean prefix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()RefgetRef()Get reference at the current position.booleannext()Check if another reference is available.voidseekPastPrefix(java.lang.String prefixName)Seeks forward to the first ref record lexicographically beyondprefixNamethat doesn't start withprefixName.-
Methods inherited from class org.eclipse.jgit.internal.storage.reftable.RefCursor
wasDeleted
-
-
-
-
Field Detail
-
scanEnd
private final long scanEnd
-
match
private final byte[] match
-
prefix
private final boolean prefix
-
ref
private Ref ref
-
block
BlockReader block
-
-
Method Detail
-
next
public boolean next() throws java.io.IOExceptionDescription copied from class:RefCursorCheck if another reference is available.
-
seekPastPrefix
public void seekPastPrefix(java.lang.String prefixName) throws java.io.IOExceptionDescription copied from class:RefCursorSeeks forward to the first ref record lexicographically beyondprefixNamethat doesn't start withprefixName. If there are no more results, skipping some refs won't add new results. E.g if we create a RefCursor that returns only results with a specific prefix, skipping that prefix won't give results that are not part of the original prefix.- Specified by:
seekPastPrefixin classRefCursor- Parameters:
prefixName- prefix that should be skipped. All previous refs before it will be skipped.- Throws:
java.io.IOException- references cannot be read.
-
getRef
public Ref getRef()
Description copied from class:RefCursorGet reference at the current position.
-
-