public static class CoprocessorHost.Environment extends Object implements CoprocessorEnvironment
| 限定符和类型 | 字段和说明 |
|---|---|
Coprocessor |
impl
The coprocessor
|
protected List<HTableInterface> |
openTables
Accounting for tables opened by the coprocessor
|
protected int |
priority
Chaining priority
|
| 构造器和说明 |
|---|
CoprocessorHost.Environment(Coprocessor impl,
int priority,
int seq,
org.apache.hadoop.conf.Configuration conf)
Constructor
|
| 限定符和类型 | 方法和说明 |
|---|---|
ClassLoader |
getClassLoader() |
org.apache.hadoop.conf.Configuration |
getConfiguration() |
String |
getHBaseVersion() |
Coprocessor |
getInstance() |
int |
getLoadSequence() |
int |
getPriority() |
HTableInterface |
getTable(TableName tableName)
Open a table from within the Coprocessor environment
|
HTableInterface |
getTable(TableName tableName,
ExecutorService pool)
Open a table from within the Coprocessor environment
|
int |
getVersion() |
protected void |
shutdown()
Clean up the environment
|
void |
startup()
Initialize the environment
|
public Coprocessor impl
protected int priority
protected final List<HTableInterface> openTables
public CoprocessorHost.Environment(Coprocessor impl, int priority, int seq, org.apache.hadoop.conf.Configuration conf)
impl - the coprocessor instancepriority - chaining prioritypublic void startup()
throws IOException
IOExceptionprotected void shutdown()
public Coprocessor getInstance()
getInstance 在接口中 CoprocessorEnvironmentpublic ClassLoader getClassLoader()
getClassLoader 在接口中 CoprocessorEnvironmentpublic int getPriority()
getPriority 在接口中 CoprocessorEnvironmentpublic int getLoadSequence()
getLoadSequence 在接口中 CoprocessorEnvironmentpublic int getVersion()
getVersion 在接口中 CoprocessorEnvironmentpublic String getHBaseVersion()
getHBaseVersion 在接口中 CoprocessorEnvironmentpublic org.apache.hadoop.conf.Configuration getConfiguration()
getConfiguration 在接口中 CoprocessorEnvironmentpublic HTableInterface getTable(TableName tableName) throws IOException
getTable 在接口中 CoprocessorEnvironmenttableName - the table nameIOException - Exceptionpublic HTableInterface getTable(TableName tableName, ExecutorService pool) throws IOException
getTable 在接口中 CoprocessorEnvironmenttableName - the table nameIOException - ExceptionCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.