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

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

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

/**
 * Put the page in the cache.
 *
 * @param pos the page position
 * @param page the page
 * @param memory the memory used
 */
void cachePage(long pos, Page page, int memory) {
  if (cache != null) {
    cache.put(pos, page, memory);
  }
}
origin: com.h2database/h2

/**
 * Add all elements of the map to this cache.
 *
 * @param m the map
 */
public void putAll(Map<Long, ? extends V> m) {
  for (Map.Entry<Long, ? extends V> e : m.entrySet()) {
    // copy only non-null entries
    put(e.getKey(), e.getValue());
  }
}
origin: com.h2database/h2

/**
 * Add an entry to the cache using the average memory size.
 *
 * @param key the key (may not be null)
 * @param value the value (may not be null)
 * @return the old value, or null if there was no resident entry
 */
public V put(long key, V value) {
  return put(key, value, sizeOf(value));
}
origin: com.h2database/h2

  cache.put(cachePos, buff, CACHE_BLOCK_SIZE);
} else {
  if (read <= 0) {
origin: com.h2database/h2

refs.chunkList = true;
if (cacheChunkRef != null) {
  cacheChunkRef.put(refs.pos, refs, refs.getMemory());
origin: com.h2database/h2

cacheChunkRef.put(pos, r, r.getMemory());
origin: com.h2database/h2-mvstore

/**
 * Put the page in the cache.
 *
 * @param pos the page position
 * @param page the page
 * @param memory the memory used
 */
void cachePage(long pos, Page page, int memory) {
  if (cache != null) {
    cache.put(pos, page, memory);
  }
}
origin: com.eventsourcing/h2

/**
 * Put the page in the cache.
 *
 * @param pos the page position
 * @param page the page
 * @param memory the memory used
 */
void cachePage(long pos, Page page, int memory) {
  if (cache != null) {
    cache.put(pos, page, memory);
  }
}
origin: org.wowtools/h2

/**
 * Put the page in the cache.
 *
 * @param pos the page position
 * @param page the page
 * @param memory the memory used
 */
void cachePage(long pos, Page page, int memory) {
  if (cache != null) {
    cache.put(pos, page, memory);
  }
}
origin: org.wowtools/h2

/**
 * Add all elements of the map to this cache.
 *
 * @param m the map
 */
public void putAll(Map<Long, ? extends V> m) {
  for (Map.Entry<Long, ? extends V> e : m.entrySet()) {
    // copy only non-null entries
    put(e.getKey(), e.getValue());
  }
}
origin: com.h2database/h2-mvstore

/**
 * Add all elements of the map to this cache.
 *
 * @param m the map
 */
public void putAll(Map<Long, ? extends V> m) {
  for (Map.Entry<Long, ? extends V> e : m.entrySet()) {
    // copy only non-null entries
    put(e.getKey(), e.getValue());
  }
}
origin: com.eventsourcing/h2

/**
 * Add all elements of the map to this cache.
 *
 * @param m the map
 */
public void putAll(Map<Long, ? extends V> m) {
  for (Map.Entry<Long, ? extends V> e : m.entrySet()) {
    // copy only non-null entries
    put(e.getKey(), e.getValue());
  }
}
origin: com.h2database/h2-mvstore

/**
 * Add an entry to the cache using the average memory size.
 *
 * @param key the key (may not be null)
 * @param value the value (may not be null)
 * @return the old value, or null if there was no resident entry
 */
public V put(long key, V value) {
  return put(key, value, sizeOf(value));
}
origin: org.gridgain/gridgain-indexing

/** {@inheritDoc} */
@Override public void cache(GridH2KeyValueRowOffheap row) {
  long ptr = row.pointer();
  assert ptr > 0 : ptr;
  rowCache.put(ptr, row);
}
origin: com.eventsourcing/h2

/**
 * Add an entry to the cache using the average memory size.
 *
 * @param key the key (may not be null)
 * @param value the value (may not be null)
 * @return the old value, or null if there was no resident entry
 */
public V put(long key, V value) {
  return put(key, value, sizeOf(value));
}
origin: org.wowtools/h2

/**
 * Add an entry to the cache using the average memory size.
 *
 * @param key the key (may not be null)
 * @param value the value (may not be null)
 * @return the old value, or null if there was no resident entry
 */
public V put(long key, V value) {
  return put(key, value, sizeOf(value));
}
origin: com.eventsourcing/h2

  cache.put(cachePos, buff, CACHE_BLOCK_SIZE);
} else {
  if (read <= 0) {
origin: com.h2database/h2-mvstore

refs.chunkList = true;
if (cacheChunkRef != null) {
  cacheChunkRef.put(refs.pos, refs, refs.getMemory());
origin: com.eventsourcing/h2

refs.chunkList = true;
if (cacheChunkRef != null) {
  cacheChunkRef.put(refs.pos, refs, refs.getMemory());
origin: org.wowtools/h2

refs.chunkList = true;
if (cacheChunkRef != null) {
  cacheChunkRef.put(refs.pos, refs, refs.getMemory());
org.h2.mvstore.cacheCacheLongKeyLIRSput

Javadoc

Add an entry to the cache using the average memory size.

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.
  • 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
  • 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