congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
BlockCacheKey.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.nearinfinity.blur.store.blockcache.BlockCacheKey
constructor

Best Java code snippets using com.nearinfinity.blur.store.blockcache.BlockCacheKey.<init> (Showing top 3 results out of 315)

origin: altamiracorp/blur

@Override
public void update(String name, long blockId, byte[] buffer) {
 Integer file = _names.get(name);
 if (file == null) {
  file = _counter.incrementAndGet();
  _names.put(name, file);
 }
 BlockCacheKey blockCacheKey = new BlockCacheKey();
 blockCacheKey.setBlock(blockId);
 blockCacheKey.setFile(file);
 _blockCache.store(blockCacheKey, buffer);  
}
origin: altamiracorp/blur

@Override
public boolean fetch(String name, long blockId, int blockOffset, byte[] b, int off, int lengthToReadInBlock) {
 Integer file = _names.get(name);
 if (file == null) {
  return false;
 }
 BlockCacheKey blockCacheKey = new BlockCacheKey();
 blockCacheKey.setBlock(blockId);
 blockCacheKey.setFile(file);
 boolean fetch = _blockCache.fetch(blockCacheKey, b, blockOffset, off, lengthToReadInBlock);
 if (fetch) {
  _blurMetrics.blockCacheHit.incrementAndGet();
 } else {
  _blurMetrics.blockCacheMiss.incrementAndGet();
 }
 return fetch;
}
origin: altamiracorp/blur

int passes = 10000;
BlockCacheKey blockCacheKey = new BlockCacheKey();
com.nearinfinity.blur.store.blockcacheBlockCacheKey<init>

Popular methods of BlockCacheKey

  • setBlock
  • setFile
  • clone

Popular in Java

  • Creating JSON documents from java classes using gson
  • startActivity (Activity)
  • getResourceAsStream (ClassLoader)
  • findViewById (Activity)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Permission (java.security)
    Legacy security code; do not use.
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • CodeWhisperer alternatives
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