Class ReftableWriter.Stats

  • Enclosing class:
    ReftableWriter

    public static class ReftableWriter.Stats
    extends Object
    Statistics about a written reftable.
    • Method Detail

      • refBlockSize

        public int refBlockSize()
        Returns:
        number of bytes in a ref block.
      • logBlockSize

        public int logBlockSize()
        Returns:
        number of bytes to compress into a log block.
      • restartInterval

        public int restartInterval()
        Returns:
        number of references between binary search markers.
      • minUpdateIndex

        public long minUpdateIndex()
        Returns:
        smallest update index contained in this reftable.
      • maxUpdateIndex

        public long maxUpdateIndex()
        Returns:
        largest update index contained in this reftable.
      • refCount

        public long refCount()
        Returns:
        total number of references in the reftable.
      • objCount

        public long objCount()
        Returns:
        number of unique objects in the reftable.
      • logCount

        public long logCount()
        Returns:
        total number of log records in the reftable.
      • refBytes

        public long refBytes()
        Returns:
        number of bytes for references, including ref index.
      • objBytes

        public long objBytes()
        Returns:
        number of bytes for objects, including object index.
      • logBytes

        public long logBytes()
        Returns:
        number of bytes for log, including log index.
      • totalBytes

        public long totalBytes()
        Returns:
        total number of bytes in the reftable.
      • paddingBytes

        public long paddingBytes()
        Returns:
        bytes of padding used to maintain block alignment.
      • refIndexSize

        public int refIndexSize()
        Returns:
        number of bytes in the ref index; 0 if no index was used.
      • refIndexLevels

        public int refIndexLevels()
        Returns:
        number of levels in the ref index.
      • objIndexSize

        public int objIndexSize()
        Returns:
        number of bytes in the object index; 0 if no index.
      • objIndexLevels

        public int objIndexLevels()
        Returns:
        number of levels in the object index.
      • objIdLength

        public int objIdLength()
        Returns:
        number of bytes required to uniquely identify all objects in the reftable. Unique abbreviations in hex would be 2 * objIdLength().