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

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

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

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

private int targetCapacity(int size) {
  return QHashCapacities.capacity(configWrapper, size, doubleSizedArrays());
}
origin: net.openhft/koloboke-impl-jdk6-7

private boolean isMaxCapacity(int capacity) {
  return QHashCapacities.isMaxCapacity(capacity, doubleSizedArrays());
}
origin: net.openhft/koloboke-impl-jdk8

private int targetCapacity(int size) {
  return QHashCapacities.capacity(configWrapper, size, doubleSizedArrays());
}
origin: net.openhft/koloboke-impl-jdk8

private boolean isMaxCapacity(int capacity) {
  return QHashCapacities.isMaxCapacity(capacity, doubleSizedArrays());
}
origin: net.openhft/koloboke-impl-jdk6-7

  private int grownCapacity() {
    return nearestGreaterCapacity(configWrapper.grow(capacity()), size, doubleSizedArrays());
  }
}
origin: net.openhft/koloboke-impl-jdk8

  private int grownCapacity() {
    return nearestGreaterCapacity(configWrapper.grow(capacity()), size, doubleSizedArrays());
  }
}
net.openhft.koloboke.collect.impl.hashUpdatableQHashdoubleSizedArrays

Javadoc

LongLong, LongDouble, DoubleDouble and DoubleLong maps might use array of doubled size as table to layout keys and values in parallel. They should override this method to return true.

IntInt and smaller maps would better use array of larger primitives ( long[] in this particular case), because it 1) guarantees that each key and value pair lay on the same cache line and 2) allows higher max capacity.

It is UpdatableQHash's concern in order to treat edge cases of capacities near to Java array size limit correctly.

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
  • grownCapacity
  • init
  • internalInit
  • isMaxCapacity
  • maxSize
  • rehash
    Moves elements to the new arrays of newCapacity length.This method should be implemented as follows:
  • targetCapacity
  • tryRehashForExpansion
  • targetCapacity,
  • tryRehashForExpansion

Popular in Java

  • Reading from database using SQL prepared statement
  • compareTo (BigDecimal)
  • getSupportFragmentManager (FragmentActivity)
  • getExternalFilesDir (Context)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top plugins for WebStorm
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