public class MConnectionFactory extends Object
ConnectionFactory,
but a Connection object
created by the MConnectionFactory generates special
Admin, Table, and BufferedMutator objects which, in addition to providing
all standard HBase API functionality, also: (a) transparently interface with the ColumnManager
repository for tracking of Namespace,
Table, Column Family, and ColumnAuditor metadata, and (b)
optionally enforce administrator-specified ColumnDefinitions when Columns are
submitted in a put (i.e., insert/update) via Table, BufferedMutator, and
HTableMultiplexer interfaces.| Modifier and Type | Method and Description |
|---|---|
static Connection |
createConnection()
Create a new
Connection instance using default
HBaseConfiguration. |
static Connection |
createConnection(Configuration conf)
Create a new
Connection instance using the
passed Configuration instance. |
static Connection |
createConnection(Configuration conf,
ExecutorService pool)
Create a new
Connection instance using the passed
Configuration instance, and using the passed thread pool for batch operations. |
static Connection |
createConnection(Configuration conf,
ExecutorService pool,
User user)
Create a new
Connection instance using the passed
Configuration instance, and using the passed thread pool for batch operations. |
static Connection |
createConnection(Configuration conf,
User user)
Create a new
Connection instance using the passed
Configuration instance. |
public static Connection createConnection() throws IOException
Connection instance using default
HBaseConfiguration.IOException - if a remote or network exception occurspublic static Connection createConnection(Configuration conf) throws IOException
Connection instance using the
passed Configuration instance.conf - ConfigurationIOException - if a remote or network exception occurspublic static Connection createConnection(Configuration conf, ExecutorService pool) throws IOException
Connection instance using the passed
Configuration instance, and using the passed thread pool for batch operations.conf - Configurationpool - The thread pool to use for batch operationsIOException - if a remote or network exception occurspublic static Connection createConnection(Configuration conf, ExecutorService pool, User user) throws IOException
Connection instance using the passed
Configuration instance, and using the passed thread pool for batch operations.conf - Configurationpool - The thread pool to use for batch operationsuser - The user the connection is forIOException - - if a remote or network exception occurspublic static Connection createConnection(Configuration conf, User user) throws IOException
Connection instance using the passed
Configuration instance.conf - Configurationuser - The user the connection is forIOException - - if a remote or network exception occursCopyright © 2016. All rights reserved.