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.SnapshotOutputStream
data
- 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.SnapshotOutputStream
data
- Plain data.IgniteCheckedException
- If IO exception has happened.public void close() throws IgniteCheckedException
close
in interface AutoCloseable
close
in interface org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotOutputStream
IgniteCheckedException
- in case of IO failure.public long position()
position
in interface org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotOutputStream
public byte[] digest()
digest
in interface org.gridgain.grid.internal.processors.cache.database.snapshot.DigestSnapshotOutputStream
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024