public final class TagHolder
extends java.lang.Object
implements java.io.Externalizable
Taggable should
encapsulate an instance of TagHolder. There should be one instance of this class per taggable
object.| Constructor and Description |
|---|
TagHolder()
Constructs an instance of
TagHolder. |
| Modifier and Type | Method and Description |
|---|---|
void |
addTags(java.lang.String... tags)
Adds the tags specified in the
tags to the current tag list. |
void |
clearTags()
Clears all tags from the holder.
|
com.scaleoutsoftware.soss.client.query.SparseBitmap |
getTags() |
boolean |
hasAllTags(java.lang.String... tags)
Determines whether this holder has all of the tags specified by
tags. |
boolean |
hasAnyTags(java.lang.String... tags)
Determines whether this holder has any of the tags specified by
tags. |
void |
readExternal(java.io.ObjectInput in) |
void |
removeTags(java.lang.String... tags)
Removes the tags specified in the
tags from the current tag list. |
void |
writeExternal(java.io.ObjectOutput out) |
public void addTags(java.lang.String... tags)
throws NamedCacheException
tags to the current tag list.tags - tags to addNamedCacheException - if unexpected exception occurspublic void removeTags(java.lang.String... tags)
throws NamedCacheException
tags from the current tag list.tags - tags to removeNamedCacheException - if unexpected exception occurspublic boolean hasAllTags(java.lang.String... tags)
throws NamedCacheException
tags.tags - tag listtrue if all tags are present, false otherwiseNamedCacheException - if unexpected exception occurspublic boolean hasAnyTags(java.lang.String... tags)
throws NamedCacheException
tags.tags - tag listtrue if any tags are present, false otherwiseNamedCacheException - if unexpected exception occurspublic void clearTags()
public com.scaleoutsoftware.soss.client.query.SparseBitmap getTags()
SparseBitmap containing tag information.public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOExceptionjava.lang.ClassNotFoundException