| Modifier and Type | Field and Description |
|---|---|
| protected boolean | includeDeletes
|
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract LogCursor | Returns: cursor to iterate; empty cursor if no logs are present.Seek reader to read log records. |
| public abstract RefCursor | |
| public abstract RefCursor | Returns: cursor to iterate; empty cursor if no references match.object to find. id)Match references pointing to a specific object. |
| public Ref | |
| public static Reftable | Returns: a reader for the supplied references.references to convert into a reftable; may be empty. refs)References to convert into a reftable |
| public boolean | Returns: true if any reference exists directly referencing
id, or a annotated tag that peels to id.ObjectId to find. id)Test if any reference directly refers to the object. |
| public abstract boolean | Returns: whether this reftable can do a fast SHA1 => ref lookup.Whether this reftable can do a fast SHA1 => ref lookup |
| public boolean | |
| public boolean | Returns: true if at least one reference exists with prefix.prefix to find. prefix)Test if any reference starts with |
| public abstract long | Returns: the maximum update index for ref entries that appear in this reftable.Get the maximum update index for ref entries that appear in this reftable. |
| public abstract long | Returns: the minimum update index for ref entries that appear in this reftable.Get the minimum update index for ref entries that appear in this reftable. |
| public Ref | |
| private Ref | |
| public LogCursor | |
| public abstract LogCursor | |
| public abstract RefCursor | |
| public abstract RefCursor | Returns: cursor to iterate; empty cursor if no references match.prefix to find. prefix)Seek references with prefix. |
| public void | setIncludeDeletes(boolean
if deletes)true deleted references will be returned. If
false (default behavior), deleted references will be
skipped, and not returned.Whether deleted references will be returned. |
| includeDeletes | back to summary |
|---|---|
| protected boolean includeDeletes
| |
| Reftable | back to summary |
|---|---|
| public Reftable() | |
| allLogs | back to summary |
|---|---|
| public abstract LogCursor allLogs() throws IOException Seek reader to read log records.
| |
| allRefs | back to summary |
|---|---|
| public abstract RefCursor allRefs() throws IOException Seek to the first reference, to iterate in order.
| |
| byObjectId | back to summary |
|---|---|
| public abstract RefCursor byObjectId(AnyObjectId id) throws IOException Match references pointing to a specific object.
| |
| exactRef | back to summary |
|---|---|
| public Ref exactRef(String refName) throws IOException Lookup a reference, or null if not found.
| |
| from | back to summary |
|---|---|
| public static Reftable from(Collection<Ref> refs) References to convert into a reftable
| |
| hasId | back to summary |
|---|---|
| public boolean hasId(AnyObjectId id) throws IOException Test if any reference directly refers to the object.
| |
| hasObjectMap | back to summary |
|---|---|
| public abstract boolean hasObjectMap() throws IOException Whether this reftable can do a fast SHA1 => ref lookup
| |
| hasRef | back to summary |
|---|---|
| public boolean hasRef(String refName) throws IOException Test if a reference exists.
| |
| hasRefsWithPrefix | back to summary |
|---|---|
| public boolean hasRefsWithPrefix(String prefix) throws IOException Test if any reference starts with
| |
| maxUpdateIndex | back to summary |
|---|---|
| public abstract long maxUpdateIndex() throws IOException Get the maximum update index for ref entries that appear in this reftable.
| |
| minUpdateIndex | back to summary |
|---|---|
| public abstract long minUpdateIndex() throws IOException Get the minimum update index for ref entries that appear in this reftable.
| |
| resolve | back to summary |
|---|---|
| public Ref resolve(Ref symref) throws IOException Resolve a symbolic reference to populate its value.
| |
| resolve | back to summary |
|---|---|
| private Ref resolve(Ref ref, int depth) throws IOException | |
| seekLog | back to summary |
|---|---|
| public LogCursor seekLog(String refName) throws IOException Read a single reference's log.
| |
| seekLog | back to summary |
|---|---|
| public abstract LogCursor seekLog(String refName, long updateIndex) throws IOException Seek to an update index in a reference's log.
| |
| seekRef | back to summary |
|---|---|
| public abstract RefCursor seekRef(String refName) throws IOException Seek to a reference.
This method will seek to the reference
| |
| seekRefsWithPrefix | back to summary |
|---|---|
| public abstract RefCursor seekRefsWithPrefix(String prefix) throws IOException Seek references with prefix.
The method will seek all the references starting with
| |
| setIncludeDeletes | back to summary |
|---|---|
| public void setIncludeDeletes(boolean deletes) Whether deleted references will be returned.
| |