Codota Logo
FilePathCache$FileCache.getCachePos
Code IndexAdd Codota to your IDE (free)

How to use
getCachePos
method
in
org.h2.mvstore.cache.FilePathCache$FileCache

Best Java code snippets using org.h2.mvstore.cache.FilePathCache$FileCache.getCachePos (Showing top 8 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: com.h2database/h2

@Override
public synchronized int read(ByteBuffer dst, long position) throws IOException {
  long cachePos = getCachePos(position);
  int off = (int) (position - cachePos);
  int len = CACHE_BLOCK_SIZE - off;
origin: com.h2database/h2

private void clearCache(ByteBuffer src, long position) {
  if (cache.size() > 0) {
    int len = src.remaining();
    long p = getCachePos(position);
    while (len > 0) {
      cache.remove(p);
      p += CACHE_BLOCK_SIZE;
      len -= CACHE_BLOCK_SIZE;
    }
  }
}
origin: com.h2database/h2-mvstore

@Override
public synchronized int read(ByteBuffer dst, long position) throws IOException {
  long cachePos = getCachePos(position);
  int off = (int) (position - cachePos);
  int len = CACHE_BLOCK_SIZE - off;
origin: com.h2database/h2-mvstore

private void clearCache(ByteBuffer src, long position) {
  if (cache.size() > 0) {
    int len = src.remaining();
    long p = getCachePos(position);
    while (len > 0) {
      cache.remove(p);
      p += CACHE_BLOCK_SIZE;
      len -= CACHE_BLOCK_SIZE;
    }
  }
}
origin: com.eventsourcing/h2

private void clearCache(ByteBuffer src, long position) {
  if (cache.size() > 0) {
    int len = src.remaining();
    long p = getCachePos(position);
    while (len > 0) {
      cache.remove(p);
      p += CACHE_BLOCK_SIZE;
      len -= CACHE_BLOCK_SIZE;
    }
  }
}
origin: org.wowtools/h2

private void clearCache(ByteBuffer src, long position) {
  if (cache.size() > 0) {
    int len = src.remaining();
    long p = getCachePos(position);
    while (len > 0) {
      cache.remove(p);
      p += CACHE_BLOCK_SIZE;
      len -= CACHE_BLOCK_SIZE;
    }
  }
}
origin: org.wowtools/h2

@Override
public int read(ByteBuffer dst, long position) throws IOException {
  long cachePos = getCachePos(position);
  int off = (int) (position - cachePos);
  int len = CACHE_BLOCK_SIZE - off;
origin: com.eventsourcing/h2

@Override
public int read(ByteBuffer dst, long position) throws IOException {
  long cachePos = getCachePos(position);
  int off = (int) (position - cachePos);
  int len = CACHE_BLOCK_SIZE - off;
org.h2.mvstore.cacheFilePathCache$FileCachegetCachePos

Popular methods of FilePathCache$FileCache

  • <init>
  • clearCache
  • position

Popular in Java

  • Start an intent from android
  • putExtra (Intent)
  • notifyDataSetChanged (ArrayAdapter)
  • addToBackStack (FragmentTransaction)
  • Kernel (java.awt.image)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • TreeSet (java.util)
    A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
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