Package org.apache.accumulo.core.client
Class ConditionalWriter.Result
- java.lang.Object
-
- org.apache.accumulo.core.client.ConditionalWriter.Result
-
- Enclosing interface:
- ConditionalWriter
public static class ConditionalWriter.Result extends Object
-
-
Constructor Summary
Constructors Constructor Description Result(Exception e, ConditionalMutation cm, String server)
Result(ConditionalWriter.Status s, ConditionalMutation m, String server)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConditionalMutation
getMutation()
ConditionalWriter.Status
getStatus()
If this method throws an exception, then its possible the mutation is still being actively processed.String
getTabletServer()
-
-
-
Constructor Detail
-
Result
public Result(ConditionalWriter.Status s, ConditionalMutation m, String server)
-
Result
public 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.
-
-