Package org.apache.hadoop.hbase.client
Class OperationWithAttributes
java.lang.Object
org.apache.hadoop.hbase.client.Operation
org.apache.hadoop.hbase.client.OperationWithAttributes
- All Implemented Interfaces:
- Attributes
- 
Field SummaryFields
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedempty construction.protected
- 
Method SummaryModifier and TypeMethodDescriptionbyte[]getAttribute(String name) Gets an attributeprotected longGets all attributesgetId()This method allows you to retrieve the identifier for the operation if one was set.intsetAttribute(String name, byte[] value) Sets an attribute.This method allows you to set an identifier on an operation.setPriority(int priority) 
- 
Field Details- 
attributes
- 
ID_ATRIBUTE- See Also:
 
- 
priority
 
- 
- 
Constructor Details- 
OperationWithAttributesprotected OperationWithAttributes()empty construction. We need this empty construction to keep binary compatibility.
- 
OperationWithAttributes
 
- 
- 
Method Details- 
setAttributeDescription copied from interface:AttributesSets an attribute. In case value = null attribute is removed from the attributes map. Attribute names starting with _ indicate system attributes.- Specified by:
- setAttributein interface- Attributes
- Parameters:
- name- attribute name
- value- attribute value
 
- 
getAttributeDescription copied from interface:AttributesGets an attribute- Specified by:
- getAttributein interface- Attributes
- Parameters:
- name- attribute name
- Returns:
- attribute value if attribute is set, null otherwise
 
- 
getAttributesMapDescription copied from interface:AttributesGets all attributes- Specified by:
- getAttributesMapin interface- Attributes
- Returns:
- unmodifiable map of all attributes
 
- 
getAttributeSize
- 
setIdThis method allows you to set an identifier on an operation. The original motivation for this was to allow the identifier to be used in slow query logging, but this could obviously be useful in other places. One use of this could be to put a class.method identifier in here to see where the slow query is coming from. id to set for the scan
- 
getIdThis method allows you to retrieve the identifier for the operation if one was set.- Returns:
- the id or null if not set
 
- 
setPriority
- 
getPriority
 
-