K
- The type of key to update.V
- The type of value to update.public static class UpdateEventFactory.EmptyUpdateEventFactory<K,V> extends java.lang.Object implements UpdateEventFactory<K,V>
UpdateEventFactory.EmptyUpdateEventFactory<K,V>
Constructor and Description |
---|
UpdateEventFactory.EmptyUpdateEventFactory() |
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.
|
public UpdateEventFactory.EmptyUpdateEventFactory()
public <E extends Event> com.google.common.base.Optional<E> startEvent(K key, V value)
UpdateEventFactory
startEvent
in interface UpdateEventFactory<K,V>
E
- the type of event.key
- the key being updated.value
- the value to update with.public <E extends Event> com.google.common.base.Optional<E> progressEvent(K key, V value, double progress)
UpdateEventFactory
progressEvent
in interface UpdateEventFactory<K,V>
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.public <E extends Event> com.google.common.base.Optional<E> endEvent(K key, V value, int numValuesUpdated)
UpdateEventFactory
endEvent
in interface UpdateEventFactory<K,V>
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.public <E extends Event> com.google.common.base.Optional<E> exceptionEvent(K key, V value, UpdateException exception)
UpdateEventFactory
exceptionEvent
in interface UpdateEventFactory<K,V>
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.