public class DigestSnapshotOutputStreamWrapper extends Object implements org.gridgain.grid.internal.processors.cache.database.snapshot.DigestSnapshotOutputStream
DigestSnapshotOutputStream interface.| Constructor and Description |
|---|
DigestSnapshotOutputStreamWrapper(org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotOutputStream snapStream,
DigestOutputStream digestStream)
Constructor for the wrapper instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close method.
|
byte[] |
digest() |
void |
plainWrite(ByteBuffer data)
Writes plain data to stream.
|
long |
position()
Returns this stream's position.
|
void |
write(ByteBuffer data)
Writes the given page.
|
public DigestSnapshotOutputStreamWrapper(org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotOutputStream snapStream,
DigestOutputStream digestStream)
snapStream - Snapshot output stream to delegate calls to.digestStream - Output stream that's eventually used by snapStream to write data to file.public void write(ByteBuffer data) throws IgniteCheckedException
write in interface org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotOutputStreamdata - Page data or metadata.IgniteCheckedException - Exception in case of write.public void plainWrite(ByteBuffer data) throws IgniteCheckedException
plainWrite in interface org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotOutputStreamdata - Plain data.IgniteCheckedException - If IO exception has happened.public void close()
throws IgniteCheckedException
close in interface AutoCloseableclose in interface org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotOutputStreamIgniteCheckedException - in case of IO failure.public long position()
position in interface org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotOutputStreampublic byte[] digest()
digest in interface org.gridgain.grid.internal.processors.cache.database.snapshot.DigestSnapshotOutputStream
GridGain In-Memory Computing Platform : ver. 8.9.26 Release Date : October 16 2025