@Evolving public interface TagOperations
| Modifier and Type | Method and Description |
|---|---|
Tag |
alterTag(java.lang.String name,
TagChange... changes)
Alter a tag under a metalake.
|
Tag |
createTag(java.lang.String name,
java.lang.String comment,
java.util.Map<java.lang.String,java.lang.String> properties)
Create a tag under a metalake.
|
boolean |
deleteTag(java.lang.String name)
Delete a tag under a metalake.
|
Tag |
getTag(java.lang.String name)
Get a tag by its name under a metalake.
|
java.lang.String[] |
listTags()
List all the tag names under a metalake.
|
Tag[] |
listTagsInfo()
List all the tags with detailed information under a metalake.
|
java.lang.String[] listTags()
throws NoSuchMetalakeException
NoSuchMetalakeException - If the metalake does not exist.Tag[] listTagsInfo() throws NoSuchMetalakeException
NoSuchMetalakeException - If the metalake does not exist.Tag getTag(java.lang.String name) throws NoSuchTagException
name - The name of the tag.NoSuchTagException - If the tag does not exist.Tag createTag(java.lang.String name, java.lang.String comment, java.util.Map<java.lang.String,java.lang.String> properties) throws TagAlreadyExistsException
name - The name of the tag.comment - The comment of the tag.properties - The properties of the tag.TagAlreadyExistsException - If the tag already exists.Tag alterTag(java.lang.String name, TagChange... changes) throws NoSuchTagException, java.lang.IllegalArgumentException
name - The name of the tag.changes - The changes to apply to the tag.NoSuchTagException - If the tag does not exist.java.lang.IllegalArgumentException - If the changes cannot be applied to the tag.boolean deleteTag(java.lang.String name)
name - The name of the tag.