org.apache.hadoop.hbase.hbql.statement
Class InsertStatement

java.lang.Object
  extended by org.apache.hadoop.hbase.hbql.statement.GenericStatement
      extended by org.apache.hadoop.hbase.hbql.statement.StatementWithMapping
          extended by org.apache.hadoop.hbase.hbql.statement.StatementWithParameters
              extended by org.apache.hadoop.hbase.hbql.statement.InsertStatement
All Implemented Interfaces:
ConnectionStatement, HBqlStatement

public class InsertStatement
extends StatementWithParameters
implements ConnectionStatement


Constructor Summary
InsertStatement(StatementPredicate predicate, String mappingName, List<GenericValue> columnList, InsertValueSource insertValuesSource)
           
 
Method Summary
 String asString()
           
protected  ExecutionResults execute(HConnectionImpl conn)
           
 HConnectionImpl getConnection()
           
 void resetParameters()
           
 int setStatementParameter(String name, Object val)
           
static String usage()
           
 void validate(HConnectionImpl conn)
           
 void validateTypes()
           
 
Methods inherited from class org.apache.hadoop.hbase.hbql.statement.StatementWithParameters
getNamedParameters
 
Methods inherited from class org.apache.hadoop.hbase.hbql.statement.StatementWithMapping
getMappingContext
 
Methods inherited from class org.apache.hadoop.hbase.hbql.statement.GenericStatement
evaluatePredicateAndExecute, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.hadoop.hbase.hbql.statement.ConnectionStatement
evaluatePredicateAndExecute
 
Methods inherited from interface org.apache.hadoop.hbase.hbql.statement.HBqlStatement
validate
 

Constructor Detail

InsertStatement

public InsertStatement(StatementPredicate predicate,
                       String mappingName,
                       List<GenericValue> columnList,
                       InsertValueSource insertValuesSource)
Method Detail

getConnection

public HConnectionImpl getConnection()

validate

public void validate(HConnectionImpl conn)
              throws HBqlException
Specified by:
validate in class StatementWithParameters
Throws:
HBqlException

validateTypes

public void validateTypes()
                   throws HBqlException
Specified by:
validateTypes in class StatementWithParameters
Throws:
HBqlException

resetParameters

public void resetParameters()
Specified by:
resetParameters in class StatementWithParameters

setStatementParameter

public int setStatementParameter(String name,
                                 Object val)
                          throws HBqlException
Specified by:
setStatementParameter in class StatementWithParameters
Throws:
HBqlException

execute

protected ExecutionResults execute(HConnectionImpl conn)
                            throws HBqlException
Overrides:
execute in class GenericStatement
Throws:
HBqlException

asString

public String asString()

usage

public static String usage()


Copyright © 2011. All Rights Reserved.