Codota Logo
TLongObjectHashMap.tempDisableAutoCompaction
Code IndexAdd Codota to your IDE (free)

How to use
tempDisableAutoCompaction
method
in
gnu.trove.map.hash.TLongObjectHashMap

Best Java code snippets using gnu.trove.map.hash.TLongObjectHashMap.tempDisableAutoCompaction (Showing top 5 results out of 315)

  • Common ways to obtain TLongObjectHashMap
private void myMethod () {
TLongObjectHashMap t =
  • Codota Iconnew TLongObjectHashMap<>()
  • Smart code suggestions by Codota
}
origin: alibaba/mdrill

/** {@inheritDoc} */
@SuppressWarnings({"unchecked"})
public boolean retainEntries( TLongObjectProcedure<? super V> procedure ) {
  boolean modified = false;
  byte[] states = _states;
  long[] keys = _set;
  V[] values = _values;
  // Temporarily disable compaction. This is a fix for bug #1738760
  tempDisableAutoCompaction();
  try {
    for ( int i = keys.length; i-- > 0; ) {
      if ( states[i] == FULL && ! procedure.execute( keys[i], values[i] ) ) {
        removeAt( i );
        modified = true;
      }
    }
  }
  finally {
    reenableAutoCompaction( true );
  }
  return modified;
}
origin: net.sf.trove4j/core

/** {@inheritDoc} */
@SuppressWarnings({"unchecked"})
public boolean retainEntries( TLongObjectProcedure<? super V> procedure ) {
  boolean modified = false;
  byte[] states = _states;
  long[] keys = _set;
  V[] values = _values;
  // Temporarily disable compaction. This is a fix for bug #1738760
  tempDisableAutoCompaction();
  try {
    for ( int i = keys.length; i-- > 0; ) {
      if ( states[i] == FULL && ! procedure.execute( keys[i], values[i] ) ) {
        removeAt( i );
        modified = true;
      }
    }
  }
  finally {
    reenableAutoCompaction( true );
  }
  return modified;
}
origin: com.palantir.patches.sourceforge/trove3

/** {@inheritDoc} */
@Override
public boolean retainEntries( TLongObjectProcedure<? super V> procedure ) {
  boolean modified = false;
  byte[] states = _states;
  long[] keys = _set;
  V[] values = _values;
  // Temporarily disable compaction. This is a fix for bug #1738760
  tempDisableAutoCompaction();
  try {
    for ( int i = keys.length; i-- > 0; ) {
      if ( states[i] == FULL && ! procedure.execute( keys[i], values[i] ) ) {
        removeAt( i );
        modified = true;
      }
    }
  }
  finally {
    reenableAutoCompaction( true );
  }
  return modified;
}
origin: net.sf.trove4j/trove4j

/** {@inheritDoc} */
@SuppressWarnings({"unchecked"})
public boolean retainEntries( TLongObjectProcedure<? super V> procedure ) {
  boolean modified = false;
  byte[] states = _states;
  long[] keys = _set;
  V[] values = _values;
  // Temporarily disable compaction. This is a fix for bug #1738760
  tempDisableAutoCompaction();
  try {
    for ( int i = keys.length; i-- > 0; ) {
      if ( states[i] == FULL && ! procedure.execute( keys[i], values[i] ) ) {
        removeAt( i );
        modified = true;
      }
    }
  }
  finally {
    reenableAutoCompaction( true );
  }
  return modified;
}
origin: hernad/easyrec

/** {@inheritDoc} */
@SuppressWarnings({"unchecked"})
public boolean retainEntries( TLongObjectProcedure<V> procedure ) {
  boolean modified = false;
  byte[] states = _states;
  long[] keys = _set;
  V[] values = _values;
  // Temporarily disable compaction. This is a fix for bug #1738760
  tempDisableAutoCompaction();
  try {
    for ( int i = keys.length; i-- > 0; ) {
      if ( states[i] == FULL && ! procedure.execute( keys[i], values[i] ) ) {
        removeAt( i );
        modified = true;
      }
    }
  }
  finally {
    reenableAutoCompaction( true );
  }
  return modified;
}
gnu.trove.map.hashTLongObjectHashMaptempDisableAutoCompaction

Popular methods of TLongObjectHashMap

  • <init>
    Creates a new TLongObjectHashMap that contains the entries in the map passed to it.
  • put
  • get
  • size
  • contains
  • iterator
  • remove
  • containsKey
  • forEachEntry
  • putAll
  • valueCollection
  • clear
  • valueCollection,
  • clear,
  • doPut,
  • forEach,
  • index,
  • postInsertHook,
  • reenableAutoCompaction,
  • removeAt,
  • setUp

Popular in Java

  • Reading from database using SQL prepared statement
  • getContentResolver (Context)
  • startActivity (Activity)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Pattern (java.util.regex)
    A compiled representation of a regular expression. A regular expression, specified as a string, must
  • JTable (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