Class RootTabletMetadata


  • public class RootTabletMetadata
    extends Object
    Serializes the root tablet metadata as Json using Accumulo's standard metadata table schema.
    • Constructor Detail

      • RootTabletMetadata

        public RootTabletMetadata()
    • Method Detail

      • update

        public void update​(Mutation m)
        Apply a metadata table mutation to update internal json.
      • convertToTabletMetadata

        public TabletMetadata convertToTabletMetadata()
        Convert json to tablet metadata. *
      • toJson

        public String toJson()
        Returns:
        a json representation of this object, use fromJson(String) to convert the json back to an object.
      • fromJson

        public static RootTabletMetadata fromJson​(byte[] bs)
        Converts created by calling toJson() back to an object. Assumes the json is UTF8 encoded.
      • getInitialJson

        public static byte[] getInitialJson​(String dirName,
                                            String file)
        Generate initial json for the root tablet metadata.