Class INodeReference.WithCount

All Implemented Interfaces:
Comparable<byte[]>, INodeAttributes, Diff.Element<byte[]>
Enclosing class:
INodeReference

public static class INodeReference.WithCount extends INodeReference
An anonymous reference with reference count.
  • Field Details

    • WITHNAME_COMPARATOR

      public static final Comparator<INodeReference.WithName> WITHNAME_COMPARATOR
      Compare snapshot with IDs, where null indicates the current status thus is greater than any non-null snapshot.
  • Constructor Details

  • Method Details

    • getCountDetails

      public String getCountDetails()
    • toDetailString

      public String toDetailString()
      Overrides:
      toDetailString in class INodeReference
    • getReferenceCount

      public int getReferenceCount()
    • addReference

      public void addReference(INodeReference ref)
      Increment and then return the reference count.
    • removeReference

      public void removeReference(INodeReference ref)
      Decrement and then return the reference count.
    • getLastWithName

      public INodeReference.WithName getLastWithName()
      Return the last WithName reference if there is any, null otherwise.
    • getParentRef

      public INodeReference getParentRef(int snapshotId)
      Returns:
      the WithName/DstReference node contained in the given snapshot.