Package org.apache.hadoop.hbase.client
Interface Attributes
- All Known Implementing Classes:
Append
,Delete
,Get
,ImmutableScan
,Increment
,InternalScan
,Mutation
,OperationWithAttributes
,Put
,Query
,Scan
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getAttribute
(String name) Gets an attributeGets all attributessetAttribute
(String name, byte[] value) Sets an attribute.
-
Method Details
-
setAttribute
Sets an attribute. In case value = null attribute is removed from the attributes map. Attribute names starting with _ indicate system attributes.- Parameters:
name
- attribute namevalue
- attribute value
-
getAttribute
Gets an attribute- Parameters:
name
- attribute name- Returns:
- attribute value if attribute is set, null otherwise
-
getAttributesMap
Map<String,byte[]> getAttributesMap()Gets all attributes- Returns:
- unmodifiable map of all attributes
-