Class LocalObjectToPack

    • Field Detail

      • pack

        PackFile pack
        Pack to reuse compressed data from, otherwise null.
      • offset

        long offset
        Offset of the object's header in pack.
      • length

        long length
        Length of the data section of the object.
    • Constructor Detail

      • LocalObjectToPack

        LocalObjectToPack​(AnyObjectId src,
                          int type)
    • Method Detail

      • clearReuseAsIs

        protected void clearReuseAsIs()
        Forget the reuse information previously stored.

        Implementations may subclass this method, but they must also invoke the super version with super.clearReuseAsIs() to ensure the flag is properly cleared for the writer.

        Overrides:
        clearReuseAsIs in class ObjectToPack
      • select

        public void select​(StoredObjectRepresentation ref)
        Remember a specific representation for reuse at a later time.

        Implementers should remember the representation chosen, so it can be reused at a later time. PackWriter may invoke this method multiple times for the same object, each time saving the current best representation found.

        Overrides:
        select in class ObjectToPack
        Parameters:
        ref - the object representation.