Class OffsetShardReader
java.lang.Object
cz.drg.pregrouper.process.fileRead.OffsetShardReader
Reads polozky offset shards, which contain metadata about dokladu and their byte offsets in sorted polozky files.
Data in offset shards are written in batches of 18 bytes, where the first 8 bytes are long idDokladu, the next 8 bytes are long byte offset of the first line in a sorted polozky file, and last 2 bytes are short how many extra lines/polozek, besides the first one, the doklad have - used for readLine in RAF to get all related polozky.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
OffsetShardReader
public OffsetShardReader()
-
-
Method Details
-
readShardFile
- Throws:
IOException
-
readShardFile
- Throws:
IOException
-