Class LevelDbLogReader

  • All Implemented Interfaces:

    public final class LevelDbLogReader
    extends java.lang.Object
    implements java.util.Iterator<byte[]>
    Iterator that incrementally parses binary data in LevelDb format into records.

    The input source is automatically closed when all data have been read.

    There are several other implementations of this, none of which appeared suitable for our use case: The original C++ implementation. - Exactly what we need but deprecated. The referenced replacement: The App Engine GCS Client - Does not appear to have any support for working with LevelDB. *


    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<byte[]>
      • next

        public byte[] next()
        Specified by:
        next in interface java.util.Iterator<byte[]>
      • from

        public static LevelDbLogReader from​(java.nio.file.Path path)
        Returns a LevelDbLogReader over a file specified by Path.
      • from

        public static LevelDbLogReader from​(java.lang.String filename)
        Returns a LevelDbLogReader over a file specified by filename.