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

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

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

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

@Override
public boolean cancel(boolean mayInterruptIfRunning) {
  return lItr.cancel(mayInterruptIfRunning);
}
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: org.eclipse.jgit/org.eclipse.jgit

  @Override
  public void release() {
    lItr.release();
  }
};
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: berlam/github-bucket

  @Override
  public void release() {
    lItr.release();
  }
};
origin: berlam/github-bucket

@Override
public boolean cancel(boolean mayInterruptIfRunning) {
  return lItr.cancel(mayInterruptIfRunning);
}
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: theonedev/onedev

  @Override
  public void release() {
    lItr.release();
  }
};
origin: theonedev/onedev

@Override
public boolean cancel(boolean mayInterruptIfRunning) {
  return lItr.cancel(mayInterruptIfRunning);
}
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;
}
origin: sonia.jgit/org.eclipse.jgit

  public void release() {
    lItr.release();
  }
};
origin: sonia.jgit/org.eclipse.jgit

public boolean cancel(boolean mayInterruptIfRunning) {
  return lItr.cancel(mayInterruptIfRunning);
}
org.eclipse.jgit.libAsyncObjectLoaderQueue

Javadoc

Queue to open objects asynchronously. A queue may perform background decompression of objects and supply them (possibly out-of-order) to the application.

Most used methods

  • cancel
  • getObjectId
  • next
    Position this queue onto the next available result. Even if this method returns true, #open() may st
  • 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
  • putExtra (Intent)
  • notifyDataSetChanged (ArrayAdapter)
  • getExternalFilesDir (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • JButton (javax.swing)
  • 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