@InterfaceAudience.Public public abstract class OperationWithAttributes extends Operation implements Attributes
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
ID_ATRIBUTE |
| 限定符 | 构造器和说明 |
|---|---|
protected |
OperationWithAttributes()
empty construction.
|
protected |
OperationWithAttributes(OperationWithAttributes clone) |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
int |
getPriority() |
OperationWithAttributes |
setAttribute(String name,
byte[] value)
Sets an attribute.
|
OperationWithAttributes |
setId(String id)
This method allows you to set an identifier on an operation.
|
OperationWithAttributes |
setPriority(int priority) |
protected OperationWithAttributes()
protected OperationWithAttributes(OperationWithAttributes clone)
public OperationWithAttributes setAttribute(String name, byte[] value)
AttributessetAttribute 在接口中 Attributesname - attribute namevalue - attribute valuepublic byte[] getAttribute(String name)
AttributesgetAttribute 在接口中 Attributesname - attribute namepublic Map<String,byte[]> getAttributesMap()
AttributesgetAttributesMap 在接口中 Attributesprotected long getAttributeSize()
public OperationWithAttributes setId(String id)
id - id to set for the scanpublic String getId()
public OperationWithAttributes setPriority(int priority)
public int getPriority()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.