@Beta public interface MetadataWriter
Modifier and Type | Method and Description |
---|---|
void |
addProperties(MetadataEntity metadataEntity,
Map<String,String> properties)
Adds the specified
Map to the metadata of the specified metadataEntity . |
void |
addTags(MetadataEntity metadataEntity,
Iterable<String> tags)
Adds all the specified tags to specified
MetadataEntity . |
void |
addTags(MetadataEntity metadataEntity,
String... tags)
Adds the specified tags to specified
MetadataEntity . |
void |
removeMetadata(MetadataEntity metadataEntity)
Removes all the user metadata (including properties and tags) for the specified
MetadataEntity . |
void |
removeProperties(MetadataEntity metadataEntity)
Removes all properties from the user metadata of the specified
MetadataEntity . |
void |
removeProperties(MetadataEntity metadataEntity,
String... keys)
Removes the specified keys from the user metadata properties of the specified
MetadataEntity . |
void |
removeTags(MetadataEntity metadataEntity)
Removes all user tags from the specified
MetadataEntity . |
void |
removeTags(MetadataEntity metadataEntity,
String... tags)
Removes the specified user tags from the specified
MetadataEntity . |
void addProperties(MetadataEntity metadataEntity, Map<String,String> properties)
Map
to the metadata of the specified metadataEntity
.
Existing keys will be updated with new values.void addTags(MetadataEntity metadataEntity, String... tags)
MetadataEntity
. If a given tag already exists for the metadata
entity it will be skipped.void addTags(MetadataEntity metadataEntity, Iterable<String> tags)
MetadataEntity
. If a given tag already exists for the metadata
entity it will be skipped.void removeMetadata(MetadataEntity metadataEntity)
MetadataEntity
.metadataEntity
- the MetadataEntity
to remove user metadata forvoid removeProperties(MetadataEntity metadataEntity)
MetadataEntity
.metadataEntity
- the MetadataEntity
to remove properties forvoid removeProperties(MetadataEntity metadataEntity, String... keys)
MetadataEntity
.metadataEntity
- the MetadataEntity
to remove the specified properties forkeys
- the metadata property keys to removevoid removeTags(MetadataEntity metadataEntity)
MetadataEntity
.metadataEntity
- the MetadataEntity
to remove tags forvoid removeTags(MetadataEntity metadataEntity, String... tags)
MetadataEntity
.metadataEntity
- the MetadataEntity
to remove the specified tags fortags
- the tags to removeCopyright © 2022 Cask Data, Inc. Licensed under the Apache License, Version 2.0.