congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
CacheLongKeyLIRS.<init>
Code IndexAdd Tabnine 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 ArrayList()
  • Codota Iconnew LinkedList()
  • Smart code suggestions by Tabnine
}
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

  • Finding current android device location
  • getSystemService (Context)
  • setContentView (Activity)
  • getResourceAsStream (ClassLoader)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Top 25 Plugins for Webstorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now