Tabnine Logo
GridLongList.clear
Code IndexAdd Tabnine to your IDE (free)

How to use
clear
method
in
org.apache.ignite.internal.util.GridLongList

Best Java code snippets using org.apache.ignite.internal.util.GridLongList.clear (Showing top 4 results out of 315)

origin: apache/ignite

ptrs.clear();
origin: apache/ignite

/** {@inheritDoc} */
@Override public boolean next() {
  if (prevKey == null) { // First call.
    if (!in.next())
      return false;
    prevKey = in.key();
    assert prevKey != null;
    in.keyReader.resetReusedObject(null); // We need 2 instances of key object for comparison.
    vals.add(value(in.metaPtr));
  }
  else {
    if (in.metaPtr == 0) // We reached the end of the input.
      return false;
    vals.clear();
    vals.add(value(in.metaPtr));
    in.keyReader.resetReusedObject(prevKey); // Switch key instances.
    prevKey = nextKey;
  }
  while (in.next()) { // Fill with head value pointers with equal keys.
    if (grpCmp.compare(prevKey, nextKey = in.key()) == 0)
      vals.add(value(in.metaPtr));
    else
      break;
  }
  assert !vals.isEmpty();
  return true;
}
origin: apache/ignite

assert key != null;
stack.clear();
origin: org.apache.ignite/ignite-core

ptrs.clear();
org.apache.ignite.internal.utilGridLongListclear

Javadoc

Clears the list.

Popular methods of GridLongList

  • <init>
  • add
    Add element to this array.
  • get
  • size
  • contains
  • isEmpty
  • array
  • removeIndex
    Removes element by given index.
  • sort
    Sorts this list. Use copy().sort() if you need a defensive copy.
  • addAll
  • asList
  • copyWithout
    Returns (possibly reordered) copy of this list, excluding all elements of given list.
  • asList,
  • copyWithout,
  • directType,
  • fieldsCount,
  • pop,
  • remove,
  • removeValue,
  • truncate

Popular in Java

  • Creating JSON documents from java classes using gson
  • startActivity (Activity)
  • setContentView (Activity)
  • onCreateOptionsMenu (Activity)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Best plugins for Eclipse
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