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

How to use
getOrLoadBlock
method
in
org.eclipse.jgit.internal.storage.dfs.BlockBasedFile

Best Java code snippets using org.eclipse.jgit.internal.storage.dfs.BlockBasedFile.getOrLoadBlock (Showing top 2 results out of 315)

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

void pin(BlockBasedFile file, long position) throws IOException {
  if (block == null || !block.contains(file.key, position)) {
    // If memory is low, we may need what is in our window field to
    // be cleaned up by the GC during the get for the next window.
    // So we always clear it, even though we are just going to set
    // it again.
    block = null;
    block = file.getOrLoadBlock(position, this);
  }
}
origin: berlam/github-bucket

void pin(BlockBasedFile file, long position) throws IOException {
  if (block == null || !block.contains(file.key, position)) {
    // If memory is low, we may need what is in our window field to
    // be cleaned up by the GC during the get for the next window.
    // So we always clear it, even though we are just going to set
    // it again.
    block = null;
    block = file.getOrLoadBlock(position, this);
  }
}
org.eclipse.jgit.internal.storage.dfsBlockBasedFilegetOrLoadBlock

Popular methods of BlockBasedFile

  • alignToBlock
  • blockSize
  • elapsedMicros
  • getFileName
  • read
  • readOneBlock

Popular in Java

  • Updating database using SQL prepared statement
  • startActivity (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • 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
  • Permission (java.security)
    Legacy security code; do not use.
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top Sublime Text plugins
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