public class TaggingData extends Object
Constructor and Description |
---|
TaggingData()
Default constructor for jackson.
|
TaggingData(alluxio.s3.TaggingData.TagSet tagSet)
Create a new
TaggingData . |
Modifier and Type | Method and Description |
---|---|
TaggingData |
addTags(Map<String,String> tagMap)
Merges the contents of the provided tag map with
the existing tags.
|
TaggingData |
clear()
Removes all tags contained in this object.
|
static TaggingData |
deserialize(byte[] bytes)
Deserialize the XML (bytes).
|
Map<String,String> |
getTagMap()
Returns the Map object containing the contents of
the TagSet.
|
static com.google.protobuf.ByteString |
serialize(TaggingData tagData)
Serializes the object as an XML (bytes).
|
String |
toString() |
public TaggingData()
public TaggingData(@Nullable alluxio.s3.TaggingData.TagSet tagSet)
TaggingData
.tagSet
- the user metadata tagspublic static TaggingData deserialize(byte[] bytes) throws IOException
bytes
- byte array of the Java-serialized objectTaggingData
objectIOException
public static com.google.protobuf.ByteString serialize(TaggingData tagData) throws com.fasterxml.jackson.core.JsonProcessingException
tagData
- the TaggingData
object to serializeByteString
serialization of this objectcom.fasterxml.jackson.core.JsonProcessingException
public Map<String,String> getTagMap()
public TaggingData addTags(Map<String,String> tagMap) throws IllegalArgumentException
tagMap
- a collection of Tags represented by key-value pairsIllegalArgumentException
public TaggingData clear()
Copyright © 2023. All Rights Reserved.