public interface TocWriter
extends java.io.Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
addBlockOffset(long offset,
long firstEventId)
Adds the given block offset as the next Block Offset in the Table of Contents
|
int |
getCurrentBlockIndex() |
java.io.File |
getFile() |
void |
sync()
Synchronizes the data with the underlying storage device
|
void addBlockOffset(long offset,
long firstEventId)
throws java.io.IOException
offset - the byte offset at which the block beginsfirstEventId - the ID of the first Provenance Event that will be in the blockjava.io.IOException - if unable to persist the block indexint getCurrentBlockIndex()
java.io.File getFile()
void sync() throws java.io.IOException
java.io.IOException - if unable to synchronize the data with the underlying storage device