Package org.apache.gravitino
Class MetadataObjects
java.lang.Object
org.apache.gravitino.MetadataObjects
The helper class for
MetadataObject
.-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic MetadataObject
of
(String parent, String name, MetadataObject.Type type) Create the metadata object with the given name, parent and type.static MetadataObject
of
(List<String> names, MetadataObject.Type type) Create the metadata object with the given names and type.static MetadataObject
parent
(MetadataObject object) Get the parent metadata object of the given metadata object.static MetadataObject
parse
(String fullName, MetadataObject.Type type) Parse the metadata object with the given full name and type.
-
Field Details
-
METADATA_OBJECT_RESERVED_NAME
The reserved name for the metadata object.- See Also:
-
-
Method Details
-
of
Create the metadata object with the given name, parent and type.- Parameters:
parent
- The parent of the metadata objectname
- The name of the metadata objecttype
- The type of the metadata object- Returns:
- The created metadata object
-
of
Create the metadata object with the given names and type.- Parameters:
names
- The names of the metadata objecttype
- The type of the metadata object- Returns:
- The created metadata object
-
parent
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
Parse the metadata object with the given full name and type.- Parameters:
fullName
- The full name of the metadata objecttype
- The type of the metadata object- Returns:
- The parsed metadata object
-