Class LocalObjectToPack

All Implemented Interfaces:
Serializable, Comparable<AnyObjectId>

class LocalObjectToPack extends ObjectToPack
  • Field Details

    • pack

      Pack 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 Details

    • LocalObjectToPack

      LocalObjectToPack(AnyObjectId src, int type)
  • Method Details

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