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

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

public class AnnotationResultAccessor
extends ResultAccessor

See Also:
Serialized Form

Method Summary
 CurrentValueAnnotationAttrib getAttrib(String name)
           
 ColumnAttrib getColumnAttribByName(String name)
           
 ColumnAttrib getColumnAttribByQualifiedName(String familyName, String columnName)
           
 ColumnAttrib getKeyAttrib()
           
 VersionAnnotationAttrib getVersionAttrib(String name)
           
static boolean isAnnotatedObject(Class<?> clazz)
           
static AnnotationResultAccessor newAnnotationMapping(HConnectionImpl conn, Class<?> clazz)
           
 Object newObject(HConnectionImpl conn, MappingContext mappingContext, List<SelectElement> selectElementList, int maxVersions, org.apache.hadoop.hbase.client.Result result)
           
 
Methods inherited from class org.apache.hadoop.hbase.hbql.mapping.ResultAccessor
getMapping, getMappingContext, getTableMapping, getVersionAttrib
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isAnnotatedObject

public static boolean isAnnotatedObject(Class<?> clazz)

newAnnotationMapping

public static AnnotationResultAccessor newAnnotationMapping(HConnectionImpl conn,
                                                            Class<?> clazz)
                                                     throws HBqlException
Throws:
HBqlException

getKeyAttrib

public ColumnAttrib getKeyAttrib()
                          throws HBqlException
Overrides:
getKeyAttrib in class ResultAccessor
Throws:
HBqlException

getColumnAttribByQualifiedName

public ColumnAttrib getColumnAttribByQualifiedName(String familyName,
                                                   String columnName)
                                            throws HBqlException
Specified by:
getColumnAttribByQualifiedName in class ResultAccessor
Throws:
HBqlException

getColumnAttribByName

public ColumnAttrib getColumnAttribByName(String name)
                                   throws HBqlException
Specified by:
getColumnAttribByName in class ResultAccessor
Throws:
HBqlException

getAttrib

public CurrentValueAnnotationAttrib getAttrib(String name)

getVersionAttrib

public VersionAnnotationAttrib getVersionAttrib(String name)
Specified by:
getVersionAttrib in class ResultAccessor

newObject

public Object newObject(HConnectionImpl conn,
                        MappingContext mappingContext,
                        List<SelectElement> selectElementList,
                        int maxVersions,
                        org.apache.hadoop.hbase.client.Result result)
                 throws HBqlException
Specified by:
newObject in class ResultAccessor
Throws:
HBqlException


Copyright © 2011. All Rights Reserved.