com.sleepycat.je.rep.util.ldiff
Class LDiffUtil

java.lang.Object
  extended by com.sleepycat.je.rep.util.ldiff.LDiffUtil

public class LDiffUtil
extends Object


Field Summary
(package private) static long MASK_32BIT
           
(package private) static MessageDigest md
           
 
Constructor Summary
LDiffUtil()
           
 
Method Summary
static void close(Environment env, Database db)
           
static byte[] concatByteArray(byte[] a, byte[] b)
           
static int getXi(byte[] keyValue)
          Each byte (Xi in the tech report) is replaced by a 32 bit Adler checksum of the bytes representing the concatenation of the key/value pair.
static Database openDb(Environment env, String dbName)
           
static Environment openEnv(String envDir)
           
static Block readBlock(int blockId, Cursor cursor, int numKeys)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MASK_32BIT

static final long MASK_32BIT
See Also:
Constant Field Values

md

static MessageDigest md
Constructor Detail

LDiffUtil

public LDiffUtil()
Method Detail

concatByteArray

public static byte[] concatByteArray(byte[] a,
                                     byte[] b)

getXi

public static int getXi(byte[] keyValue)
Each byte (Xi in the tech report) is replaced by a 32 bit Adler checksum of the bytes representing the concatenation of the key/value pair.

Returns:
the checksum

readBlock

public static Block readBlock(int blockId,
                              Cursor cursor,
                              int numKeys)
                       throws DatabaseException
Throws:
DatabaseException

openEnv

public static Environment openEnv(String envDir)

openDb

public static Database openDb(Environment env,
                              String dbName)

close

public static void close(Environment env,
                         Database db)


Copyright (c) 2004-2010 Oracle. All rights reserved.