Codota Logo
DataUtils.getPageMaxLength
Code IndexAdd Codota to your IDE (free)

How to use
getPageMaxLength
method
in
org.h2.mvstore.DataUtils

Best Java code snippets using org.h2.mvstore.DataUtils.getPageMaxLength (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: com.h2database/h2

DataUtils.getPageMaxLength(pos), 1);
origin: com.h2database/h2

node ? entries + 1 : entries,
pageSize,
DataUtils.getPageMaxLength(DataUtils.getPagePos(0, 0, pageSize, 0))
);
origin: com.h2database/h2

  long filePos, long maxPos) {
ByteBuffer buff;
int maxLength = DataUtils.getPageMaxLength(pos);
if (maxLength == DataUtils.PAGE_LARGE) {
  buff = fileStore.readFully(filePos, 128);
origin: com.h2database/h2

  long filePos, long maxPos) {
ByteBuffer buff;
int maxLength = DataUtils.getPageMaxLength(pos);
if (maxLength == DataUtils.PAGE_LARGE) {
  buff = fileStore.readFully(filePos, 128);
origin: com.h2database/h2

/**
 * Remove this page and all child pages.
 */
void removeAllRecursive() {
  if (children != null) {
    for (int i = 0, size = map.getChildPageCount(this); i < size; i++) {
      PageReference ref = children[i];
      if (ref.page != null) {
        ref.page.removeAllRecursive();
      } else {
        long c = children[i].pos;
        int type = DataUtils.getPageType(c);
        if (type == DataUtils.PAGE_TYPE_LEAF) {
          int mem = DataUtils.getPageMaxLength(c);
          map.removePage(c, mem);
        } else {
          map.readPage(c).removeAllRecursive();
        }
      }
    }
  }
  removePage();
}
origin: com.h2database/h2

long max = DataUtils.getPageMaxLength(pos);
chunk.maxLen += max;
chunk.maxLenLive += max;
origin: com.eventsourcing/h2

DataUtils.getPageMaxLength(pos), 1);
origin: com.h2database/h2-mvstore

DataUtils.getPageMaxLength(pos), 1);
origin: org.wowtools/h2

DataUtils.getPageMaxLength(pos), 1);
origin: com.h2database/h2-mvstore

  long filePos, long maxPos) {
ByteBuffer buff;
int maxLength = DataUtils.getPageMaxLength(pos);
if (maxLength == DataUtils.PAGE_LARGE) {
  buff = fileStore.readFully(filePos, 128);
origin: org.wowtools/h2

  long filePos, long maxPos) {
ByteBuffer buff;
int maxLength = DataUtils.getPageMaxLength(pos);
if (maxLength == DataUtils.PAGE_LARGE) {
  buff = fileStore.readFully(filePos, 128);
origin: com.eventsourcing/h2

  long filePos, long maxPos) {
ByteBuffer buff;
int maxLength = DataUtils.getPageMaxLength(pos);
if (maxLength == DataUtils.PAGE_LARGE) {
  buff = fileStore.readFully(filePos, 128);
origin: com.eventsourcing/h2

  long filePos, long maxPos) {
ByteBuffer buff;
int maxLength = DataUtils.getPageMaxLength(pos);
if (maxLength == DataUtils.PAGE_LARGE) {
  buff = fileStore.readFully(filePos, 128);
origin: org.wowtools/h2

  long filePos, long maxPos) {
ByteBuffer buff;
int maxLength = DataUtils.getPageMaxLength(pos);
if (maxLength == DataUtils.PAGE_LARGE) {
  buff = fileStore.readFully(filePos, 128);
origin: com.h2database/h2-mvstore

  long filePos, long maxPos) {
ByteBuffer buff;
int maxLength = DataUtils.getPageMaxLength(pos);
if (maxLength == DataUtils.PAGE_LARGE) {
  buff = fileStore.readFully(filePos, 128);
origin: com.h2database/h2-mvstore

/**
 * Remove this page and all child pages.
 */
void removeAllRecursive() {
  if (children != null) {
    for (int i = 0, size = map.getChildPageCount(this); i < size; i++) {
      PageReference ref = children[i];
      if (ref.page != null) {
        ref.page.removeAllRecursive();
      } else {
        long c = children[i].pos;
        int type = DataUtils.getPageType(c);
        if (type == DataUtils.PAGE_TYPE_LEAF) {
          int mem = DataUtils.getPageMaxLength(c);
          map.removePage(c, mem);
        } else {
          map.readPage(c).removeAllRecursive();
        }
      }
    }
  }
  removePage();
}
origin: org.wowtools/h2

/**
 * Remove this page and all child pages.
 */
void removeAllRecursive() {
  if (children != null) {
    for (int i = 0, size = map.getChildPageCount(this); i < size; i++) {
      PageReference ref = children[i];
      if (ref.page != null) {
        ref.page.removeAllRecursive();
      } else {
        long c = children[i].pos;
        int type = DataUtils.getPageType(c);
        if (type == DataUtils.PAGE_TYPE_LEAF) {
          int mem = DataUtils.getPageMaxLength(c);
          map.removePage(c, mem);
        } else {
          map.readPage(c).removeAllRecursive();
        }
      }
    }
  }
  removePage();
}
origin: com.eventsourcing/h2

/**
 * Remove this page and all child pages.
 */
void removeAllRecursive() {
  if (children != null) {
    for (int i = 0, size = map.getChildPageCount(this); i < size; i++) {
      PageReference ref = children[i];
      if (ref.page != null) {
        ref.page.removeAllRecursive();
      } else {
        long c = children[i].pos;
        int type = DataUtils.getPageType(c);
        if (type == DataUtils.PAGE_TYPE_LEAF) {
          int mem = DataUtils.getPageMaxLength(c);
          map.removePage(c, mem);
        } else {
          map.readPage(c).removeAllRecursive();
        }
      }
    }
  }
  removePage();
}
origin: com.h2database/h2-mvstore

long max = DataUtils.getPageMaxLength(pos);
chunk.maxLen += max;
chunk.maxLenLive += max;
origin: com.eventsourcing/h2

long max = DataUtils.getPageMaxLength(pos);
chunk.maxLen += max;
chunk.maxLenLive += max;
org.h2.mvstoreDataUtilsgetPageMaxLength

Javadoc

Get the maximum length for the given code. For the code 31, PAGE_LARGE is returned.

Popular methods of DataUtils

  • readVarInt
    Read a variable size int.
  • appendMap
    Append a map to the string builder, sorted by key.
  • checkArgument
    Throw an IllegalArgumentException if the argument is invalid.
  • copyExcept
    Copy the elements of an array, and remove one element.
  • copyWithGap
    Copy the elements of an array, with a gap.
  • encodeLength
    Convert the length to a length code 0..31. 31 means more than 1 MB.
  • formatMessage
    Format an error message.
  • getCheckValue
    Calculate a check value for the given integer. A check value is mean to verify the data is consisten
  • getErrorCode
    Get the error code from an exception message.
  • getFletcher32
    Calculate the Fletcher32 checksum.
  • getPageChunkId
    Get the chunk id from the position.
  • getPageOffset
    Get the offset from the position.
  • getPageChunkId,
  • getPageOffset,
  • getPagePos,
  • getPageType,
  • getVarIntLen,
  • initCause,
  • newIllegalArgumentException,
  • newIllegalStateException,
  • newUnsupportedOperationException

Popular in Java

  • Finding current android device location
  • getContentResolver (Context)
  • onRequestPermissionsResult (Fragment)
  • startActivity (Activity)
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • SortedSet (java.util)
    A Set that further provides a total ordering on its elements. The elements are ordered using their C
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
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