org.apache.accumulo.core.client
Class ConditionalWriter.Result

java.lang.Object
  extended by org.apache.accumulo.core.client.ConditionalWriter.Result
Enclosing interface:
ConditionalWriter

public static class ConditionalWriter.Result
extends Object


Constructor Summary
ConditionalWriter.Result(ConditionalWriter.Status s, ConditionalMutation m, String server)
           
ConditionalWriter.Result(Exception e, ConditionalMutation cm, String server)
           
 
Method Summary
 ConditionalMutation getMutation()
           
 ConditionalWriter.Status getStatus()
          If this method throws an exception, then its possible the mutation is still being actively processed.
 String getTabletServer()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConditionalWriter.Result

public ConditionalWriter.Result(ConditionalWriter.Status s,
                                ConditionalMutation m,
                                String server)

ConditionalWriter.Result

public ConditionalWriter.Result(Exception e,
                                ConditionalMutation cm,
                                String server)
Method Detail

getStatus

public ConditionalWriter.Status getStatus()
                                   throws AccumuloException,
                                          AccumuloSecurityException
If this method throws an exception, then its possible the mutation is still being actively processed. Therefore if code chooses to continue after seeing an exception it should take this into consideration.

Returns:
status of a conditional mutation
Throws:
AccumuloException
AccumuloSecurityException

getMutation

public ConditionalMutation getMutation()
Returns:
A copy of the mutation previously submitted by a user. The mutation will reference the same data, but the object may be different.

getTabletServer

public String getTabletServer()
Returns:
The server this mutation was sent to. Returns null if was not sent to a server.


Copyright © 2015 Apache Accumulo Project. All rights reserved.