@InterfaceAudience.Private @InterfaceStability.Evolving public class CoprocessorHConnection extends Object
You should not use this class from any client - its an internal class meant for use by the coprocessor framework.
| 限定符和类型 | 字段和说明 |
|---|---|
protected String |
clusterId |
protected User |
user |
HBASE_CLIENT_CONNECTION_IMPL| 构造器和说明 |
|---|
CoprocessorHConnection(ClusterConnection delegate,
HRegionServer server)
已过时。
delegate is not used
|
CoprocessorHConnection(org.apache.hadoop.conf.Configuration conf,
HRegionServer server)
Constructor that accepts custom configuration
|
CoprocessorHConnection(HRegionServer server)
Constructor that uses server configuration
|
@Deprecated public CoprocessorHConnection(ClusterConnection delegate, HRegionServer server) throws IOException
delegate - server - IOException - if we cannot create the connectionpublic CoprocessorHConnection(HRegionServer server) throws IOException
server - IOException - if we cannot create the connectionpublic CoprocessorHConnection(org.apache.hadoop.conf.Configuration conf,
HRegionServer server)
throws IOException
conf - server - IOException - if we cannot create the connectionpublic static ClusterConnection getConnectionForEnvironment(CoprocessorEnvironment env) throws IOException
HConnection based on the environment in which we are running the
coprocessor. The HConnection must be externally cleaned up (we bypass the usual HTable
cleanup mechanisms since we own everything).env - environment hosting the HConnectionHConnection.IOException - if we cannot create the connectionpublic org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ClientService.BlockingInterface getClient(ServerName serverName) throws IOException
getClient 在接口中 ClusterConnectiongetClient 在接口中 HConnectionIOExceptionpublic NonceGenerator getNonceGenerator()
getNonceGenerator 在接口中 ClusterConnectiongetNonceGenerator 在接口中 HConnectionpublic HTableInterface getTable(String arg0) throws IOException
getTable 在接口中 HConnectionIOExceptionpublic HTableInterface getTable(byte[] arg0) throws IOException
getTable 在接口中 HConnectionIOExceptionpublic HTableInterface getTable(TableName arg0) throws IOException
getTable 在接口中 ConnectiongetTable 在接口中 HConnectionIOExceptionpublic HTableInterface getTable(String arg0, ExecutorService arg1) throws IOException
getTable 在接口中 HConnectionIOExceptionpublic HTableInterface getTable(byte[] arg0, ExecutorService arg1) throws IOException
getTable 在接口中 HConnectionIOExceptionpublic HTableInterface getTable(TableName arg0, ExecutorService arg1) throws IOException
getTable 在接口中 ConnectiongetTable 在接口中 HConnectionIOExceptionpublic BufferedMutator getBufferedMutator(BufferedMutatorParams arg0)
getBufferedMutator 在接口中 Connectionpublic BufferedMutator getBufferedMutator(TableName arg0)
getBufferedMutator 在接口中 Connectionpublic RegionLocator getRegionLocator(TableName arg0) throws IOException
getRegionLocator 在接口中 ConnectiongetRegionLocator 在接口中 HConnectionIOExceptionpublic Admin getAdmin() throws IOException
getAdmin 在接口中 ConnectiongetAdmin 在接口中 HConnectionIOExceptionpublic MetricsConnection getConnectionMetrics()
getConnectionMetrics 在接口中 ClusterConnectionprotected ExecutorService getCurrentMetaLookupPool()
protected ExecutorService getCurrentBatchPool()
public org.apache.hadoop.conf.Configuration getConfiguration()
getConfiguration 在接口中 ConnectiongetConfiguration 在接口中 HConnection@Deprecated public boolean isMasterRunning() throws MasterNotRunningException, ZooKeeperConnectionException
isMasterRunning 在接口中 ClusterConnectionisMasterRunning 在接口中 HConnectionMasterNotRunningExceptionZooKeeperConnectionExceptionpublic HRegionLocation getRegionLocation(TableName arg0, byte[] arg1, boolean arg2) throws IOException
getRegionLocation 在接口中 ClusterConnectiongetRegionLocation 在接口中 HConnectionIOExceptionpublic HRegionLocation getRegionLocation(byte[] arg0, byte[] arg1, boolean arg2) throws IOException
getRegionLocation 在接口中 HConnectionIOExceptionpublic boolean isTableEnabled(TableName arg0) throws IOException
isTableEnabled 在接口中 HConnectionIOExceptionpublic boolean isTableEnabled(byte[] arg0)
throws IOException
isTableEnabled 在接口中 HConnectionIOExceptionpublic boolean isTableDisabled(TableName arg0) throws IOException
isTableDisabled 在接口中 HConnectionIOExceptionpublic boolean isTableDisabled(byte[] arg0)
throws IOException
isTableDisabled 在接口中 HConnectionIOExceptionpublic boolean isTableAvailable(TableName arg0) throws IOException
isTableAvailable 在接口中 HConnectionIOExceptionpublic boolean isTableAvailable(byte[] arg0)
throws IOException
isTableAvailable 在接口中 HConnectionIOExceptionpublic boolean isTableAvailable(TableName arg0, byte[][] arg1) throws IOException
isTableAvailable 在接口中 ClusterConnectionisTableAvailable 在接口中 HConnectionIOExceptionpublic boolean isTableAvailable(byte[] arg0,
byte[][] arg1)
throws IOException
isTableAvailable 在接口中 HConnectionIOExceptionpublic HRegionLocation locateRegion(byte[] arg0) throws IOException
locateRegion 在接口中 ClusterConnectionlocateRegion 在接口中 HConnectionIOExceptionpublic boolean isDeadServer(ServerName arg0)
isDeadServer 在接口中 ClusterConnectionisDeadServer 在接口中 HConnectionpublic List<HRegionLocation> locateRegions(TableName arg0) throws IOException
locateRegions 在接口中 ClusterConnectionlocateRegions 在接口中 HConnectionIOExceptionpublic List<HRegionLocation> locateRegions(byte[] arg0) throws IOException
locateRegions 在接口中 HConnectionIOExceptionpublic List<HRegionLocation> locateRegions(TableName arg0, boolean arg1, boolean arg2) throws IOException
locateRegions 在接口中 ClusterConnectionlocateRegions 在接口中 HConnectionIOExceptionpublic List<HRegionLocation> locateRegions(byte[] arg0, boolean arg1, boolean arg2) throws IOException
locateRegions 在接口中 HConnectionIOExceptionpublic HRegionLocation locateRegion(TableName arg0, byte[] arg1) throws IOException
locateRegion 在接口中 ClusterConnectionlocateRegion 在接口中 HConnectionIOExceptionpublic HRegionLocation locateRegion(byte[] arg0, byte[] arg1) throws IOException
locateRegion 在接口中 HConnectionIOExceptionpublic HRegionLocation relocateRegion(TableName arg0, byte[] arg1) throws IOException
relocateRegion 在接口中 ClusterConnectionrelocateRegion 在接口中 HConnectionIOExceptionpublic RegionLocations relocateRegion(TableName arg0, byte[] arg1, int arg2) throws IOException
relocateRegion 在接口中 ClusterConnectionIOExceptionpublic HRegionLocation relocateRegion(byte[] arg0, byte[] arg1) throws IOException
relocateRegion 在接口中 HConnectionIOExceptionpublic RegionLocations locateRegion(TableName arg0, byte[] arg1, boolean arg2, boolean arg3) throws IOException
locateRegion 在接口中 ClusterConnectionIOExceptionpublic RegionLocations locateRegion(TableName arg0, byte[] arg1, boolean arg2, boolean arg3, int arg4) throws IOException
locateRegion 在接口中 ClusterConnectionIOExceptionpublic void cacheLocation(TableName arg0, RegionLocations arg1)
cacheLocation 在接口中 ClusterConnectionpublic void clearRegionCache(TableName arg0, byte[] arg1)
public void clearCaches(ServerName arg0)
clearCaches 在接口中 ClusterConnectionclearCaches 在接口中 HConnectionpublic void clearRegionCache()
clearRegionCache 在接口中 ClusterConnectionclearRegionCache 在接口中 HConnectionpublic void clearRegionCache(TableName arg0)
clearRegionCache 在接口中 ClusterConnectionclearRegionCache 在接口中 HConnectionpublic void clearRegionCache(byte[] arg0)
clearRegionCache 在接口中 HConnectionpublic org.apache.hadoop.hbase.protobuf.generated.AdminProtos.AdminService.BlockingInterface getAdmin(ServerName arg0) throws IOException
getAdmin 在接口中 ClusterConnectiongetAdmin 在接口中 HConnectionIOExceptionpublic org.apache.hadoop.hbase.protobuf.generated.AdminProtos.AdminService.BlockingInterface getAdmin(ServerName arg0, boolean arg1) throws IOException
getAdmin 在接口中 HConnectionIOExceptionpublic org.apache.hadoop.hbase.protobuf.generated.MasterProtos.MasterService.BlockingInterface getMaster() throws MasterNotRunningException
getMaster 在接口中 ClusterConnectiongetMaster 在接口中 HConnectionMasterNotRunningExceptionpublic org.apache.hadoop.hbase.client.MasterKeepAliveConnection getKeepAliveMasterService() throws MasterNotRunningException
getKeepAliveMasterService 在接口中 ClusterConnectiongetKeepAliveMasterService 在接口中 HConnectionMasterNotRunningExceptionpublic void deleteCachedRegionLocation(HRegionLocation arg0)
deleteCachedRegionLocation 在接口中 ClusterConnectiondeleteCachedRegionLocation 在接口中 HConnectionpublic void updateCachedLocations(TableName arg0, byte[] arg1, Object arg2, HRegionLocation arg3)
updateCachedLocations 在接口中 HConnectionpublic void updateCachedLocations(TableName arg0, byte[] arg1, byte[] arg2, Object arg3, ServerName arg4)
updateCachedLocations 在接口中 ClusterConnectionupdateCachedLocations 在接口中 HConnectionpublic void updateCachedLocations(byte[] arg0,
byte[] arg1,
Object arg2,
HRegionLocation arg3)
updateCachedLocations 在接口中 HConnection@Deprecated public void processBatch(List<? extends Row> arg0, TableName arg1, ExecutorService arg2, Object[] arg3) throws IOException, InterruptedException
processBatch 在接口中 HConnectionIOExceptionInterruptedException@Deprecated public void processBatch(List<? extends Row> arg0, byte[] arg1, ExecutorService arg2, Object[] arg3) throws IOException, InterruptedException
processBatch 在接口中 HConnectionIOExceptionInterruptedException@Deprecated public <R> void processBatchCallback(List<? extends Row> arg0, TableName arg1, ExecutorService arg2, Object[] arg3, Batch.Callback<R> arg4) throws IOException, InterruptedException
processBatchCallback 在接口中 HConnectionIOExceptionInterruptedException@Deprecated public <R> void processBatchCallback(List<? extends Row> arg0, byte[] arg1, ExecutorService arg2, Object[] arg3, Batch.Callback<R> arg4) throws IOException, InterruptedException
processBatchCallback 在接口中 HConnectionIOExceptionInterruptedExceptionprotected org.apache.hadoop.hbase.client.AsyncProcess createAsyncProcess(org.apache.hadoop.conf.Configuration arg0)
public org.apache.hadoop.hbase.client.AsyncProcess getAsyncProcess()
getAsyncProcess 在接口中 ClusterConnectionpublic ServerStatisticTracker getStatisticsTracker()
getStatisticsTracker 在接口中 ClusterConnectionpublic ClientBackoffPolicy getBackoffPolicy()
getBackoffPolicy 在接口中 ClusterConnection@Deprecated public void setRegionCachePrefetch(TableName arg0, boolean arg1)
setRegionCachePrefetch 在接口中 HConnection@Deprecated public void setRegionCachePrefetch(byte[] arg0, boolean arg1)
setRegionCachePrefetch 在接口中 HConnection@Deprecated public boolean getRegionCachePrefetch(TableName arg0)
getRegionCachePrefetch 在接口中 HConnection@Deprecated public boolean getRegionCachePrefetch(byte[] arg0)
getRegionCachePrefetch 在接口中 HConnectionpublic boolean isClosed()
isClosed 在接口中 ConnectionisClosed 在接口中 HConnectionpublic int getCurrentNrHRS()
throws IOException
getCurrentNrHRS 在接口中 HConnectionIOExceptionpublic void close()
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在接口中 Connection@Deprecated public HTableDescriptor[] listTables() throws IOException
listTables 在接口中 HConnectionIOException@Deprecated public String[] getTableNames() throws IOException
getTableNames 在接口中 HConnectionIOException@Deprecated public TableName[] listTableNames() throws IOException
listTableNames 在接口中 HConnectionIOException@Deprecated public HTableDescriptor[] getHTableDescriptorsByTableName(List<TableName> arg0) throws IOException
getHTableDescriptorsByTableName 在接口中 HConnectionIOException@Deprecated public HTableDescriptor[] getHTableDescriptors(List<String> arg0) throws IOException
getHTableDescriptors 在接口中 HConnectionIOException@Deprecated public HTableDescriptor getHTableDescriptor(TableName arg0) throws IOException
getHTableDescriptor 在接口中 HConnectionIOException@Deprecated public HTableDescriptor getHTableDescriptor(byte[] arg0) throws IOException
getHTableDescriptor 在接口中 HConnectionIOExceptionpublic RpcRetryingCallerFactory getNewRpcRetryingCallerFactory(org.apache.hadoop.conf.Configuration arg0)
public boolean isManaged()
isManaged 在接口中 ClusterConnectionpublic boolean hasCellBlockSupport()
hasCellBlockSupport 在接口中 ClusterConnectionpublic ConnectionConfiguration getConnectionConfiguration()
getConnectionConfiguration 在接口中 ClusterConnectionpublic RpcRetryingCallerFactory getRpcRetryingCallerFactory()
getRpcRetryingCallerFactory 在接口中 ClusterConnectionpublic RpcControllerFactory getRpcControllerFactory()
getRpcControllerFactory 在接口中 ClusterConnectionCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.