|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sleepycat.je.rep.util.ldiff.Window
public class Window
A rolling window of key/data pairs used by the ldiff algorithm.
| Constructor Summary | |
|---|---|
Window(Cursor cursor,
int windowSize)
Create a window of the given size, starting at the next record pointed at by the Cursor. |
|
| Method Summary | |
|---|---|
byte[] |
getBeginData()
|
byte[] |
getBeginKey()
|
long |
getChecksum()
The checksum for the window. |
long |
getDiffSize()
|
byte[] |
getMd5Hash()
Compute the MD5 hash for the window. |
void |
nextWindow()
Advance the window to the next block of records and update the rolling checksum. |
void |
rollWindow()
Roll a window forward by one key. |
int |
size()
The number of records in the window. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Window(Cursor cursor,
int windowSize)
throws Exception
cursor - an open cursor on the database being diff'dwindowSize - the number of records to include in the window
Exception| Method Detail |
|---|
public void rollWindow()
throws Exception
Exceptionpublic void nextWindow()
public long getChecksum()
public byte[] getBeginKey()
public byte[] getBeginData()
public long getDiffSize()
public byte[] getMd5Hash()
public int size()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||