Class ConditionalWriterImpl
java.lang.Object
org.apache.accumulo.core.clientImpl.ConditionalWriterImpl
- All Implemented Interfaces:
AutoCloseable,ConditionalWriter
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.accumulo.core.client.ConditionalWriter
ConditionalWriter.Result, ConditionalWriter.Status -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()release any resources (like threads pools) used by conditional writerwrite(Iterator<ConditionalMutation> mutations) This method returns one result for each mutation passed to it.write(ConditionalMutation mutation) This method has the same thread safety guarantees asConditionalWriter.write(Iterator)
-
Method Details
-
write
Description copied from interface:ConditionalWriterThis method returns one result for each mutation passed to it. This method is thread safe. Multiple threads can safely use a single conditional writer. Sharing a conditional writer between multiple threads may result in batching of request to tablet servers.- Specified by:
writein interfaceConditionalWriter- Returns:
- Result for each mutation submitted. The mutations may still be processing in the background when this method returns, if so the iterator will block.
-
getConfig
-
write
Description copied from interface:ConditionalWriterThis method has the same thread safety guarantees asConditionalWriter.write(Iterator)- Specified by:
writein interfaceConditionalWriter- Returns:
- Result for the submitted mutation
-
close
public void close()Description copied from interface:ConditionalWriterrelease any resources (like threads pools) used by conditional writer- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceConditionalWriter
-