Class MergedReftable.MergedRefCursor

java.lang.Object
org.eclipse.jgit.internal.storage.reftable.RefCursor
org.eclipse.jgit.internal.storage.reftable.MergedReftable.MergedRefCursor
All Implemented Interfaces:
AutoCloseable
Direct Known Subclasses:
MergedReftable.FilteringMergedRefCursor
Enclosing class:
MergedReftable

private class MergedReftable.MergedRefCursor extends RefCursor
  • Field Details

  • Constructor Details

    • MergedRefCursor

      MergedRefCursor()
  • Method Details

    • add

      Throws:
      IOException
    • next

      public boolean next() throws IOException
      Description copied from class: RefCursor
      Check if another reference is available.
      Specified by:
      next in class RefCursor
      Returns:
      true if there is another result.
      Throws:
      IOException - references cannot be read.
    • seekPastPrefix

      public void seekPastPrefix(String prefixName) throws IOException
      Description copied from class: RefCursor
      Seeks forward to the first ref record lexicographically beyond 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.
      Specified by:
      seekPastPrefix in class RefCursor
      Parameters:
      prefixName - prefix that should be skipped. All previous refs before it will be skipped.
      Throws:
      IOException - references cannot be read.
    • poll

    • skipShadowedRefs

      private void skipShadowedRefs(String name) throws IOException
      Throws:
      IOException
    • getRef

      public Ref getRef()
      Description copied from class: RefCursor
      Get reference at the current position.
      Specified by:
      getRef in class RefCursor
      Returns:
      reference at the current position.
    • close

      public void close()
      Description copied from class: RefCursor
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in class RefCursor