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

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

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

origin: com.h2database/h2

private void initNextData() {
  int nextData = trunk == null ? -1 : trunk.getPageData(trunkIndex++);
  if (nextData == -1) {
    int parent = trunkPageId;
    if (trunkNext != 0) {
      trunkPageId = trunkNext;
    }
    int len = PageStreamTrunk.getPagesAddressed(store.getPageSize());
    int[] pageIds = new int[len];
    for (int i = 0; i < len; i++) {
      pageIds[i] = reservedPages.get(i);
    }
    trunkNext = reservedPages.get(len);
    logKey++;
    trunk = PageStreamTrunk.create(store, parent, trunkPageId,
        trunkNext, logKey, pageIds);
    trunkIndex = 0;
    pageCount++;
    trunk.write();
    reservedPages.removeRange(0, len + 1);
    nextData = trunk.getPageData(trunkIndex++);
  }
  data = PageStreamData.create(store, nextData, trunk.getPos(), logKey);
  pageCount++;
  data.initWrite();
}
origin: com.eventsourcing/h2

private void initNextData() {
  int nextData = trunk == null ? -1 : trunk.getPageData(trunkIndex++);
  if (nextData == -1) {
    int parent = trunkPageId;
    if (trunkNext != 0) {
      trunkPageId = trunkNext;
    }
    int len = PageStreamTrunk.getPagesAddressed(store.getPageSize());
    int[] pageIds = new int[len];
    for (int i = 0; i < len; i++) {
      pageIds[i] = reservedPages.get(i);
    }
    trunkNext = reservedPages.get(len);
    logKey++;
    trunk = PageStreamTrunk.create(store, parent, trunkPageId,
        trunkNext, logKey, pageIds);
    trunkIndex = 0;
    pageCount++;
    trunk.write();
    reservedPages.removeRange(0, len + 1);
    nextData = trunk.getPageData(trunkIndex++);
  }
  data = PageStreamData.create(store, nextData, trunk.getPos(), logKey);
  pageCount++;
  data.initWrite();
}
origin: org.wowtools/h2

private void initNextData() {
  int nextData = trunk == null ? -1 : trunk.getPageData(trunkIndex++);
  if (nextData == -1) {
    int parent = trunkPageId;
    if (trunkNext != 0) {
      trunkPageId = trunkNext;
    }
    int len = PageStreamTrunk.getPagesAddressed(store.getPageSize());
    int[] pageIds = new int[len];
    for (int i = 0; i < len; i++) {
      pageIds[i] = reservedPages.get(i);
    }
    trunkNext = reservedPages.get(len);
    logKey++;
    trunk = PageStreamTrunk.create(store, parent, trunkPageId,
        trunkNext, logKey, pageIds);
    trunkIndex = 0;
    pageCount++;
    trunk.write();
    reservedPages.removeRange(0, len + 1);
    nextData = trunk.getPageData(trunkIndex++);
  }
  data = PageStreamData.create(store, nextData, trunk.getPos(), logKey);
  pageCount++;
  data.initWrite();
}
org.h2.utilIntArrayremoveRange

Javadoc

Remove a number of elements.

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
  • remove
    Remove the value at the given index.
  • ensureCapacity
    Ensure the the underlying array is large enough for the given number of entries.
  • addValueSorted
  • checkCapacity
  • findNextValueIndex
  • removeValue
  • findNextValueIndex,
  • removeValue,
  • set

Popular in Java

  • Running tasks concurrently on multiple threads
  • startActivity (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getExternalFilesDir (Context)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Notification (javax.management)
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Top 12 Jupyter Notebook extensions
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