org.apache.accumulo.core.client.impl
Class TabletServerBatchWriter

java.lang.Object
  extended by org.apache.accumulo.core.client.impl.TabletServerBatchWriter

public class TabletServerBatchWriter
extends Object


Constructor Summary
TabletServerBatchWriter(Instance instance, AuthInfo credentials, long maxMemory, long maxLatency, int numSendThreads)
           
 
Method Summary
 void addMutation(String table, Iterator<Mutation> iterator)
           
 void addMutation(String table, Mutation m)
           
 void close()
           
 void flush()
           
 void updateBinningStats(int count, long time, Map<String,TabletLocator.TabletServerMutations> binnedMutations)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TabletServerBatchWriter

public TabletServerBatchWriter(Instance instance,
                               AuthInfo credentials,
                               long maxMemory,
                               long maxLatency,
                               int numSendThreads)
Method Detail

addMutation

public void addMutation(String table,
                        Mutation m)
                 throws MutationsRejectedException
Throws:
MutationsRejectedException

addMutation

public void addMutation(String table,
                        Iterator<Mutation> iterator)
                 throws MutationsRejectedException
Throws:
MutationsRejectedException

flush

public void flush()
           throws MutationsRejectedException
Throws:
MutationsRejectedException

close

public void close()
           throws MutationsRejectedException
Throws:
MutationsRejectedException

updateBinningStats

public void updateBinningStats(int count,
                               long time,
                               Map<String,TabletLocator.TabletServerMutations> binnedMutations)


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.