org.apache.hadoop.hbase.hbql.mapping
Class ColumnAttrib
java.lang.Object
org.apache.hadoop.hbase.hbql.mapping.ColumnAttrib
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- FieldAttrib, HRecordAttrib, SelectFamilyAttrib
public abstract class ColumnAttrib
- extends Object
- implements Serializable
- See Also:
- Serialized Form
Method Summary |
protected void |
defineAccessors()
|
boolean |
equals(Object o)
|
String |
getAliasName()
|
ColumnDefinition |
getColumnDefinition()
|
String |
getColumnName()
|
byte[] |
getColumnNameAsBytes()
|
protected abstract Class |
getComponentType()
|
abstract Object |
getCurrentValue(Object obj)
|
protected DefaultArg |
getDefaultArg()
|
Object |
getDefaultValue()
|
abstract String |
getEnclosingClassName()
|
String |
getFamilyName()
|
byte[] |
getFamilyNameAsBytes()
|
String |
getFamilyQualifiedName()
|
byte[] |
getFamilyQualifiedNameAsBytes()
|
FieldType |
getFieldType()
|
protected String |
getGetter()
|
protected Method |
getGetterMethod()
|
protected abstract Method |
getMethod(String methodName,
Class<?>... params)
|
abstract String |
getNameToUseInExceptions()
|
protected String |
getSetter()
|
protected Method |
getSetterMethod()
|
byte[] |
getValueAsBytes(Object obj)
|
Object |
getValueFromBytes(Object obj,
byte[] b)
|
Object |
getValueFromBytes(org.apache.hadoop.hbase.client.Result result)
|
abstract Map<Long,Object> |
getVersionMap(Object obj)
|
boolean |
hasAlias()
|
boolean |
hasDefaultArg()
|
protected boolean |
hasGetter()
|
int |
hashCode()
|
protected boolean |
hasSetter()
|
byte[] |
invokeGetterMethod(Object obj)
|
Object |
invokeSetterMethod(Object obj,
byte[] b)
|
boolean |
isACurrentValue()
|
boolean |
isAKeyAttrib()
|
boolean |
isAnArray()
|
boolean |
isASelectFamilyAttrib()
|
boolean |
isAVersionValue()
|
void |
resetDefaultValue()
|
void |
setCurrentValue(Object obj,
long timestamp,
byte[] b)
|
abstract void |
setCurrentValue(Object obj,
long timestamp,
Object val)
|
abstract void |
setUnMappedCurrentValue(Object obj,
String name,
byte[] value)
|
abstract void |
setUnMappedVersionMap(Object obj,
String name,
NavigableMap<Long,byte[]> timeStampMap)
|
void |
setVersionMap(Object obj,
NavigableMap<Long,byte[]> timeStampMap)
|
void |
validateValueWidth(Object value)
|
ColumnAttrib
public ColumnAttrib()
ColumnAttrib
protected ColumnAttrib(ColumnDefinition columnDefinition)
getDefaultValue
public Object getDefaultValue()
throws HBqlException
- Throws:
HBqlException
hasDefaultArg
public boolean hasDefaultArg()
throws HBqlException
- Throws:
HBqlException
getDefaultArg
protected DefaultArg getDefaultArg()
getCurrentValue
public abstract Object getCurrentValue(Object obj)
throws HBqlException,
ResultMissingColumnException,
NullColumnValueException
- Throws:
HBqlException
ResultMissingColumnException
NullColumnValueException
setCurrentValue
public abstract void setCurrentValue(Object obj,
long timestamp,
Object val)
throws HBqlException
- Throws:
HBqlException
getVersionMap
public abstract Map<Long,Object> getVersionMap(Object obj)
throws HBqlException
- Throws:
HBqlException
setUnMappedCurrentValue
public abstract void setUnMappedCurrentValue(Object obj,
String name,
byte[] value)
throws HBqlException
- Throws:
HBqlException
setUnMappedVersionMap
public abstract void setUnMappedVersionMap(Object obj,
String name,
NavigableMap<Long,byte[]> timeStampMap)
throws HBqlException
- Throws:
HBqlException
getMethod
protected abstract Method getMethod(String methodName,
Class<?>... params)
throws NoSuchMethodException,
HBqlException
- Throws:
NoSuchMethodException
HBqlException
getComponentType
protected abstract Class getComponentType()
throws HBqlException
- Throws:
HBqlException
getNameToUseInExceptions
public abstract String getNameToUseInExceptions()
getEnclosingClassName
public abstract String getEnclosingClassName()
resetDefaultValue
public void resetDefaultValue()
throws HBqlException
- Throws:
HBqlException
setVersionMap
public void setVersionMap(Object obj,
NavigableMap<Long,byte[]> timeStampMap)
throws HBqlException
- Throws:
HBqlException
getFamilyQualifiedName
public String getFamilyQualifiedName()
getFamilyQualifiedNameAsBytes
public byte[] getFamilyQualifiedNameAsBytes()
throws HBqlException
- Throws:
HBqlException
getFamilyNameAsBytes
public byte[] getFamilyNameAsBytes()
throws HBqlException
- Throws:
HBqlException
getColumnNameAsBytes
public byte[] getColumnNameAsBytes()
throws HBqlException
- Throws:
HBqlException
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
defineAccessors
protected void defineAccessors()
throws HBqlException
- Throws:
HBqlException
invokeGetterMethod
public byte[] invokeGetterMethod(Object obj)
throws HBqlException
- Throws:
HBqlException
invokeSetterMethod
public Object invokeSetterMethod(Object obj,
byte[] b)
throws HBqlException
- Throws:
HBqlException
getValueAsBytes
public byte[] getValueAsBytes(Object obj)
throws HBqlException
- Throws:
HBqlException
validateValueWidth
public void validateValueWidth(Object value)
throws HBqlException
- Throws:
HBqlException
getValueFromBytes
public Object getValueFromBytes(Object obj,
byte[] b)
throws HBqlException
- Throws:
HBqlException
getValueFromBytes
public Object getValueFromBytes(org.apache.hadoop.hbase.client.Result result)
throws HBqlException,
ResultMissingColumnException,
NullColumnValueException
- Throws:
HBqlException
ResultMissingColumnException
NullColumnValueException
setCurrentValue
public void setCurrentValue(Object obj,
long timestamp,
byte[] b)
throws HBqlException
- Throws:
HBqlException
getGetter
protected String getGetter()
getSetter
protected String getSetter()
getGetterMethod
protected Method getGetterMethod()
getSetterMethod
protected Method getSetterMethod()
hasGetter
protected boolean hasGetter()
hasSetter
protected boolean hasSetter()
isACurrentValue
public boolean isACurrentValue()
isAVersionValue
public boolean isAVersionValue()
getColumnDefinition
public ColumnDefinition getColumnDefinition()
hasAlias
public boolean hasAlias()
getAliasName
public String getAliasName()
isASelectFamilyAttrib
public boolean isASelectFamilyAttrib()
isAnArray
public boolean isAnArray()
getFamilyName
public String getFamilyName()
getColumnName
public String getColumnName()
getFieldType
public FieldType getFieldType()
isAKeyAttrib
public boolean isAKeyAttrib()
Copyright © 2011. All Rights Reserved.