public class TablestorageBufferedMutator extends Object implements org.apache.hadoop.hbase.client.BufferedMutator
| Constructor and Description |
|---|
TablestorageBufferedMutator(TablestorageConnection connection,
org.apache.hadoop.hbase.TableName tableName)
Construct a TablestorageBufferedMutator for the target table.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
org.apache.hadoop.conf.Configuration |
getConfiguration() |
org.apache.hadoop.hbase.TableName |
getName() |
long |
getWriteBufferSize() |
void |
mutate(List<? extends org.apache.hadoop.hbase.client.Mutation> mutations) |
void |
mutate(org.apache.hadoop.hbase.client.Mutation mutation) |
public TablestorageBufferedMutator(TablestorageConnection connection, org.apache.hadoop.hbase.TableName tableName)
connection - The connection used to construct this TablestorageBufferedMutator.tableName - The name of the target table.public org.apache.hadoop.hbase.TableName getName()
getName in interface org.apache.hadoop.hbase.client.BufferedMutatorpublic org.apache.hadoop.conf.Configuration getConfiguration()
getConfiguration in interface org.apache.hadoop.hbase.client.BufferedMutatorpublic void mutate(org.apache.hadoop.hbase.client.Mutation mutation)
throws IOException
mutate in interface org.apache.hadoop.hbase.client.BufferedMutatorIOExceptionpublic void mutate(List<? extends org.apache.hadoop.hbase.client.Mutation> mutations) throws IOException
mutate in interface org.apache.hadoop.hbase.client.BufferedMutatorIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface org.apache.hadoop.hbase.client.BufferedMutatorIOExceptionpublic void flush()
throws IOException
flush in interface org.apache.hadoop.hbase.client.BufferedMutatorIOExceptionpublic long getWriteBufferSize()
getWriteBufferSize in interface org.apache.hadoop.hbase.client.BufferedMutatorCopyright © 2024. All rights reserved.