Class WriteReftable

    • Field Detail

      • refBlockSize

        private int refBlockSize
      • logBlockSize

        private int logBlockSize
      • restartInterval

        private int restartInterval
      • indexLevels

        private int indexLevels
      • reflogIn

        private java.lang.String reflogIn
      • noIndexObjects

        private boolean noIndexObjects
      • in

        private java.lang.String in
      • out

        private java.lang.String out
    • Constructor Detail

      • WriteReftable

        WriteReftable()
    • Method Detail

      • run

        protected void run()
                    throws java.lang.Exception
        Perform the actions of this command.

        This method should only be invoked by TextBuiltin.execute(String[]).

        Specified by:
        run in class TextBuiltin
        Throws:
        java.lang.Exception - an error occurred while processing the command. The main framework will catch the exception and print a message on standard error.
      • printf

        private void printf​(java.lang.String fmt,
                            java.lang.Object... args)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • readRefs

        static java.util.List<Ref> readRefs​(java.lang.String inputFile)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • readLog

        private static java.util.List<WriteReftable.LogEntry> readLog​(java.lang.String logPath)
                                                               throws java.io.FileNotFoundException,
                                                                      java.io.IOException
        Throws:
        java.io.FileNotFoundException
        java.io.IOException
      • parseId

        private static ObjectId parseId​(java.lang.String s)