com.baidubce.services.tablestoragehbaseclient.hbase
Class TablestorageBufferedMutator

java.lang.Object
  extended by com.baidubce.services.tablestoragehbaseclient.hbase.TablestorageBufferedMutator
All Implemented Interfaces:
Closeable, org.apache.hadoop.hbase.client.BufferedMutator

public class TablestorageBufferedMutator
extends Object
implements org.apache.hadoop.hbase.client.BufferedMutator

TablestorageBufferedMutator derived from org.apache.hadoop.hbase.client.BufferedMutator


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.client.BufferedMutator
org.apache.hadoop.hbase.client.BufferedMutator.ExceptionListener
 
Constructor Summary
TablestorageBufferedMutator(TablestorageConnection connection, org.apache.hadoop.hbase.TableName tableName)
          Construct a TablestorageBufferedMutator for the target table.
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TablestorageBufferedMutator

public TablestorageBufferedMutator(TablestorageConnection connection,
                                   org.apache.hadoop.hbase.TableName tableName)
Construct a TablestorageBufferedMutator for the target table.

Parameters:
connection - The connection used to construct this TablestorageBufferedMutator.
tableName - The name of the target table.
Method Detail

getName

public org.apache.hadoop.hbase.TableName getName()
Specified by:
getName in interface org.apache.hadoop.hbase.client.BufferedMutator

getConfiguration

public org.apache.hadoop.conf.Configuration getConfiguration()
Specified by:
getConfiguration in interface org.apache.hadoop.hbase.client.BufferedMutator

mutate

public void mutate(org.apache.hadoop.hbase.client.Mutation mutation)
            throws IOException
Specified by:
mutate in interface org.apache.hadoop.hbase.client.BufferedMutator
Throws:
IOException

mutate

public void mutate(List<? extends org.apache.hadoop.hbase.client.Mutation> mutations)
            throws IOException
Specified by:
mutate in interface org.apache.hadoop.hbase.client.BufferedMutator
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Specified by:
close in interface org.apache.hadoop.hbase.client.BufferedMutator
Throws:
IOException

flush

public void flush()
           throws IOException
Specified by:
flush in interface org.apache.hadoop.hbase.client.BufferedMutator
Throws:
IOException

getWriteBufferSize

public long getWriteBufferSize()
Specified by:
getWriteBufferSize in interface org.apache.hadoop.hbase.client.BufferedMutator


Copyright © 2020. All rights reserved.