public class HiveClient extends 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(DataSource dataSource) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
execute(String command) |
String |
executeAndfetchOne(String command) |
Connection |
getConnection() |
void |
shutdown() |
public HiveClient(DataSource dataSource)
public Connection getConnection()
public void shutdown()
throws SQLException
SQLException