BufferedMutator for batching mutations.@Deprecated @InterfaceAudience.Public public class HTableMultiplexer extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
HTableMultiplexer.HTableMultiplexerStatus
已过时。
since 2.2.0, will be removed in 3.0.0, without replacement. Please use
BufferedMutator for batching mutations. |
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
TABLE_MULTIPLEXER_FLUSH_PERIOD_MS
已过时。
|
static String |
TABLE_MULTIPLEXER_INIT_THREADS
已过时。
|
static String |
TABLE_MULTIPLEXER_MAX_RETRIES_IN_QUEUE
已过时。
|
| 构造器和说明 |
|---|
HTableMultiplexer(org.apache.hadoop.conf.Configuration conf,
int perRegionServerBufferQueueSize)
已过时。
|
HTableMultiplexer(Connection conn,
org.apache.hadoop.conf.Configuration conf,
int perRegionServerBufferQueueSize)
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
已过时。
Closes the internal
Connection. |
HTableMultiplexer.HTableMultiplexerStatus |
getHTableMultiplexerStatus()
已过时。
|
List<Put> |
put(byte[] tableName,
List<Put> puts)
已过时。
Use
put(TableName, List) instead. |
boolean |
put(byte[] tableName,
Put put)
已过时。
Use
put(TableName, Put) instead. |
boolean |
put(byte[] tableName,
Put put,
int retry)
已过时。
Use
put(TableName, Put) instead. |
List<Put> |
put(TableName tableName,
List<Put> puts)
已过时。
The puts request will be buffered by their corresponding buffer queue.
|
boolean |
put(TableName tableName,
Put put)
已过时。
The put request will be buffered by its corresponding buffer queue.
|
boolean |
put(TableName tableName,
Put put,
int maxAttempts)
已过时。
The put request will be buffered by its corresponding buffer queue.
|
public static final String TABLE_MULTIPLEXER_FLUSH_PERIOD_MS
public static final String TABLE_MULTIPLEXER_INIT_THREADS
public HTableMultiplexer(org.apache.hadoop.conf.Configuration conf,
int perRegionServerBufferQueueSize)
throws IOException
conf - The HBaseConfigurationperRegionServerBufferQueueSize - determines the max number of the buffered Put ops for
each region server before dropping the request.IOExceptionpublic HTableMultiplexer(Connection conn, org.apache.hadoop.conf.Configuration conf, int perRegionServerBufferQueueSize)
conn - The HBase connection.conf - The HBase configurationperRegionServerBufferQueueSize - determines the max number of the buffered Put ops for
each region server before dropping the request.public void close()
throws IOException
Connection. Does nothing if the Connection has already
been closed.IOException - If there is an error closing the connection.public boolean put(TableName tableName, Put put)
tableName - put - public List<Put> put(TableName tableName, List<Put> puts)
tableName - puts - @Deprecated public List<Put> put(byte[] tableName, List<Put> puts)
put(TableName, List) instead.public boolean put(TableName tableName, Put put, int maxAttempts)
@Deprecated public boolean put(byte[] tableName, Put put, int retry)
put(TableName, Put) instead.@Deprecated public boolean put(byte[] tableName, Put put)
put(TableName, Put) instead.public HTableMultiplexer.HTableMultiplexerStatus getHTableMultiplexerStatus()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.