public class TriggerExecutor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static TriggerExecutor |
instance |
Modifier and Type | Method and Description |
---|---|
ColumnFamily |
execute(java.nio.ByteBuffer key,
ColumnFamily updates)
Augment a partition update by executing triggers to generate an intermediate
set of mutations, then merging the ColumnFamily from each mutation with those
supplied.
|
java.util.Collection<RowMutation> |
execute(java.util.Collection<? extends IMutation> mutations)
Takes a collection of mutations and possibly augments it by adding extra mutations
generated by configured triggers.
|
ITrigger |
loadTriggerInstance(java.lang.String triggerName) |
void |
reloadClasses()
Reload the triggers which is already loaded, Invoking this will update
the class loader so new jars can be loaded.
|
public static final TriggerExecutor instance
public void reloadClasses()
public ColumnFamily execute(java.nio.ByteBuffer key, ColumnFamily updates) throws InvalidRequestException
key
- partition key for the updateupdates
- partition update to be applied, contains the merge of the original
update and any generated mutationsInvalidRequestException
- if any mutation generated by a trigger does not
apply to the exact same partition as the initial updatepublic java.util.Collection<RowMutation> execute(java.util.Collection<? extends IMutation> mutations) throws InvalidRequestException
mutations
- initial collection of mutationsInvalidRequestException
- if additional mutations were generated, but
the initial mutations contains counter updatespublic ITrigger loadTriggerInstance(java.lang.String triggerName) throws java.lang.Exception
java.lang.Exception
Copyright © 2015 The Apache Software Foundation