Search in sources :

Example 1 with UpdateStatementException

use of org.apache.rya.export.api.store.UpdateStatementException in project incubator-rya by apache.

the class AccumuloRyaStatementStore method updateStatement.

@Override
public void updateStatement(final RyaStatement original, final RyaStatement update) throws UpdateStatementException {
    try {
        removeStatement(original);
        addStatement(update);
    } catch (final AddStatementException | RemoveStatementException e) {
        throw new UpdateStatementException("Unable to update the Rya Statement", e);
    }
}
Also used : AddStatementException(org.apache.rya.export.api.store.AddStatementException) UpdateStatementException(org.apache.rya.export.api.store.UpdateStatementException) RemoveStatementException(org.apache.rya.export.api.store.RemoveStatementException)

Aggregations

AddStatementException (org.apache.rya.export.api.store.AddStatementException)1 RemoveStatementException (org.apache.rya.export.api.store.RemoveStatementException)1 UpdateStatementException (org.apache.rya.export.api.store.UpdateStatementException)1