public class TaggingData
extends java.lang.Object
| Constructor and Description |
|---|
TaggingData()
Default constructor for jackson.
|
TaggingData(alluxio.proxy.s3.TaggingData.TagSet tagSet)
Create a new
TaggingData. |
| Modifier and Type | Method and Description |
|---|---|
TaggingData |
addTags(java.util.Map<java.lang.String,java.lang.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).
|
java.util.Map<java.lang.String,java.lang.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).
|
java.lang.String |
toString() |
public TaggingData()
public TaggingData(@Nullable
alluxio.proxy.s3.TaggingData.TagSet tagSet)
TaggingData.tagSet - the user metadata tagspublic static TaggingData deserialize(byte[] bytes) throws java.io.IOException
bytes - byte array of the Java-serialized objectTaggingData objectjava.io.IOExceptionpublic 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.JsonProcessingExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Map<java.lang.String,java.lang.String> getTagMap()
public TaggingData addTags(java.util.Map<java.lang.String,java.lang.String> tagMap) throws java.lang.IllegalArgumentException
tagMap - a collection of Tags represented by key-value pairsjava.lang.IllegalArgumentExceptionpublic TaggingData clear()
Copyright © 2024. All Rights Reserved.