congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
AsyncObjectLoaderQueue.open
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using org.eclipse.jgit.lib.AsyncObjectLoaderQueue.open (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.libAsyncObjectLoaderQueueopen

Javadoc

Obtain a loader to read the object. This method can only be invoked once per result Due to race conditions with a concurrent modification of the underlying object database, an object may be unavailable when this method is invoked, even though next returned successfully.

Popular methods of AsyncObjectLoaderQueue

  • cancel
  • getObjectId
  • next
    Position this queue onto the next available result. Even if this method returns true, #open() may st
  • release

Popular in Java

  • Finding current android device location
  • onCreateOptionsMenu (Activity)
  • getResourceAsStream (ClassLoader)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • JButton (javax.swing)
  • JList (javax.swing)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Top 12 Jupyter Notebook extensions
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