Class ReftableWriter.Stats

java.lang.Object
org.eclipse.jgit.internal.storage.reftable.ReftableWriter.Stats
Enclosing class:
ReftableWriter

public static class ReftableWriter.Stats extends Object
Statistics about a written reftable.
  • Field Details

    • refBlockSize

      private final int refBlockSize
    • logBlockSize

      private final int logBlockSize
    • restartInterval

      private final int restartInterval
    • minUpdateIndex

      private final long minUpdateIndex
    • maxUpdateIndex

      private final long maxUpdateIndex
    • refCnt

      private final long refCnt
    • objCnt

      private final long objCnt
    • objIdLen

      private final int objIdLen
    • logCnt

      private final long logCnt
    • refBytes

      private final long refBytes
    • objBytes

      private final long objBytes
    • logBytes

      private final long logBytes
    • paddingUsed

      private final long paddingUsed
    • totalBytes

      private final long totalBytes
    • refIndexSize

      private final int refIndexSize
    • refIndexLevels

      private final int refIndexLevels
    • objIndexSize

      private final int objIndexSize
    • objIndexLevels

      private final int objIndexLevels
  • Constructor Details

  • Method Details

    • 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().