Tabnine Logo
IntArray.remove
Code IndexAdd Tabnine to your IDE (free)

How to use
remove
method
in
org.h2.util.IntArray

Best Java code snippets using org.h2.util.IntArray.remove (Showing top 7 results out of 315)

origin: com.h2database/h2

page.reset();
long nextPage = dataPages.get(0);
dataPages.remove(0);
store.seek(nextPage * pageSize);
store.readFully(page.getBytes(), 0, pageSize);
origin: com.h2database/com.springsource.org.h2

public void removeValue(int value) {
  for (int i = 0; i < size; i++) {
    if (data[i] == value) {
      remove(i);
      return;
    }
  }
  throw Message.getInternalError();
}
origin: com.h2database/com.springsource.org.h2

public int allocate(int blockCount) throws SQLException {
  if (freeList.size() > 0) {
    synchronized (database) {
      BitField used = file.getUsed();
      for (int i = 0; i < freeList.size(); i++) {
        int px = freeList.get(i);
        if (used.get(px)) {
          // sometime there may stay some entries in the freeList 
          // that are not free (free 2, free 1, allocate 1+2)
          // these entries are removed right here
          freeList.remove(i--);
        } else {
          if (isFreeAndMine(px, blockCount)) {
            int pos = px;
            freeList.remove(i--);
            file.setUsed(pos, blockCount);
            return pos;
          }
        }
      }
    }
  }
  int pos = file.allocate(this, blockCount);
  file.setUsed(pos, blockCount);
  return pos;
}
origin: com.h2database/com.springsource.org.h2

public BtreePage split(Session session, int splitPoint) throws SQLException {
  ObjectArray data = new ObjectArray();
  IntArray children = new IntArray();
  splitPoint++;
  int max = pageData.size();
  if (SysProperties.CHECK && index.getDatabase().getLogIndexChanges() && !getDeleted()) {
    // page must have been deleted already before calling
    // getSplitPoint()
    throw Message.getInternalError();
  }
  for (int i = splitPoint; i < max; i++) {
    data.add(getData(splitPoint));
    children.add(getChild(splitPoint));
    pageData.remove(splitPoint);
    pageChildren.remove(splitPoint);
  }
  children.add(getChild(splitPoint));
  pageData.remove(splitPoint - 1);
  pageChildren.remove(splitPoint);
  BtreeNode n2 = new BtreeNode(index, children, data);
  index.updatePage(session, this);
  index.addPage(session, n2);
  return n2;
}
origin: com.eventsourcing/h2

page.reset();
long nextPage = dataPages.get(0);
dataPages.remove(0);
store.seek(nextPage * pageSize);
store.readFully(page.getBytes(), 0, pageSize);
origin: org.wowtools/h2

page.reset();
long nextPage = dataPages.get(0);
dataPages.remove(0);
store.seek(nextPage * pageSize);
store.readFully(page.getBytes(), 0, pageSize);
origin: com.h2database/com.springsource.org.h2

pageChildren.remove(at);
if (pageChildren.size() == 0) {
org.h2.utilIntArrayremove

Javadoc

Remove the value at the given index.

Popular methods of IntArray

  • <init>
    Create an int array with the given values and size.
  • add
  • get
    Get the value at the given index.
  • size
    Get the size of the list.
  • toArray
    Convert this list to an array. The target array must be big enough.
  • hashCode
  • ensureCapacity
    Ensure the the underlying array is large enough for the given number of entries.
  • removeRange
    Remove a number of elements.
  • addValueSorted
  • checkCapacity
  • findNextValueIndex
  • removeValue
  • findNextValueIndex,
  • removeValue,
  • set

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • getContentResolver (Context)
  • scheduleAtFixedRate (Timer)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • BoxLayout (javax.swing)
  • Top PhpStorm 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