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

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

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

/**
 * Get the value for the given key if the entry is cached. This method does
 * not modify the internal state.
 *
 * @param key the key (may not be null)
 * @return the value, or null if there is no resident entry
 */
public V peek(long key) {
  Entry<V> e = find(key);
  return e == null ? null : e.value;
}
origin: com.h2database/h2

/**
 * Get the entry set for all resident entries.
 *
 * @return the entry set
 */
public synchronized Set<Map.Entry<Long, V>> entrySet() {
  HashMap<Long, V> map = new HashMap<>();
  for (long k : keySet()) {
    map.put(k,  find(k).value);
  }
  return map.entrySet();
}
origin: com.h2database/h2

/**
 * Get the values for all resident entries.
 *
 * @return the entry set
 */
public List<V> values() {
  ArrayList<V> list = new ArrayList<>();
  for (long k : keySet()) {
    V value = find(k).value;
    if (value != null) {
      list.add(value);
    }
  }
  return list;
}
origin: com.h2database/h2

/**
 * Convert this cache to a map.
 *
 * @return the map
 */
public Map<Long, V> getMap() {
  HashMap<Long, V> map = new HashMap<>();
  for (long k : keySet()) {
    V x = find(k).value;
    if (x != null) {
      map.put(k, x);
    }
  }
  return map;
}
origin: com.h2database/h2-mvstore

/**
 * Get the value for the given key if the entry is cached. This method does
 * not modify the internal state.
 *
 * @param key the key (may not be null)
 * @return the value, or null if there is no resident entry
 */
public V peek(long key) {
  Entry<V> e = find(key);
  return e == null ? null : e.value;
}
origin: com.eventsourcing/h2

/**
 * Get the value for the given key if the entry is cached. This method does
 * not modify the internal state.
 *
 * @param key the key (may not be null)
 * @return the value, or null if there is no resident entry
 */
public V peek(long key) {
  Entry<V> e = find(key);
  return e == null ? null : e.value;
}
origin: org.wowtools/h2

/**
 * Get the value for the given key if the entry is cached. This method does
 * not modify the internal state.
 *
 * @param key the key (may not be null)
 * @return the value, or null if there is no resident entry
 */
public V peek(long key) {
  Entry<V> e = find(key);
  return e == null ? null : e.value;
}
origin: org.wowtools/h2

/**
 * Get the entry set for all resident entries.
 *
 * @return the entry set
 */
public synchronized Set<Map.Entry<Long, V>> entrySet() {
  HashMap<Long, V> map = new HashMap<Long, V>();
  for (long k : keySet()) {
    map.put(k,  find(k).value);
  }
  return map.entrySet();
}
origin: com.h2database/h2-mvstore

/**
 * Get the entry set for all resident entries.
 *
 * @return the entry set
 */
public synchronized Set<Map.Entry<Long, V>> entrySet() {
  HashMap<Long, V> map = new HashMap<>();
  for (long k : keySet()) {
    map.put(k,  find(k).value);
  }
  return map.entrySet();
}
origin: com.eventsourcing/h2

/**
 * Get the entry set for all resident entries.
 *
 * @return the entry set
 */
public synchronized Set<Map.Entry<Long, V>> entrySet() {
  HashMap<Long, V> map = new HashMap<Long, V>();
  for (long k : keySet()) {
    map.put(k,  find(k).value);
  }
  return map.entrySet();
}
origin: com.eventsourcing/h2

/**
 * Convert this cache to a map.
 *
 * @return the map
 */
public Map<Long, V> getMap() {
  HashMap<Long, V> map = new HashMap<Long, V>();
  for (long k : keySet()) {
    V x = find(k).value;
    if (x != null) {
      map.put(k, x);
    }
  }
  return map;
}
origin: org.wowtools/h2

/**
 * Convert this cache to a map.
 *
 * @return the map
 */
public Map<Long, V> getMap() {
  HashMap<Long, V> map = new HashMap<Long, V>();
  for (long k : keySet()) {
    V x = find(k).value;
    if (x != null) {
      map.put(k, x);
    }
  }
  return map;
}
origin: com.h2database/h2-mvstore

/**
 * Get the values for all resident entries.
 *
 * @return the entry set
 */
public List<V> values() {
  ArrayList<V> list = new ArrayList<>();
  for (long k : keySet()) {
    V value = find(k).value;
    if (value != null) {
      list.add(value);
    }
  }
  return list;
}
origin: com.eventsourcing/h2

/**
 * Get the values for all resident entries.
 *
 * @return the entry set
 */
public List<V> values() {
  ArrayList<V> list = new ArrayList<V>();
  for (long k : keySet()) {
    V value = find(k).value;
    if (value != null) {
      list.add(value);
    }
  }
  return list;
}
origin: com.h2database/h2-mvstore

/**
 * Convert this cache to a map.
 *
 * @return the map
 */
public Map<Long, V> getMap() {
  HashMap<Long, V> map = new HashMap<>();
  for (long k : keySet()) {
    V x = find(k).value;
    if (x != null) {
      map.put(k, x);
    }
  }
  return map;
}
origin: org.wowtools/h2

/**
 * Get the values for all resident entries.
 *
 * @return the entry set
 */
public List<V> values() {
  ArrayList<V> list = new ArrayList<V>();
  for (long k : keySet()) {
    V value = find(k).value;
    if (value != null) {
      list.add(value);
    }
  }
  return list;
}
org.h2.mvstore.cacheCacheLongKeyLIRSfind

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

  • Reactive rest calls using spring rest template
  • runOnUiThread (Activity)
  • addToBackStack (FragmentTransaction)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • MalformedURLException (java.net)
    Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a s
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Hashtable (java.util)
    Hashtable is a synchronized implementation of Map. All optional operations are supported.Neither key
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
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