org.apache.hadoop.hbase.hbql.statement.select
Class FamilySelectElement

java.lang.Object
  extended by org.apache.hadoop.hbase.hbql.statement.select.FamilySelectElement
All Implemented Interfaces:
Serializable, SelectElement

public class FamilySelectElement
extends Object
implements SelectElement

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.apache.hadoop.hbase.hbql.statement.select.SelectElement
serialVersionUID
 
Constructor Summary
FamilySelectElement(String familyName)
           
 
Method Summary
 void addAFamily(String familyName)
           
 void assignAsNamesForExpressions(SelectStatement selectStatement)
           
 void assignSelectValue(HConnectionImpl conn, Object obj, int maxVersions, org.apache.hadoop.hbase.client.Result result)
           
 String asString()
           
 String getAsName()
           
 List<ColumnAttrib> getAttribsUsedInExpr()
           
 String getElementName()
           
 List<byte[]> getFamilyNameBytesList()
           
 List<String> getFamilyNameList()
           
 List<NamedParameter> getParameterList()
           
protected  TableMapping getTableMapping()
           
 boolean hasAsName()
           
 boolean isAFamilySelect()
           
 boolean isAnAggregateElement()
           
 AggregateValue newAggregateValue()
           
static List<SelectElement> newAllFamilies()
           
static FamilySelectElement newFamilyElement(String family)
           
 void reset()
           
 int setParameter(String name, Object val)
           
 void validate(MappingContext mappingContext, HConnection connection)
           
 void validateTypes(boolean allowColumns, boolean allowCollections)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FamilySelectElement

public FamilySelectElement(String familyName)
Method Detail

addAFamily

public void addAFamily(String familyName)

newAllFamilies

public static List<SelectElement> newAllFamilies()

newFamilyElement

public static FamilySelectElement newFamilyElement(String family)

getFamilyNameList

public List<String> getFamilyNameList()

getFamilyNameBytesList

public List<byte[]> getFamilyNameBytesList()

getTableMapping

protected TableMapping getTableMapping()
                                throws HBqlException
Throws:
HBqlException

getAsName

public String getAsName()
Specified by:
getAsName in interface SelectElement

getElementName

public String getElementName()
Specified by:
getElementName in interface SelectElement

hasAsName

public boolean hasAsName()
Specified by:
hasAsName in interface SelectElement

isAFamilySelect

public boolean isAFamilySelect()
Specified by:
isAFamilySelect in interface SelectElement

asString

public String asString()
Specified by:
asString in interface SelectElement

isAnAggregateElement

public boolean isAnAggregateElement()
Specified by:
isAnAggregateElement in interface SelectElement

getParameterList

public List<NamedParameter> getParameterList()
Specified by:
getParameterList in interface SelectElement

reset

public void reset()
Specified by:
reset in interface SelectElement

setParameter

public int setParameter(String name,
                        Object val)
Specified by:
setParameter in interface SelectElement

validate

public void validate(MappingContext mappingContext,
                     HConnection connection)
              throws HBqlException
Specified by:
validate in interface SelectElement
Throws:
HBqlException

getAttribsUsedInExpr

public List<ColumnAttrib> getAttribsUsedInExpr()
Specified by:
getAttribsUsedInExpr in interface SelectElement

assignAsNamesForExpressions

public void assignAsNamesForExpressions(SelectStatement selectStatement)
Specified by:
assignAsNamesForExpressions in interface SelectElement

newAggregateValue

public AggregateValue newAggregateValue()
                                 throws HBqlException
Specified by:
newAggregateValue in interface SelectElement
Throws:
HBqlException

validateTypes

public void validateTypes(boolean allowColumns,
                          boolean allowCollections)
                   throws HBqlException
Specified by:
validateTypes in interface SelectElement
Throws:
HBqlException

assignSelectValue

public void assignSelectValue(HConnectionImpl conn,
                              Object obj,
                              int maxVersions,
                              org.apache.hadoop.hbase.client.Result result)
                       throws HBqlException
Specified by:
assignSelectValue in interface SelectElement
Throws:
HBqlException


Copyright © 2011. All Rights Reserved.