org.apache.hadoop.hbase.hbql.mapping
Class HRecordAttrib

java.lang.Object
  extended by org.apache.hadoop.hbase.hbql.mapping.ColumnAttrib
      extended by org.apache.hadoop.hbase.hbql.mapping.HRecordAttrib
All Implemented Interfaces:
Serializable

public class HRecordAttrib
extends ColumnAttrib

See Also:
Serialized Form

Constructor Summary
HRecordAttrib(ColumnDefinition columnDefinition)
           
 
Method Summary
 String asString()
           
protected  void defineAccessors()
           
protected  Class getComponentType()
           
 Object getCurrentValue(Object record)
           
protected  DefaultArg getDefaultArg()
           
 String getEnclosingClassName()
           
protected  Method getMethod(String methodName, Class<?>... params)
           
 String[] getNamesForColumn()
           
 String getNameToUseInExceptions()
           
 Map<Long,Object> getVersionMap(Object record)
           
 boolean isAKeyAttrib()
           
 boolean isAVersionValue()
           
 void setCurrentValue(Object record, long timestamp, Object val)
           
 void setUnMappedCurrentValue(Object record, String name, byte[] value)
           
 void setUnMappedVersionMap(Object record, String name, NavigableMap<Long,byte[]> timeStampMap)
           
 String toString()
           
 
Methods inherited from class org.apache.hadoop.hbase.hbql.mapping.ColumnAttrib
equals, getAliasName, getColumnDefinition, getColumnName, getColumnNameAsBytes, getDefaultValue, getFamilyName, getFamilyNameAsBytes, getFamilyQualifiedName, getFamilyQualifiedNameAsBytes, getFieldType, getGetter, getGetterMethod, getSetter, getSetterMethod, getValueAsBytes, getValueFromBytes, getValueFromBytes, hasAlias, hasDefaultArg, hasGetter, hashCode, hasSetter, invokeGetterMethod, invokeSetterMethod, isACurrentValue, isAnArray, isASelectFamilyAttrib, resetDefaultValue, setCurrentValue, setVersionMap, validateValueWidth
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HRecordAttrib

public HRecordAttrib(ColumnDefinition columnDefinition)
              throws HBqlException
Throws:
HBqlException
Method Detail

getDefaultArg

protected DefaultArg getDefaultArg()
Overrides:
getDefaultArg in class ColumnAttrib

asString

public String asString()
                throws HBqlException
Throws:
HBqlException

toString

public String toString()
Overrides:
toString in class Object

isAKeyAttrib

public boolean isAKeyAttrib()
Overrides:
isAKeyAttrib in class ColumnAttrib

defineAccessors

protected void defineAccessors()
Overrides:
defineAccessors in class ColumnAttrib

getCurrentValue

public Object getCurrentValue(Object record)
                       throws HBqlException,
                              ResultMissingColumnException,
                              NullColumnValueException
Specified by:
getCurrentValue in class ColumnAttrib
Throws:
HBqlException
ResultMissingColumnException
NullColumnValueException

setCurrentValue

public void setCurrentValue(Object record,
                            long timestamp,
                            Object val)
                     throws HBqlException
Specified by:
setCurrentValue in class ColumnAttrib
Throws:
HBqlException

getVersionMap

public Map<Long,Object> getVersionMap(Object record)
                               throws HBqlException
Specified by:
getVersionMap in class ColumnAttrib
Throws:
HBqlException

setUnMappedCurrentValue

public void setUnMappedCurrentValue(Object record,
                                    String name,
                                    byte[] value)
                             throws HBqlException
Specified by:
setUnMappedCurrentValue in class ColumnAttrib
Throws:
HBqlException

setUnMappedVersionMap

public void setUnMappedVersionMap(Object record,
                                  String name,
                                  NavigableMap<Long,byte[]> timeStampMap)
                           throws HBqlException
Specified by:
setUnMappedVersionMap in class ColumnAttrib
Throws:
HBqlException

getMethod

protected Method getMethod(String methodName,
                           Class<?>... params)
                    throws NoSuchMethodException,
                           HBqlException
Specified by:
getMethod in class ColumnAttrib
Throws:
NoSuchMethodException
HBqlException

getComponentType

protected Class getComponentType()
Specified by:
getComponentType in class ColumnAttrib

getNameToUseInExceptions

public String getNameToUseInExceptions()
Specified by:
getNameToUseInExceptions in class ColumnAttrib

getEnclosingClassName

public String getEnclosingClassName()
Specified by:
getEnclosingClassName in class ColumnAttrib

isAVersionValue

public boolean isAVersionValue()
Overrides:
isAVersionValue in class ColumnAttrib

getNamesForColumn

public String[] getNamesForColumn()


Copyright © 2011. All Rights Reserved.