org.apache.hadoop.hbase.client
Interface Attributes

All Known Implementing Classes:
Append, Delete, Get, Increment, Mutation, OperationWithAttributes, Put, Query, Scan

@InterfaceAudience.Public
@InterfaceStability.Stable
public interface Attributes


Method Summary
 byte[] getAttribute(String name)
          Gets an attribute
 Map<String,byte[]> getAttributesMap()
          Gets all attributes
 void setAttribute(String name, byte[] value)
          Sets an attribute.
 

Method Detail

setAttribute

void setAttribute(String name,
                  byte[] value)
Sets an attribute. In case value = null attribute is removed from the attributes map. Attribute names starting with _ indicate system attributes.

Parameters:
name - attribute name
value - attribute value

getAttribute

byte[] getAttribute(String name)
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


Copyright © 2007-2015 The Apache Software Foundation. All Rights Reserved.