Tabnine Logo
AsyncObjectLoaderQueue.next
Code IndexAdd Tabnine to your IDE (free)

How to use
next
method
in
org.eclipse.jgit.lib.AsyncObjectLoaderQueue

Best Java code snippets using org.eclipse.jgit.lib.AsyncObjectLoaderQueue.next (Showing top 4 results out of 315)

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

@Override
public RevObject next() throws MissingObjectException,
    IncorrectObjectTypeException, IOException {
  if (objItr.hasNext())
    return objItr.next();
  if (!lItr.next())
    return null;
  ObjectId id = lItr.getObjectId();
  ObjectLoader ldr = lItr.open();
  RevObject r = objects.get(id);
  if (r == null)
    r = parseNew(id, ldr);
  else if (r instanceof RevCommit) {
    byte[] raw = ldr.getCachedBytes();
    ((RevCommit) r).parseCanonical(RevWalk.this, raw);
  } else if (r instanceof RevTag) {
    byte[] raw = ldr.getCachedBytes();
    ((RevTag) r).parseCanonical(RevWalk.this, raw);
  } else
    r.flags |= PARSED;
  return r;
}
origin: sonia.jgit/org.eclipse.jgit

public RevObject next() throws MissingObjectException,
    IncorrectObjectTypeException, IOException {
  if (objItr.hasNext())
    return objItr.next();
  if (!lItr.next())
    return null;
  ObjectId id = lItr.getObjectId();
  ObjectLoader ldr = lItr.open();
  RevObject r = objects.get(id);
  if (r == null)
    r = parseNew(id, ldr);
  else if (r instanceof RevCommit) {
    byte[] raw = ldr.getCachedBytes();
    ((RevCommit) r).parseCanonical(RevWalk.this, raw);
  } else if (r instanceof RevTag) {
    byte[] raw = ldr.getCachedBytes();
    ((RevTag) r).parseCanonical(RevWalk.this, raw);
  } else
    r.flags |= PARSED;
  return r;
}
origin: theonedev/onedev

@Override
public RevObject next() throws MissingObjectException,
    IncorrectObjectTypeException, IOException {
  if (objItr.hasNext())
    return objItr.next();
  if (!lItr.next())
    return null;
  ObjectId id = lItr.getObjectId();
  ObjectLoader ldr = lItr.open();
  RevObject r = objects.get(id);
  if (r == null)
    r = parseNew(id, ldr);
  else if (r instanceof RevCommit) {
    byte[] raw = ldr.getCachedBytes();
    ((RevCommit) r).parseCanonical(RevWalk.this, raw);
  } else if (r instanceof RevTag) {
    byte[] raw = ldr.getCachedBytes();
    ((RevTag) r).parseCanonical(RevWalk.this, raw);
  } else
    r.flags |= PARSED;
  return r;
}
origin: berlam/github-bucket

@Override
public RevObject next() throws MissingObjectException,
    IncorrectObjectTypeException, IOException {
  if (objItr.hasNext())
    return objItr.next();
  if (!lItr.next())
    return null;
  ObjectId id = lItr.getObjectId();
  ObjectLoader ldr = lItr.open();
  RevObject r = objects.get(id);
  if (r == null)
    r = parseNew(id, ldr);
  else if (r instanceof RevCommit) {
    byte[] raw = ldr.getCachedBytes();
    ((RevCommit) r).parseCanonical(RevWalk.this, raw);
  } else if (r instanceof RevTag) {
    byte[] raw = ldr.getCachedBytes();
    ((RevTag) r).parseCanonical(RevWalk.this, raw);
  } else
    r.flags |= PARSED;
  return r;
}
org.eclipse.jgit.libAsyncObjectLoaderQueuenext

Javadoc

Position this queue onto the next available result. Even if this method returns true, #open() may still throw org.eclipse.jgit.errors.MissingObjectException if the underlying object database was concurrently modified and the current object is no longer available.

Popular methods of AsyncObjectLoaderQueue

  • cancel
  • getObjectId
  • open
    Obtain a loader to read the object. This method can only be invoked once per result Due to race cond
  • release

Popular in Java

  • Updating database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • getApplicationContext (Context)
  • addToBackStack (FragmentTransaction)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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