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.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
public void addBlockOffset(long offset, long firstEventId) throws java.io.IOException
TocWriter
addBlockOffset
in interface TocWriter
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 indexpublic int getCurrentBlockIndex()
getCurrentBlockIndex
in interface TocWriter
public java.io.File getFile()