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

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

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

@Override
public synchronized FileChannel truncate(long newSize) throws IOException {
  cache.clear();
  base.truncate(newSize);
  return this;
}
origin: com.h2database/h2

/**
 * Set the read cache size in MB.
 *
 * @param mb the cache size in MB.
 */
public void setCacheSize(int mb) {
  final long bytes = (long) mb * 1024 * 1024;
  if (cache != null) {
    cache.setMaxMemory(bytes);
    cache.clear();
  }
  if (cacheChunkRef != null) {
    cacheChunkRef.setMaxMemory(bytes / 4);
    cacheChunkRef.clear();
  }
}
origin: com.h2database/h2

/**
 * Create a new cache with the given memory size.
 *
 * @param config the configuration
 */
@SuppressWarnings("unchecked")
public CacheLongKeyLIRS(Config config) {
  setMaxMemory(config.maxMemory);
  this.nonResidentQueueSize = config.nonResidentQueueSize;
  DataUtils.checkArgument(
      Integer.bitCount(config.segmentCount) == 1,
      "The segment count must be a power of 2, is {0}", config.segmentCount);
  this.segmentCount = config.segmentCount;
  this.segmentMask = segmentCount - 1;
  this.stackMoveDistance = config.stackMoveDistance;
  segments = new Segment[segmentCount];
  clear();
  // use the high bits for the segment
  this.segmentShift = 32 - Integer.bitCount(segmentMask);
}
origin: com.h2database/h2

cache.clear();
cacheChunkRef.clear();
origin: com.eventsourcing/h2

@Override
public FileChannel truncate(long newSize) throws IOException {
  cache.clear();
  base.truncate(newSize);
  return this;
}
origin: com.h2database/h2-mvstore

@Override
public synchronized FileChannel truncate(long newSize) throws IOException {
  cache.clear();
  base.truncate(newSize);
  return this;
}
origin: org.wowtools/h2

@Override
public FileChannel truncate(long newSize) throws IOException {
  cache.clear();
  base.truncate(newSize);
  return this;
}
origin: org.wowtools/h2

/**
 * Set the read cache size in MB.
 *
 * @param mb the cache size in MB.
 */
public void setCacheSize(int mb) {
  if (cache != null) {
    cache.setMaxMemory((long) mb * 1024 * 1024);
    cache.clear();
  }
}
origin: com.eventsourcing/h2

/**
 * Set the read cache size in MB.
 *
 * @param mb the cache size in MB.
 */
public void setCacheSize(int mb) {
  if (cache != null) {
    cache.setMaxMemory((long) mb * 1024 * 1024);
    cache.clear();
  }
}
origin: com.h2database/h2-mvstore

/**
 * Set the read cache size in MB.
 *
 * @param mb the cache size in MB.
 */
public void setCacheSize(int mb) {
  final long bytes = (long) mb * 1024 * 1024;
  if (cache != null) {
    cache.setMaxMemory(bytes);
    cache.clear();
  }
  if (cacheChunkRef != null) {
    cacheChunkRef.setMaxMemory(bytes / 4);
    cacheChunkRef.clear();
  }
}
origin: com.h2database/h2-mvstore

/**
 * Create a new cache with the given memory size.
 *
 * @param config the configuration
 */
@SuppressWarnings("unchecked")
public CacheLongKeyLIRS(Config config) {
  setMaxMemory(config.maxMemory);
  this.nonResidentQueueSize = config.nonResidentQueueSize;
  DataUtils.checkArgument(
      Integer.bitCount(config.segmentCount) == 1,
      "The segment count must be a power of 2, is {0}", config.segmentCount);
  this.segmentCount = config.segmentCount;
  this.segmentMask = segmentCount - 1;
  this.stackMoveDistance = config.stackMoveDistance;
  segments = new Segment[segmentCount];
  clear();
  // use the high bits for the segment
  this.segmentShift = 32 - Integer.bitCount(segmentMask);
}
origin: org.wowtools/h2

/**
 * Create a new cache with the given memory size.
 *
 * @param config the configuration
 */
@SuppressWarnings("unchecked")
public CacheLongKeyLIRS(Config config) {
  setMaxMemory(config.maxMemory);
  this.nonResidentQueueSize = config.nonResidentQueueSize;
  DataUtils.checkArgument(
      Integer.bitCount(config.segmentCount) == 1,
      "The segment count must be a power of 2, is {0}", config.segmentCount);
  this.segmentCount = config.segmentCount;
  this.segmentMask = segmentCount - 1;
  this.stackMoveDistance = config.stackMoveDistance;
  segments = new Segment[segmentCount];
  clear();
  // use the high bits for the segment
  this.segmentShift = 32 - Integer.bitCount(segmentMask);
}
origin: com.eventsourcing/h2

/**
 * Create a new cache with the given memory size.
 *
 * @param config the configuration
 */
@SuppressWarnings("unchecked")
public CacheLongKeyLIRS(Config config) {
  setMaxMemory(config.maxMemory);
  this.nonResidentQueueSize = config.nonResidentQueueSize;
  DataUtils.checkArgument(
      Integer.bitCount(config.segmentCount) == 1,
      "The segment count must be a power of 2, is {0}", config.segmentCount);
  this.segmentCount = config.segmentCount;
  this.segmentMask = segmentCount - 1;
  this.stackMoveDistance = config.stackMoveDistance;
  segments = new Segment[segmentCount];
  clear();
  // use the high bits for the segment
  this.segmentShift = 32 - Integer.bitCount(segmentMask);
}
origin: com.h2database/h2-mvstore

cache.clear();
cacheChunkRef.clear();
origin: org.gridgain/gridgain-indexing

rowCache.clear();
org.h2.mvstore.cacheCacheLongKeyLIRSclear

Javadoc

Remove all entries.

Popular methods of CacheLongKeyLIRS

  • <init>
    Create a new cache with the given memory size.
  • 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

  • Making http requests using okhttp
  • setContentView (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • Permission (java.security)
    Abstract class for representing access to a system resource. All permissions have a name (whose inte
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • DecimalFormat (java.text)
    DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
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