Class DataNodeV1

  • All Implemented Interfaces:
    org.apache.jute.Record

    public class DataNodeV1
    extends java.lang.Object
    implements org.apache.jute.Record
    This class contains the data for a node in the data tree.

    A data node contains a reference to its parent, a byte array as its data, an array of ACLs, a stat object, and a set of its children's paths.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void copyStat​(Stat to)  
      void deserialize​(org.apache.jute.InputArchive archive, java.lang.String tag)  
      java.util.HashSet<java.lang.String> getChildren()
      convenience methods to get the children
      void serialize​(org.apache.jute.OutputArchive archive, java.lang.String tag)  
      void setChildren​(java.util.HashSet<java.lang.String> children)
      convenience method for creating DataNode fully
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • setChildren

        public void setChildren​(java.util.HashSet<java.lang.String> children)
        convenience method for creating DataNode fully
        Parameters:
        children -
      • getChildren

        public java.util.HashSet<java.lang.String> getChildren()
        convenience methods to get the children
        Returns:
        the children of this datanode
      • copyStat

        public void copyStat​(Stat to)
      • deserialize

        public void deserialize​(org.apache.jute.InputArchive archive,
                                java.lang.String tag)
                         throws java.io.IOException
        Specified by:
        deserialize in interface org.apache.jute.Record
        Throws:
        java.io.IOException
      • serialize

        public void serialize​(org.apache.jute.OutputArchive archive,
                              java.lang.String tag)
                       throws java.io.IOException
        Specified by:
        serialize in interface org.apache.jute.Record
        Throws:
        java.io.IOException