Class RegistryPathStatus

java.lang.Object
org.apache.hadoop.registry.client.types.RegistryPathStatus

@Public @Evolving public final class RegistryPathStatus extends Object
Output of a RegistryOperations.stat() call
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final int
    Number of child nodes
    final String
    Short path in the registry to this entry
    final long
    Entry size in bytes, as returned by the storage infrastructure.
    final long
    Timestamp
  • Constructor Summary

    Constructors
    Constructor
    Description
    RegistryPathStatus(String path, long time, long size, int children)
    Construct an instance
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object other)
    Equality operator checks size, time and path of the entries.
    int
    The hash code is derived from the path.
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • path

      public final String path
      Short path in the registry to this entry
    • time

      public final long time
      Timestamp
    • size

      public final long size
      Entry size in bytes, as returned by the storage infrastructure. In zookeeper, even "empty" nodes have a non-zero size.
    • children

      public final int children
      Number of child nodes
  • Constructor Details

    • RegistryPathStatus

      public RegistryPathStatus(String path, long time, long size, int children)
      Construct an instance
      Parameters:
      path - full path
      time - time
      size - entry size
      children - number of children
  • Method Details

    • equals

      public boolean equals(Object other)
      Equality operator checks size, time and path of the entries. It does not check children.
      Overrides:
      equals in class Object
      Parameters:
      other - the other entry
      Returns:
      true if the entries are considered equal.
    • hashCode

      public int hashCode()
      The hash code is derived from the path.
      Overrides:
      hashCode in class Object
      Returns:
      hash code for storing the path in maps.
    • toString

      public String toString()
      Overrides:
      toString in class Object