Class MetadataObjects

java.lang.Object
org.apache.gravitino.MetadataObjects

public class MetadataObjects extends Object
The helper class for MetadataObject.
  • Field Details

    • METADATA_OBJECT_RESERVED_NAME

      public static final String METADATA_OBJECT_RESERVED_NAME
      The reserved name for the metadata object.
      See Also:
  • Method Details

    • of

      public static MetadataObject of(String parent, String name, MetadataObject.Type type)
      Create the metadata object with the given name, parent and type.
      Parameters:
      parent - The parent of the metadata object
      name - The name of the metadata object
      type - The type of the metadata object
      Returns:
      The created metadata object
    • of

      public static MetadataObject of(List<String> names, MetadataObject.Type type)
      Create the metadata object with the given names and type.
      Parameters:
      names - The names of the metadata object
      type - The type of the metadata object
      Returns:
      The created metadata object
    • parent

      @Nullable public static MetadataObject parent(MetadataObject object)
      Get the parent metadata object of the given metadata object.
      Parameters:
      object - The metadata object
      Returns:
      The parent metadata object if it exists, otherwise null
    • parse

      public static MetadataObject parse(String fullName, MetadataObject.Type type)
      Parse the metadata object with the given full name and type.
      Parameters:
      fullName - The full name of the metadata object
      type - The type of the metadata object
      Returns:
      The parsed metadata object