com.sleepycat.je.rep.util.ldiff
Class LDiffUtil
java.lang.Object
com.sleepycat.je.rep.util.ldiff.LDiffUtil
public class LDiffUtil
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MASK_32BIT
static final long MASK_32BIT
- See Also:
- Constant Field Values
md
static MessageDigest md
LDiffUtil
public LDiffUtil()
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-2012 Oracle. All rights reserved.