congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ReftableReader$LogCursorImpl
Code IndexAdd Tabnine to your IDE (free)

How to use
ReftableReader$LogCursorImpl
in
org.eclipse.jgit.internal.storage.reftable

Best Java code snippets using org.eclipse.jgit.internal.storage.reftable.ReftableReader$LogCursorImpl (Showing top 4 results out of 315)

origin: org.eclipse.jgit/org.eclipse.jgit

/** {@inheritDoc} */
@Override
public LogCursor seekLog(String refName, long updateIndex)
    throws IOException {
  initLogIndex();
  if (logPosition > 0) {
    byte[] key = LogEntry.key(refName, updateIndex);
    byte[] match = refName.getBytes(UTF_8);
    LogCursorImpl i = new LogCursorImpl(logEnd, match);
    i.block = seek(LOG_BLOCK_TYPE, key, logIndex, logPosition, logEnd);
    return i;
  }
  return new EmptyLogCursor();
}
origin: berlam/github-bucket

/** {@inheritDoc} */
@Override
public LogCursor seekLog(String refName, long updateIndex)
    throws IOException {
  initLogIndex();
  if (logPosition > 0) {
    byte[] key = LogEntry.key(refName, updateIndex);
    byte[] match = refName.getBytes(UTF_8);
    LogCursorImpl i = new LogCursorImpl(logEnd, match);
    i.block = seek(LOG_BLOCK_TYPE, key, logIndex, logPosition, logEnd);
    return i;
  }
  return new EmptyLogCursor();
}
origin: berlam/github-bucket

/** {@inheritDoc} */
@Override
public LogCursor allLogs() throws IOException {
  initLogIndex();
  if (logPosition > 0) {
    src.adviseSequentialRead(logPosition, logEnd);
    LogCursorImpl i = new LogCursorImpl(logEnd, null);
    i.block = readBlock(logPosition, logEnd);
    return i;
  }
  return new EmptyLogCursor();
}
origin: org.eclipse.jgit/org.eclipse.jgit

/** {@inheritDoc} */
@Override
public LogCursor allLogs() throws IOException {
  initLogIndex();
  if (logPosition > 0) {
    src.adviseSequentialRead(logPosition, logEnd);
    LogCursorImpl i = new LogCursorImpl(logEnd, null);
    i.block = readBlock(logPosition, logEnd);
    return i;
  }
  return new EmptyLogCursor();
}
org.eclipse.jgit.internal.storage.reftableReftableReader$LogCursorImpl

Most used methods

  • <init>

Popular in Java

  • Creating JSON documents from java classes using gson
  • setScale (BigDecimal)
  • setRequestProperty (URLConnection)
  • setContentView (Activity)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • JButton (javax.swing)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now