|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.accumulo.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 BatchWriter
m
- the mutation to add
MutationsRejectedException
- this could be thrown because current or previous mutations failedpublic void addMutations(Iterable<Mutation> iterable) throws MutationsRejectedException
BatchWriter
addMutations
in interface BatchWriter
iterable
- allows adding any number of mutations iteratively
MutationsRejectedException
- this could be thrown because current or previous mutations failedpublic void flush() throws MutationsRejectedException
BatchWriter
flush
in interface BatchWriter
MutationsRejectedException
- this could be thrown because current or previous mutations failedpublic void close() throws MutationsRejectedException
BatchWriter
close
in interface BatchWriter
MutationsRejectedException
- 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 |