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

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

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

  • Common ways to obtain CacheLongKeyLIRS$Entry
private void myMethod () {
CacheLongKeyLIRS$Entry c =
  • Codota IconCacheLongKeyLIRS cacheLongKeyLIRS;cacheLongKeyLIRS.getSegment(int1).find(key, hash)
  • Smart code suggestions by Codota
}
origin: com.h2database/h2

private static <V> Entry<V> copy(Entry<V> old) {
  Entry<V> e = new Entry<>();
  e.key = old.key;
  e.value = old.value;
  e.memory = old.memory;
  e.topMove = old.topMove;
  return e;
}
origin: com.h2database/h2

e = new Entry<>();
e.key = key;
e.value = value;
origin: com.h2database/h2-mvstore

private static <V> Entry<V> copy(Entry<V> old) {
  Entry<V> e = new Entry<>();
  e.key = old.key;
  e.value = old.value;
  e.memory = old.memory;
  e.topMove = old.topMove;
  return e;
}
origin: org.wowtools/h2

private static <V> Entry<V> copy(Entry<V> old) {
  Entry<V> e = new Entry<V>();
  e.key = old.key;
  e.value = old.value;
  e.memory = old.memory;
  e.topMove = old.topMove;
  return e;
}
origin: com.eventsourcing/h2

private static <V> Entry<V> copy(Entry<V> old) {
  Entry<V> e = new Entry<V>();
  e.key = old.key;
  e.value = old.value;
  e.memory = old.memory;
  e.topMove = old.topMove;
  return e;
}
origin: com.h2database/h2

/**
 * Create a new cache segment.
 *
 * @param maxMemory the maximum memory to use
 * @param stackMoveDistance the number of other entries to be moved to
 *        the top of the stack before moving an entry to the top
 * @param len the number of hash table buckets (must be a power of 2)
 * @param nonResidentQueueSize the non-resident queue size factor
 */
Segment(long maxMemory, int stackMoveDistance, int len,
    int nonResidentQueueSize) {
  setMaxMemory(maxMemory);
  this.stackMoveDistance = stackMoveDistance;
  this.nonResidentQueueSize = nonResidentQueueSize;
  // the bit mask has all bits set
  mask = len - 1;
  // initialize the stack and queue heads
  stack = new Entry<>();
  stack.stackPrev = stack.stackNext = stack;
  queue = new Entry<>();
  queue.queuePrev = queue.queueNext = queue;
  queue2 = new Entry<>();
  queue2.queuePrev = queue2.queueNext = queue2;
  @SuppressWarnings("unchecked")
  Entry<V>[] e = new Entry[len];
  entries = e;
}
origin: com.h2database/h2-mvstore

/**
 * Create a new cache segment.
 *
 * @param maxMemory the maximum memory to use
 * @param stackMoveDistance the number of other entries to be moved to
 *        the top of the stack before moving an entry to the top
 * @param len the number of hash table buckets (must be a power of 2)
 * @param nonResidentQueueSize the non-resident queue size factor
 */
Segment(long maxMemory, int stackMoveDistance, int len,
    int nonResidentQueueSize) {
  setMaxMemory(maxMemory);
  this.stackMoveDistance = stackMoveDistance;
  this.nonResidentQueueSize = nonResidentQueueSize;
  // the bit mask has all bits set
  mask = len - 1;
  // initialize the stack and queue heads
  stack = new Entry<>();
  stack.stackPrev = stack.stackNext = stack;
  queue = new Entry<>();
  queue.queuePrev = queue.queueNext = queue;
  queue2 = new Entry<>();
  queue2.queuePrev = queue2.queueNext = queue2;
  @SuppressWarnings("unchecked")
  Entry<V>[] e = new Entry[len];
  entries = e;
}
origin: org.wowtools/h2

/**
 * Create a new cache segment.
 *
 * @param maxMemory the maximum memory to use
 * @param stackMoveDistance the number of other entries to be moved to
 *        the top of the stack before moving an entry to the top
 * @param len the number of hash table buckets (must be a power of 2)
 * @param nonResidentQueueSize the non-resident queue size factor
 */
Segment(long maxMemory, int stackMoveDistance, int len,
    int nonResidentQueueSize) {
  setMaxMemory(maxMemory);
  this.stackMoveDistance = stackMoveDistance;
  this.nonResidentQueueSize = nonResidentQueueSize;
  // the bit mask has all bits set
  mask = len - 1;
  // initialize the stack and queue heads
  stack = new Entry<V>();
  stack.stackPrev = stack.stackNext = stack;
  queue = new Entry<V>();
  queue.queuePrev = queue.queueNext = queue;
  queue2 = new Entry<V>();
  queue2.queuePrev = queue2.queueNext = queue2;
  @SuppressWarnings("unchecked")
  Entry<V>[] e = new Entry[len];
  entries = e;
}
origin: com.eventsourcing/h2

e = new Entry<V>();
e.key = key;
e.value = value;
origin: com.h2database/h2-mvstore

e = new Entry<>();
e.key = key;
e.value = value;
origin: org.wowtools/h2

e = new Entry<V>();
e.key = key;
e.value = value;
origin: com.eventsourcing/h2

/**
 * Create a new cache segment.
 *
 * @param maxMemory the maximum memory to use
 * @param stackMoveDistance the number of other entries to be moved to
 *        the top of the stack before moving an entry to the top
 * @param len the number of hash table buckets (must be a power of 2)
 * @param nonResidentQueueSize the non-resident queue size factor
 */
Segment(long maxMemory, int stackMoveDistance, int len,
    int nonResidentQueueSize) {
  setMaxMemory(maxMemory);
  this.stackMoveDistance = stackMoveDistance;
  this.nonResidentQueueSize = nonResidentQueueSize;
  // the bit mask has all bits set
  mask = len - 1;
  // initialize the stack and queue heads
  stack = new Entry<V>();
  stack.stackPrev = stack.stackNext = stack;
  queue = new Entry<V>();
  queue.queuePrev = queue.queueNext = queue;
  queue2 = new Entry<V>();
  queue2.queuePrev = queue2.queueNext = queue2;
  @SuppressWarnings("unchecked")
  Entry<V>[] e = new Entry[len];
  entries = e;
}
org.h2.mvstore.cacheCacheLongKeyLIRS$Entry<init>

Popular methods of CacheLongKeyLIRS$Entry

  • isHot
    Whether this entry is hot. Cold entries are in one of the two queues.

Popular in Java

  • Reading from database using SQL prepared statement
  • getContentResolver (Context)
  • addToBackStack (FragmentTransaction)
  • onCreateOptionsMenu (Activity)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Properties (java.util)
    The Properties class represents a persistent set of properties. The Properties can be saved to a st
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • JComboBox (javax.swing)
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