public class HiveClient
extends java.lang.Object
Connection
to Hive.
This class is not thread safe. It uses a JdbcTemplate constructed from a DataSource that is not necessarily
thread safe.Constructor and Description |
---|
HiveClient(javax.sql.DataSource dataSource) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
execute(java.lang.String command) |
java.lang.String |
executeAndfetchOne(java.lang.String command) |
java.sql.Connection |
getConnection() |
void |
shutdown() |
public java.sql.Connection getConnection()
public java.lang.String executeAndfetchOne(java.lang.String command)
public java.util.List<java.lang.String> execute(java.lang.String command)
public void shutdown() throws java.sql.SQLException
java.sql.SQLException