org.apache.hadoop.hbase
Interface CoprocessorEnvironment
@InterfaceAudience.Private
public interface CoprocessorEnvironment
Coprocessor environment state.
getVersion
int getVersion()
- Returns:
- the Coprocessor interface version
getHBaseVersion
String getHBaseVersion()
- Returns:
- the HBase version as a string (e.g. "0.21.0")
getInstance
Coprocessor getInstance()
- Returns:
- the loaded coprocessor instance
getPriority
int getPriority()
- Returns:
- the priority assigned to the loaded coprocessor
getLoadSequence
int getLoadSequence()
- Returns:
- the load sequence number
getConfiguration
org.apache.hadoop.conf.Configuration getConfiguration()
- Returns:
- the configuration
getTable
HTableInterface getTable(TableName tableName)
throws IOException
- Returns:
- an interface for accessing the given table
- Throws:
IOException
getTable
HTableInterface getTable(TableName tableName,
ExecutorService service)
throws IOException
- Returns:
- an interface for accessing the given table using the passed executor to run batch
operations
- Throws:
IOException
getClassLoader
ClassLoader getClassLoader()
- Returns:
- the classloader for the loaded coprocessor instance
Copyright © 2007-2015 The Apache Software Foundation. All Rights Reserved.