public interface DataReader
DataReader defines basic structure of Log. DataReader provides access to all blocks or groups of successive blocks in the log.Block,
DataWriter,
DataReaderWriterProvider| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes
DataReader and all open resources associated with it (files, connections, etc.). |
@NotNull java.lang.Iterable<Block> |
getBlocks()
|
@NotNull java.lang.Iterable<Block> |
getBlocks(long fromAddress)
|
@NotNull java.lang.String |
getLocation()
Returns
Log location how it was passed as a parameter to DataReaderWriterProvider.newReaderWriter(String). |
@NotNull @NotNull java.lang.String getLocation()
Log location how it was passed as a parameter to DataReaderWriterProvider.newReaderWriter(String).DataReaderWriterProvider.newReaderWriter(String)@NotNull @NotNull java.lang.Iterable<Block> getBlocks()
Block,
Block.getAddress()@NotNull @NotNull java.lang.Iterable<Block> getBlocks(long fromAddress)
fromAddress - starting block addressBlock,
Block.getAddress()void close()
DataReader and all open resources associated with it (files, connections, etc.). After the
DataReader is closed, any block got using getBlocks() or
getBlocks(long) method would be no longer accessible.Block,
getBlocks(),
getBlocks(long)