public interface IArchiveBuffer
Our first naive implementation accumulates all the tuples in memory up to the final step for constructing a possibly compressed byte array.
New variants perform continuous buffering in a way much more efficient.
Modifier and Type | Method and Description |
---|---|
void |
close(List<String> successAddresses)
Close this archive buffer.
|
String |
getDigest()
Return the digest of written bytes
|
long |
getSize()
Return the size, compressed if compression enabled, of written bytes
|
long |
getUncompressedSize()
Return the size, uncompressed if compression enabled, of written bytes
|
IArchiveBuffer |
prepare(org.thales.punch.libraries.objectstorage.indexing.BatchMetadata metadata)
Before using the archive buffer call this.
|
void |
put(Map<String,Object> record)
Add a single item in the archive buffer.
|
void put(Map<String,Object> record)
record
- the input recordIArchiveBuffer prepare(org.thales.punch.libraries.objectstorage.indexing.BatchMetadata metadata)
metadata
- the provided context information.long getSize()
long getUncompressedSize()
void close(List<String> successAddresses)
successAddresses
- in case of success the returned list of where the writes were successful.String getDigest()
Copyright © 2023. All rights reserved.