Class BulkImport.RFileBatchWriter
- java.lang.Object
-
- org.apache.accumulo.test.randomwalk.concurrent.BulkImport.RFileBatchWriter
-
- All Implemented Interfaces:
AutoCloseable
,BatchWriter
- Enclosing class:
- BulkImport
public static class BulkImport.RFileBatchWriter extends Object implements BatchWriter
-
-
Constructor Summary
Constructors Constructor Description RFileBatchWriter(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, String file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMutation(Mutation m)
void
addMutations(Iterable<Mutation> iterable)
void
close()
void
flush()
-
-
-
Constructor Detail
-
RFileBatchWriter
public RFileBatchWriter(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, String file) throws IOException
- Throws:
IOException
-
-
Method Detail
-
addMutation
public void addMutation(Mutation m) throws MutationsRejectedException
- Specified by:
addMutation
in interfaceBatchWriter
- Throws:
MutationsRejectedException
-
addMutations
public void addMutations(Iterable<Mutation> iterable) throws MutationsRejectedException
- Specified by:
addMutations
in interfaceBatchWriter
- Throws:
MutationsRejectedException
-
flush
public void flush() throws MutationsRejectedException
- Specified by:
flush
in interfaceBatchWriter
- Throws:
MutationsRejectedException
-
close
public void close() throws MutationsRejectedException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceBatchWriter
- Throws:
MutationsRejectedException
-
-