| Constructor and Description |
|---|
NopTocWriter() |
| 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
|
void |
close() |
int |
getCurrentBlockIndex() |
java.io.File |
getFile() |
void |
sync()
Synchronizes the data with the underlying storage device
|
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic void addBlockOffset(long offset,
long firstEventId)
throws java.io.IOException
TocWriteraddBlockOffset in interface TocWriteroffset - 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 indexpublic int getCurrentBlockIndex()
getCurrentBlockIndex in interface TocWriterpublic java.io.File getFile()