V
- The type of value to insertK
- The type of key generated for the inserted value.public static class InsertEventFactory.EmptyInsertEventFactory<K,V> extends java.lang.Object implements InsertEventFactory<K,V>
InsertEventFactory.EmptyInsertEventFactory<K,V>
Constructor and Description |
---|
InsertEventFactory.EmptyInsertEventFactory() |
Modifier and Type | Method and Description |
---|---|
<E extends Event> |
endEvent(K key,
V value)
Generate an end event for inserting the given value with the given key.
|
<E extends Event> |
exceptionEvent(V value,
InsertException exception)
Generate an exception event for inserting the given value.
|
<E extends Event> |
progressEvent(V value,
double progress)
Generate a progress event for inserting the given value.
|
<E extends Event> |
startEvent(V value)
Generate a start event for inserting the given value.
|
public InsertEventFactory.EmptyInsertEventFactory()
public <E extends Event> com.google.common.base.Optional<E> startEvent(V value)
InsertEventFactory
startEvent
in interface InsertEventFactory<K,V>
E
- the type of eventvalue
- the value being insertedpublic <E extends Event> com.google.common.base.Optional<E> progressEvent(V value, double progress)
InsertEventFactory
progressEvent
in interface InsertEventFactory<K,V>
E
- the type of event.value
- the value being inserted.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)
InsertEventFactory
endEvent
in interface InsertEventFactory<K,V>
E
- the type of eventkey
- the key returned during the insert operation at which the value can be obtained later.value
- the value being insertedpublic <E extends Event> com.google.common.base.Optional<E> exceptionEvent(V value, InsertException exception)
InsertEventFactory
exceptionEvent
in interface InsertEventFactory<K,V>
E
- the type of eventvalue
- the value being insertedexception
- the InsertException raised while inserting the value to a Chunk.