@InterfaceAudience.Public @InterfaceStability.Evolving public abstract class OperationWithAttributes extends Operation implements Attributes
| Modifier and Type | Field and Description | 
|---|---|
| static String | ID_ATRIBUTE | 
| Constructor and Description | 
|---|
| OperationWithAttributes() | 
| Modifier and Type | Method and Description | 
|---|---|
| byte[] | getAttribute(String name)Gets an attribute | 
| protected long | getAttributeSize() | 
| Map<String,byte[]> | getAttributesMap()Gets all attributes | 
| String | getId()This method allows you to retrieve the identifier for the operation if one
 was set. | 
| void | setAttribute(String name,
            byte[] value)Sets an attribute. | 
| void | setId(String id)This method allows you to set an identifier on an operation. | 
public static final String ID_ATRIBUTE
public void setAttribute(String name, byte[] value)
AttributessetAttribute in interface Attributesname - attribute namevalue - attribute valuepublic byte[] getAttribute(String name)
AttributesgetAttribute in interface Attributesname - attribute namepublic Map<String,byte[]> getAttributesMap()
AttributesgetAttributesMap in interface Attributesprotected long getAttributeSize()
public void setId(String id)
id - id to set for the scanpublic String getId()
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.