public class Window extends Object
| Constructor and Description |
|---|
Window(Cursor cursor,
int windowSize)
Create a window of the given size, starting at the next record pointed
at by the Cursor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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 windowExceptionpublic 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()
Copyright © 2024. All rights reserved.