|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.accumulo.server.test.randomwalk.concurrent.BulkImport.RFileBatchWriter
public static class BulkImport.RFileBatchWriter
| Constructor Summary | |
|---|---|
BulkImport.RFileBatchWriter(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
String file)
|
|
| Method Summary | |
|---|---|
void |
addMutation(Mutation m)
Queues one mutation to write. |
void |
addMutations(Iterable<Mutation> iterable)
Queues several mutations to write. |
void |
close()
Flush and release any resources. |
void |
flush()
Send any buffered mutations to Accumulo immediately. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BulkImport.RFileBatchWriter(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
String file)
throws IOException
IOException| Method Detail |
|---|
public void addMutation(Mutation m)
throws MutationsRejectedException
BatchWriter
addMutation in interface BatchWriterm - the mutation to add
MutationsRejectedException - this could be thrown because current or previous mutations failed
public void addMutations(Iterable<Mutation> iterable)
throws MutationsRejectedException
BatchWriter
addMutations in interface BatchWriteriterable - allows adding any number of mutations iteratively
MutationsRejectedException - this could be thrown because current or previous mutations failed
public void flush()
throws MutationsRejectedException
BatchWriter
flush in interface BatchWriterMutationsRejectedException - this could be thrown because current or previous mutations failed
public void close()
throws MutationsRejectedException
BatchWriter
close in interface BatchWriterMutationsRejectedException - this could be thrown because current or previous mutations failed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||