Codota Logo
CacheLongKeyLIRS.getMaxItemSize
Code IndexAdd Codota to your IDE (free)

How to use
getMaxItemSize
method
in
org.h2.mvstore.cache.CacheLongKeyLIRS

Best Java code snippets using org.h2.mvstore.cache.CacheLongKeyLIRS.getMaxItemSize (Showing top 4 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

/**
 * Remove all entries.
 */
public void clear() {
  long max = getMaxItemSize();
  for (int i = 0; i < segmentCount; i++) {
    segments[i] = new Segment<>(
        max, stackMoveDistance, 8, nonResidentQueueSize);
  }
}
origin: com.h2database/h2

if (cache != null && pgSplitSize > cache.getMaxItemSize()) {
  pgSplitSize = (int)cache.getMaxItemSize();
origin: com.h2database/h2-mvstore

/**
 * Remove all entries.
 */
public void clear() {
  long max = getMaxItemSize();
  for (int i = 0; i < segmentCount; i++) {
    segments[i] = new Segment<>(
        max, stackMoveDistance, 8, nonResidentQueueSize);
  }
}
origin: com.h2database/h2-mvstore

if (cache != null && pgSplitSize > cache.getMaxItemSize()) {
  pgSplitSize = (int)cache.getMaxItemSize();
org.h2.mvstore.cacheCacheLongKeyLIRSgetMaxItemSize

Javadoc

Determines max size of the data item size to fit into cache

Popular methods of CacheLongKeyLIRS

  • <init>
    Create a new cache with the given memory size.
  • 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
  • getSegment,
  • getSegmentIndex,
  • keySet,
  • resizeIfNeeded,
  • setMaxMemory,
  • size,
  • sizeOf

Popular in Java

  • Parsing JSON documents to java classes using gson
  • notifyDataSetChanged (ArrayAdapter)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Permission (java.security)
    Abstract class for representing access to a system resource. All permissions have a name (whose inte
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Timer (java.util)
    A facility for threads to schedule tasks for future execution in a background thread. Tasks may be s
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • JComboBox (javax.swing)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
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