1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package org.apache.hadoop.hbase.hbql.client;
22
23 import java.util.List;
24
25 public interface HStatement {
26
27
28 QueryFuture executeQueryAsync(String sql, QueryListener<HRecord>... listeners) throws HBqlException;
29
30 <T> QueryFuture executeQueryAsync(String sql, Class clazz, QueryListener<T>... listeners) throws HBqlException;
31
32
33 HResultSet<HRecord> executeQuery(String sql, QueryListener<HRecord>... listeners) throws HBqlException;
34
35 <T> HResultSet<T> executeQuery(String sql, Class clazz, QueryListener<T>... listeners) throws HBqlException;
36
37 ExecutionResults execute(String sql) throws HBqlException;
38
39 List<HRecord> executeQueryAndFetch(String sql, QueryListener<HRecord>... listeners) throws HBqlException;
40
41 <T> List<T> executeQueryAndFetch(String sql, Class clazz, QueryListener<T>... listeners) throws HBqlException;
42
43 ExecutionResults executeUpdate(String sql) throws HBqlException;
44
45 <T> HResultSet<T> getResultSet();
46
47 void close() throws HBqlException;
48
49 boolean isClosed();
50 }