Compacts events in inFile into outFile, appending.
Compacts events in inFile into outFile, appending.
Has the side effects of writing data into outFile.
NOTE: this is an unoptimized, high level compaction algorithm and can take a lot of memory. Make sure your JVM is configured properly when you use this.
the SiriusLog to compact events from
the SiriusLog to write the compacted log into
deletes with a timestamp before this point are completely removed from the log. defaults to 0, meaning any deletes from 12AM Jan 1, 1970 or before are completely removed from the log
Copies data from inFile to outFile.
Copies data from inFile to outFile. outFile is appended to.
Has the side effect of writing data into outFile.
the SiriusLog to copy data from, this file is not modified
the SiriusLog to copy data into
Also not perfect, and slower than single pass, but this compaction implementation will run with a more reasonable memory footprint.
Also not perfect, and slower than single pass, but this compaction implementation will run with a more reasonable memory footprint.
input log
output log, needs to be empty (or you're likely to get an "out of order write" exception)
deletes with a timestamp before this point are completely removed from the log. defaults to 0, meaning any deletes from 12AM Jan 1, 1970 or before are completely removed from the log