Class KvFileReader

java.lang.Object
io.datarouter.bytes.kvfile.KvFileReader

public class KvFileReader extends Object
Named wrapper around an InputStream so we can trace where errors came from. Can offload block parsing to helper threads for faster reading.
  • Constructor Details

    • KvFileReader

      public KvFileReader(InputStream inputStream, String name, int parseBatchSize, io.datarouter.scanner.Threads parseThreads)
    • KvFileReader

      public KvFileReader(byte[] bytes, String name, int parseBatchSize, io.datarouter.scanner.Threads parseThreads)
    • KvFileReader

      public KvFileReader(io.datarouter.scanner.Scanner<byte[]> chunkScanner, String name, int parseBatchSize, io.datarouter.scanner.Threads parseThreads)
    • KvFileReader

      public KvFileReader(InputStream inputStream, io.datarouter.scanner.Threads parseThreads)
    • KvFileReader

      public KvFileReader(InputStream inputStream, String name)
    • KvFileReader

      public KvFileReader(InputStream inputStream)
  • Method Details

    • scanBlockByteArrays

      public io.datarouter.scanner.Scanner<byte[]> scanBlockByteArrays()
    • scanBlocks

      public io.datarouter.scanner.Scanner<KvFileBlock> scanBlocks()
    • scanBlockEntries

      public io.datarouter.scanner.Scanner<KvFileEntry> scanBlockEntries()