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

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

Best Java code snippets using org.h2.mvstore.DataUtils.getCheckValue (Showing top 12 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

      chunkId, mapId, m);
int checkTest = DataUtils.getCheckValue(chunkId)
    ^ DataUtils.getCheckValue(offset)
    ^ DataUtils.getCheckValue(pageLength);
if (check != (short) checkTest) {
  throw DataUtils.newIllegalStateException(
origin: com.h2database/h2

      chunkId, map.getId(), mapId);
int checkTest = DataUtils.getCheckValue(chunkId)
    ^ DataUtils.getCheckValue(offset)
    ^ DataUtils.getCheckValue(pageLength);
if (check != (short) checkTest) {
  throw DataUtils.newIllegalStateException(
origin: com.h2database/h2

int check = DataUtils.getCheckValue(chunkId)
    ^ DataUtils.getCheckValue(start)
    ^ DataUtils.getCheckValue(pageLength);
buff.putInt(start, pageLength).
  putShort(start + 4, (short) check);
origin: com.eventsourcing/h2

      chunkId, mapId, m);
int checkTest = DataUtils.getCheckValue(chunkId)
    ^ DataUtils.getCheckValue(offset)
    ^ DataUtils.getCheckValue(pageLength);
if (check != (short) checkTest) {
  throw DataUtils.newIllegalStateException(
origin: org.wowtools/h2

      chunkId, mapId, m);
int checkTest = DataUtils.getCheckValue(chunkId)
    ^ DataUtils.getCheckValue(offset)
    ^ DataUtils.getCheckValue(pageLength);
if (check != (short) checkTest) {
  throw DataUtils.newIllegalStateException(
origin: com.h2database/h2-mvstore

      chunkId, mapId, m);
int checkTest = DataUtils.getCheckValue(chunkId)
    ^ DataUtils.getCheckValue(offset)
    ^ DataUtils.getCheckValue(pageLength);
if (check != (short) checkTest) {
  throw DataUtils.newIllegalStateException(
origin: com.h2database/h2-mvstore

      chunkId, map.getId(), mapId);
int checkTest = DataUtils.getCheckValue(chunkId)
    ^ DataUtils.getCheckValue(offset)
    ^ DataUtils.getCheckValue(pageLength);
if (check != (short) checkTest) {
  throw DataUtils.newIllegalStateException(
origin: org.wowtools/h2

      chunkId, map.getId(), mapId);
int checkTest = DataUtils.getCheckValue(chunkId)
    ^ DataUtils.getCheckValue(offset)
    ^ DataUtils.getCheckValue(pageLength);
if (check != (short) checkTest) {
  throw DataUtils.newIllegalStateException(
origin: com.eventsourcing/h2

      chunkId, map.getId(), mapId);
int checkTest = DataUtils.getCheckValue(chunkId)
    ^ DataUtils.getCheckValue(offset)
    ^ DataUtils.getCheckValue(pageLength);
if (check != (short) checkTest) {
  throw DataUtils.newIllegalStateException(
origin: com.h2database/h2-mvstore

int check = DataUtils.getCheckValue(chunkId)
    ^ DataUtils.getCheckValue(start)
    ^ DataUtils.getCheckValue(pageLength);
buff.putInt(start, pageLength).
  putShort(start + 4, (short) check);
origin: com.eventsourcing/h2

int check = DataUtils.getCheckValue(chunkId)
    ^ DataUtils.getCheckValue(start)
    ^ DataUtils.getCheckValue(pageLength);
buff.putInt(start, pageLength).
  putShort(start + 4, (short) check);
origin: org.wowtools/h2

int check = DataUtils.getCheckValue(chunkId)
    ^ DataUtils.getCheckValue(start)
    ^ DataUtils.getCheckValue(pageLength);
buff.putInt(start, pageLength).
  putShort(start + 4, (short) check);
org.h2.mvstoreDataUtilsgetCheckValue

Javadoc

Calculate a check value for the given integer. A check value is mean to verify the data is consistent with a high probability, but not meant to protect against media failure or deliberate changes.

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.
  • getErrorCode
    Get the error code from an exception message.
  • getFletcher32
    Calculate the Fletcher32 checksum.
  • getPageChunkId
    Get the chunk id from the position.
  • getPageMaxLength
    Get the maximum length for the given code. For the code 31, PAGE_LARGE is returned.
  • getPageOffset
    Get the offset from the position.
  • getPageMaxLength,
  • getPageOffset,
  • getPagePos,
  • getPageType,
  • getVarIntLen,
  • initCause,
  • newIllegalArgumentException,
  • newIllegalStateException,
  • newUnsupportedOperationException

Popular in Java

  • Start an intent from android
  • setRequestProperty (URLConnection)
  • startActivity (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • BitSet (java.util)
    This class implements a vector of bits that grows as needed. Each component of the bit set has a boo
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • JPanel (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