Codota Logo
CacheLongKeyLIRS.<init>
Code IndexAdd Codota to your IDE (free)

How to use
org.h2.mvstore.cache.CacheLongKeyLIRS
constructor

Best Java code snippets using org.h2.mvstore.cache.CacheLongKeyLIRS.<init> (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
origin: com.h2database/h2

  cache = new CacheLongKeyLIRS<>(cc);
  cc.maxMemory /= 4;
  cacheChunkRef = new CacheLongKeyLIRS<>(cc);
} else {
  cache = null;
origin: org.gridgain/gridgain-indexing

/**
 * Specifies max allowed size of cache for deserialized offheap rows to avoid deserialization costs for most
 * frequently used ones. In general performance is better with greater cache size. Must be more than 128 items.
 *
 * @param size Cache size in items.
 */
@GridSpiConfiguration(optional = true)
public void setMaxOffheapRowsCacheSize(int size) {
  A.ensure(size >= 128, "Offheap rows cache size must be not less than 128.");
  rowCache = new CacheLongKeyLIRS<>(size, 1, 128, 256);
}
origin: com.eventsourcing/h2

CacheLongKeyLIRS.Config cc = new CacheLongKeyLIRS.Config();
cc.maxMemory = mb * 1024L * 1024L;
cache = new CacheLongKeyLIRS<Page>(cc);
cc.maxMemory /= 4;
cacheChunkRef = new CacheLongKeyLIRS<PageChildren>(cc);
origin: org.wowtools/h2

  cc.segmentCount = (Integer) o;
cache = new CacheLongKeyLIRS<Page>(cc);
cc.maxMemory /= 4;
cacheChunkRef = new CacheLongKeyLIRS<PageChildren>(cc);
origin: com.h2database/h2-mvstore

  cache = new CacheLongKeyLIRS<>(cc);
  cc.maxMemory /= 4;
  cacheChunkRef = new CacheLongKeyLIRS<>(cc);
} else {
  cache = null;
org.h2.mvstore.cacheCacheLongKeyLIRS<init>

Javadoc

Create a new cache with the given memory size.

Popular methods of CacheLongKeyLIRS

  • clear
    Remove all entries.
  • get
    Get the value for the given key if the entry is cached. This method adjusts the internal state of th
  • getMaxMemory
    Get the maximum memory to use.
  • getUsedMemory
    Get the currently used memory.
  • put
    Add an entry to the cache. The entry may or may not exist in the cache yet. This method will usually
  • remove
    Remove an entry. Both resident and non-resident entries can be removed.
  • find
  • getHash
    Get the hash code for the given key. The hash code is further enhanced to spread the values more eve
  • getMap
    Convert this cache to a map.
  • getSegment
  • getSegmentIndex
  • keySet
    Get the set of keys for resident entries.
  • getSegmentIndex,
  • keySet,
  • resizeIfNeeded,
  • setMaxMemory,
  • size,
  • sizeOf,
  • getMaxItemSize

Popular in Java

  • Parsing JSON documents to java classes using gson
  • requestLocationUpdates (LocationManager)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • putExtra (Intent)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • ResourceBundle (java.util)
    Resource bundles contain locale-specific objects. When your program needs a locale-specific resource
  • StringTokenizer (java.util)
    The string tokenizer class allows an application to break a string into tokens. The tokenization met
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
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