Class RandomAccessPolozky

java.lang.Object
cz.drg.pregrouper.process.fileRead.RandomAccessPolozky
All Implemented Interfaces:
ByteReader

public class RandomAccessPolozky extends Object implements ByteReader
Random access reader for sorted polozky file, using RAF and offset shards for efficient reading of polozky data.
  • Constructor Details

    • RandomAccessPolozky

      public RandomAccessPolozky()
  • Method Details

    • loadSortedPolozkyFile

      public void loadSortedPolozkyFile()
    • setFilemap

      public void setFilemap(String shardPrefix)
    • setFilemap

      public void setFilemap(Long idDokladu)
    • getpolozky

      public List<String> getpolozky(Long idDokladu)
    • read

      public int read(byte[] b) throws IOException
      Specified by:
      read in interface ByteReader
      Throws:
      IOException
    • close

      public void close()
      Specified by:
      close in interface ByteReader