Tabnine Logo
UpdatableQHash.rehash
Code IndexAdd Tabnine to your IDE (free)

How to use
rehash
method
in
net.openhft.koloboke.collect.impl.hash.UpdatableQHash

Best Java code snippets using net.openhft.koloboke.collect.impl.hash.UpdatableQHash.rehash (Showing top 4 results out of 315)

origin: net.openhft/koloboke-impl-jdk6-7

private boolean tryRehashForExpansion(int newCapacity) {
  if (newCapacity > capacity()) {
    rehash(newCapacity);
    return true;
  } else {
    return false;
  }
}
origin: net.openhft/koloboke-impl-jdk8

private boolean tryRehashForExpansion(int newCapacity) {
  if (newCapacity > capacity()) {
    rehash(newCapacity);
    return true;
  } else {
    return false;
  }
}
origin: net.openhft/koloboke-impl-jdk6-7

@Override
public boolean shrink() {
  int newCapacity = targetCapacity(size);
  if (newCapacity < capacity()) {
    rehash(newCapacity);
    return true;
  } else {
    return false;
  }
}
origin: net.openhft/koloboke-impl-jdk8

@Override
public boolean shrink() {
  int newCapacity = targetCapacity(size);
  if (newCapacity < capacity()) {
    rehash(newCapacity);
    return true;
  } else {
    return false;
  }
}
net.openhft.koloboke.collect.impl.hashUpdatableQHashrehash

Javadoc

Moves elements to the new arrays of newCapacity length.

This method should be implemented as follows: 1. Copy references to the old arrays comprising the hashtable from fields to local variables 2. Call #initForRehash(int)3. Move elements, entries, etc. from the old arrays to the new ones.

Subclasses should implement, but MUST NOT call this method. This method is called in UpdatableQHash from #postInsertHook(), #ensureCapacity(long)and #shrink() methods.

Popular methods of UpdatableQHash

  • allocateArrays
    Allocates arrays of capacity length to hold states, elements, keys or values in. Subclasses should o
  • capacity
  • clear
    Empties the hash.
  • copy
  • doubleSizedArrays
    LongLong, LongDouble, DoubleDouble and DoubleLong maps might use array of doubled size as table to l
  • grownCapacity
  • init
  • internalInit
  • isMaxCapacity
  • maxSize
  • targetCapacity
  • tryRehashForExpansion
  • targetCapacity,
  • tryRehashForExpansion

Popular in Java

  • Finding current android device location
  • addToBackStack (FragmentTransaction)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getResourceAsStream (ClassLoader)
  • Menu (java.awt)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now