K - The type of key to update.V - The type of value to update.public interface UpdateEventFactory<K,V> extends EventFactory<K,V>
| Modifier and Type | Interface and Description |
|---|---|
static class |
UpdateEventFactory.EmptyUpdateEventFactory<K,V>
An empty implementation of the UpdateEventFactory interface.
|
| Modifier and Type | Method and Description |
|---|---|
<E extends Event> |
endEvent(K key,
V value,
int numValuesUpdated)
Generate an end event for updating the given key with the given value.
|
<E extends Event> |
exceptionEvent(K key,
V value,
UpdateException exception)
Generate an exception event for updating the given key with the given value.
|
<E extends Event> |
progressEvent(K key,
V value,
double progress)
Generate a progress event for updating the given key with the given value.
|
<E extends Event> |
startEvent(K key,
V value)
Generate a start event for updating the given key with the given value.
|
<E extends Event> com.google.common.base.Optional<E> startEvent(K key, V value)
E - the type of event.key - the key being updated.value - the value to update with.<E extends Event> com.google.common.base.Optional<E> progressEvent(K key, V value, double progress)
E - the type of event.key - the key being updated.value - the value to update with.progress - a representation of the progress of the delete operation.<E extends Event> com.google.common.base.Optional<E> endEvent(K key, V value, int numValuesUpdated)
E - the type of event.key - the key being updated.value - the value to update with.numValuesUpdated - the number of values updated in the Chunk.<E extends Event> com.google.common.base.Optional<E> exceptionEvent(K key, V value, UpdateException exception)
E - the type of event.key - the key being updated.value - the value to update with.exception - the UpdateException raised while updated the key with the value at a Chunk.