public abstract class RefCursor extends Object implements AutoCloseable
Reftable.| Constructor and Description |
|---|
RefCursor() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
close() |
abstract Ref |
getRef()
Get reference at the current position.
|
abstract boolean |
next()
Check if another reference is available.
|
abstract void |
seekPastPrefix(String prefixName)
Seeks forward to the first ref record lexicographically beyond
prefixName that doesn't start with prefixName. |
boolean |
wasDeleted()
Whether the current reference was deleted.
|
public abstract boolean next()
throws IOException
true if there is another result.IOException - references cannot be read.public abstract void seekPastPrefix(String prefixName) throws IOException
prefixName that doesn't start with prefixName. 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.prefixName - prefix that should be skipped. All previous refs before it
will be skipped.IOException - references cannot be read.public abstract Ref getRef()
public boolean wasDeleted()
true if the current reference was deleted.public abstract void close()
close in interface AutoCloseableCopyright © 2021 Eclipse JGit Project. All rights reserved.