org.apache.hadoop.hbase.hbql.client
Interface HConnection
- All Known Implementing Classes:
- HConnectionImpl
public interface HConnection
getConfiguration
org.apache.hadoop.conf.Configuration getConfiguration()
getFamilyNames
Set<String> getFamilyNames(String tableName)
throws HBqlException
- Throws:
HBqlException
close
void close()
isClosed
boolean isClosed()
throws HBqlException
- Throws:
HBqlException
isPooled
boolean isPooled()
tableExists
boolean tableExists(String tableName)
throws HBqlException
- Throws:
HBqlException
getHTableDescriptor
org.apache.hadoop.hbase.HTableDescriptor getHTableDescriptor(String tableName)
throws HBqlException
- Throws:
HBqlException
tableEnabled
boolean tableEnabled(String tableName)
throws HBqlException
- Throws:
HBqlException
dropTable
void dropTable(String tableName)
throws HBqlException
- Throws:
HBqlException
disableTable
void disableTable(String tableName)
throws HBqlException
- Throws:
HBqlException
enableTable
void enableTable(String tableName)
throws HBqlException
- Throws:
HBqlException
getTableNames
Set<String> getTableNames()
throws HBqlException
- Throws:
HBqlException
indexExistsForMapping
boolean indexExistsForMapping(String indexName,
String mappingName)
throws HBqlException
- Throws:
HBqlException
dropIndexForMapping
void dropIndexForMapping(String indexName,
String mappingName)
throws HBqlException
- Throws:
HBqlException
indexExistsForTable
boolean indexExistsForTable(String indexName,
String tableName)
throws HBqlException
- Throws:
HBqlException
dropIndexForTable
void dropIndexForTable(String tableName,
String indexName)
throws HBqlException
- Throws:
HBqlException
createStatement
HStatement createStatement()
throws HBqlException
- Throws:
HBqlException
prepareStatement
HPreparedStatement prepareStatement(String str)
throws HBqlException
- Throws:
HBqlException
execute
ExecutionResults execute(String sql)
throws HBqlException
- Throws:
HBqlException
executeQuery
HResultSet<HRecord> executeQuery(String sql)
throws HBqlException
- Throws:
HBqlException
executeQuery
<T> HResultSet<T> executeQuery(String sql,
Class clazz)
throws HBqlException
- Throws:
HBqlException
executeQueryAndFetch
List<HRecord> executeQueryAndFetch(String sql)
throws HBqlException
- Throws:
HBqlException
executeQueryAndFetch
<T> List<T> executeQueryAndFetch(String sql,
Class clazz)
throws HBqlException
- Throws:
HBqlException
executeUpdate
ExecutionResults executeUpdate(String sql)
throws HBqlException
- Throws:
HBqlException
getMapping
HMapping getMapping(String mappingName)
throws HBqlException
- Throws:
HBqlException
mappingExists
boolean mappingExists(String mappingName)
throws HBqlException
- Throws:
HBqlException
dropMapping
boolean dropMapping(String mappingName)
throws HBqlException
- Throws:
HBqlException
getAllMappings
Set<HMapping> getAllMappings()
throws HBqlException
- Throws:
HBqlException
setQueryExecutorPoolName
void setQueryExecutorPoolName(String name)
getQueryExecutorPoolName
String getQueryExecutorPoolName()
setAsyncExecutorName
void setAsyncExecutorName(String name)
getAsyncExecutorName
String getAsyncExecutorName()
newHBatch
<T> HBatch<T> newHBatch()
Copyright © 2011. All Rights Reserved.