Codota Logo
DhtReader.endPrefetch
Code IndexAdd Codota to your IDE (free)

How to use
endPrefetch
method
in
org.eclipse.jgit.storage.dht.DhtReader

Best Java code snippets using org.eclipse.jgit.storage.dht.DhtReader.endPrefetch (Showing top 10 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: org.eclipse.jgit/org.eclipse.jgit.storage.dht

@Override
public void walkAdviceEnd() {
  endPrefetch();
}
origin: com.madgag/org.eclipse.jgit.storage.dht

@Override
public void walkAdviceEnd() {
  endPrefetch();
}
origin: org.eclipse.jgit/org.eclipse.jgit.storage.dht

@Override
public void release() {
  recentChunks.clear();
  endPrefetch();
  InflaterCache.release(inflater);
  inflater = null;
  super.release();
}
origin: org.eclipse.jgit/org.eclipse.jgit.storage.dht

@Override
public void walkAdviceBeginCommits(RevWalk rw, Collection<RevCommit> roots)
    throws IOException {
  endPrefetch();
  // Don't assign the prefetcher right away. Delay until its
  // configured as push might invoke our own methods that may
  // try to call back into the active prefetcher.
  //
  Prefetcher p = prefetch(OBJ_COMMIT, readerOptions.getWalkCommitsPrefetchRatio());
  p.push(this, roots);
  prefetcher = p;
}
origin: com.madgag/org.eclipse.jgit.storage.dht

@Override
public void release() {
  recentChunks.clear();
  endPrefetch();
  InflaterCache.release(inflater);
  inflater = null;
  super.release();
}
origin: com.madgag/org.eclipse.jgit.storage.dht

@Override
public void walkAdviceBeginCommits(RevWalk rw, Collection<RevCommit> roots)
    throws IOException {
  endPrefetch();
  // Don't assign the prefetcher right away. Delay until its
  // configured as push might invoke our own methods that may
  // try to call back into the active prefetcher.
  //
  Prefetcher p = prefetch(OBJ_COMMIT, readerOptions.getWalkCommitsPrefetchRatio());
  p.push(this, roots);
  prefetcher = p;
}
origin: org.eclipse.jgit/org.eclipse.jgit.storage.dht

@SuppressWarnings("unchecked")
public void writeObjects(PackOutputStream out, List<ObjectToPack> objects)
    throws IOException {
  prefetcher = prefetch(0, readerOptions.getWriteObjectsPrefetchRatio());
  try {
    List itr = objects;
    new ObjectWriter(this, prefetcher).plan(itr);
    for (ObjectToPack otp : objects)
      out.writeObject(otp);
  } finally {
    endPrefetch();
  }
}
origin: com.madgag/org.eclipse.jgit.storage.dht

@SuppressWarnings("unchecked")
public void writeObjects(PackOutputStream out, List<ObjectToPack> objects)
    throws IOException {
  prefetcher = prefetch(0, readerOptions.getWriteObjectsPrefetchRatio());
  try {
    List itr = objects;
    new ObjectWriter(this, prefetcher).plan(itr);
    for (ObjectToPack otp : objects)
      out.writeObject(otp);
  } finally {
    endPrefetch();
  }
}
origin: org.eclipse.jgit/org.eclipse.jgit.storage.dht

@Override
public void walkAdviceBeginTrees(ObjectWalk ow, RevCommit min, RevCommit max)
    throws IOException {
  endPrefetch();
  // Don't assign the prefetcher right away. Delay until its
  // configured as push might invoke our own methods that may
  // try to call back into the active prefetcher.
  //
  Prefetcher p = prefetch(OBJ_TREE, readerOptions.getWalkTreesPrefetchRatio());
  p.push(this, min.getTree(), max.getTree());
  prefetcher = p;
}
origin: com.madgag/org.eclipse.jgit.storage.dht

@Override
public void walkAdviceBeginTrees(ObjectWalk ow, RevCommit min, RevCommit max)
    throws IOException {
  endPrefetch();
  // Don't assign the prefetcher right away. Delay until its
  // configured as push might invoke our own methods that may
  // try to call back into the active prefetcher.
  //
  Prefetcher p = prefetch(OBJ_TREE, readerOptions.getWalkTreesPrefetchRatio());
  p.push(this, min.getTree(), max.getTree());
  prefetcher = p;
}
org.eclipse.jgit.storage.dhtDhtReaderendPrefetch

Popular methods of DhtReader

  • <init>
  • find
  • findChunk
  • getChunk
  • getChunkGently
  • getDatabase
  • getDeltaBaseCache
  • getInserterOptions
  • getOptions
  • getRecentChunks
  • getRecentInfoCache
  • getRepositoryKey
  • getRecentInfoCache,
  • getRepositoryKey,
  • getStatistics,
  • inflater,
  • load,
  • missing,
  • prefetch,
  • recentChunk

Popular in Java

  • Updating database using SQL prepared statement
  • getSharedPreferences (Context)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • orElseThrow (Optional)
  • Permission (java.security)
    Abstract class for representing access to a system resource. All permissions have a name (whose inte
  • Hashtable (java.util)
    Hashtable is a synchronized implementation of Map. All optional operations are supported.Neither key
  • Timer (java.util)
    A facility for threads to schedule tasks for future execution in a background thread. Tasks may be s
  • Pattern (java.util.regex)
    A compiled representation of a regular expression. A regular expression, specified as a string, must
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now