public class PropertyConvertor extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PREFIX_PROP |
static byte[] |
PREFIX_PROP_B |
Constructor and Description |
---|
PropertyConvertor() |
Modifier and Type | Method and Description |
---|---|
static Property |
getProperty(byte[] value)
Returns a Property from a qualifier byte array.
|
static byte[] |
getQualifier(int propNumber)
Returns a byte array that represents a HBase column qualifier for the
provided property.
|
static byte[] |
getValue(Property prop)
Returns a byte array representation of the Property value.
|
public static final String PREFIX_PROP
public static final byte[] PREFIX_PROP_B
public static byte[] getQualifier(int propNumber)
propNumber
- the property for storage n HBasepublic static byte[] getValue(Property prop)
prop
- public static Property getProperty(byte[] value)
value
- Property
RuntimeException
- if property prefix or separator is not presentCopyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.