org.apache.hadoop.hbase.hbql.impl
Class HStatementImpl
java.lang.Object
org.apache.hadoop.hbase.hbql.impl.HStatementImpl
- All Implemented Interfaces:
- HStatement
- Direct Known Subclasses:
- HPreparedStatementImpl
public class HStatementImpl
- extends Object
- implements HStatement
Method Summary |
void |
close()
|
protected ExecutionResults |
execute(HBqlStatement statement)
|
ExecutionResults |
execute(String sql)
|
protected
|
executeQuery(HBqlStatement statement,
Class clazz,
QueryListener<T>... listeners)
|
|
executeQuery(String sql,
Class clazz,
QueryListener<T>... listeners)
|
HResultSet<HRecord> |
executeQuery(String sql,
QueryListener<HRecord>... listeners)
|
protected
|
executeQueryAndFetch(HBqlStatement statement,
Class clazz,
QueryListener<T>... listeners)
|
|
executeQueryAndFetch(String sql,
Class clazz,
QueryListener<T>... listeners)
|
List<HRecord> |
executeQueryAndFetch(String sql,
QueryListener<HRecord>... listeners)
|
protected
|
executeQueryAsync(HBqlStatement statement,
Class clazz,
QueryListener<T>... listeners)
|
|
executeQueryAsync(String sql,
Class clazz,
QueryListener<T>... listeners)
|
QueryFuture |
executeQueryAsync(String sql,
QueryListener<HRecord>... listeners)
|
ExecutionResults |
executeUpdate(HBqlStatement statement)
|
ExecutionResults |
executeUpdate(String sql)
|
protected HConnectionImpl |
getHConnectionImpl()
|
boolean |
getIgnoreQueryExecutor()
|
|
getResultSet()
|
boolean |
isClosed()
|
void |
setIgnoreQueryExecutor(boolean ignoreQueryExecutor)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HStatementImpl
public HStatementImpl(HConnectionImpl conn)
getHConnectionImpl
protected HConnectionImpl getHConnectionImpl()
getResultSet
public <T> HResultSet<T> getResultSet()
- Specified by:
getResultSet
in interface HStatement
getIgnoreQueryExecutor
public boolean getIgnoreQueryExecutor()
setIgnoreQueryExecutor
public void setIgnoreQueryExecutor(boolean ignoreQueryExecutor)
executeUpdate
public ExecutionResults executeUpdate(HBqlStatement statement)
throws HBqlException
- Throws:
HBqlException
executeQuery
protected <T> HResultSet<T> executeQuery(HBqlStatement statement,
Class clazz,
QueryListener<T>... listeners)
throws HBqlException
- Throws:
HBqlException
executeQueryAsync
protected <T> QueryFuture executeQueryAsync(HBqlStatement statement,
Class clazz,
QueryListener<T>... listeners)
throws HBqlException
- Throws:
HBqlException
executeQueryAndFetch
protected <T> List<T> executeQueryAndFetch(HBqlStatement statement,
Class clazz,
QueryListener<T>... listeners)
throws HBqlException
- Throws:
HBqlException
execute
protected ExecutionResults execute(HBqlStatement statement)
throws HBqlException
- Throws:
HBqlException
execute
public ExecutionResults execute(String sql)
throws HBqlException
- Specified by:
execute
in interface HStatement
- Throws:
HBqlException
executeQuery
public HResultSet<HRecord> executeQuery(String sql,
QueryListener<HRecord>... listeners)
throws HBqlException
- Specified by:
executeQuery
in interface HStatement
- Throws:
HBqlException
executeQueryAsync
public QueryFuture executeQueryAsync(String sql,
QueryListener<HRecord>... listeners)
throws HBqlException
- Specified by:
executeQueryAsync
in interface HStatement
- Throws:
HBqlException
executeQuery
public <T> HResultSet<T> executeQuery(String sql,
Class clazz,
QueryListener<T>... listeners)
throws HBqlException
- Specified by:
executeQuery
in interface HStatement
- Throws:
HBqlException
executeQueryAsync
public <T> QueryFuture executeQueryAsync(String sql,
Class clazz,
QueryListener<T>... listeners)
throws HBqlException
- Specified by:
executeQueryAsync
in interface HStatement
- Throws:
HBqlException
executeQueryAndFetch
public List<HRecord> executeQueryAndFetch(String sql,
QueryListener<HRecord>... listeners)
throws HBqlException
- Specified by:
executeQueryAndFetch
in interface HStatement
- Throws:
HBqlException
executeQueryAndFetch
public <T> List<T> executeQueryAndFetch(String sql,
Class clazz,
QueryListener<T>... listeners)
throws HBqlException
- Specified by:
executeQueryAndFetch
in interface HStatement
- Throws:
HBqlException
executeUpdate
public ExecutionResults executeUpdate(String sql)
throws HBqlException
- Specified by:
executeUpdate
in interface HStatement
- Throws:
HBqlException
isClosed
public boolean isClosed()
- Specified by:
isClosed
in interface HStatement
close
public void close()
throws HBqlException
- Specified by:
close
in interface HStatement
- Throws:
HBqlException
Copyright © 2011. All Rights Reserved.