Class DfsObjectToPack

All Implemented Interfaces:
Serializable, Comparable<AnyObjectId>

class DfsObjectToPack extends ObjectToPack
  • Field Details

    • FLAG_FOUND

      private static final int FLAG_FOUND
      See Also:
    • 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

    • DfsObjectToPack

      DfsObjectToPack(AnyObjectId src, int type)
  • Method Details

    • isFound

      final boolean isFound()
    • setFound

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