public class Window
extends java.lang.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 java.lang.Exception
cursor
- an open cursor on the database being diff'dwindowSize
- the number of records to include in the windowjava.lang.Exception
public void rollWindow() throws java.lang.Exception
java.lang.Exception
public void nextWindow()
public long getChecksum()
public byte[] getBeginKey()
public byte[] getBeginData()
public long getDiffSize()
public byte[] getMd5Hash()
public int size()
Copyright (c) 2004-2012 Oracle. All rights reserved.