K - The type of key to query.V - The type of value to in the results.public interface QueryEventFactory<K,V> extends EventFactory<K,V>
| Modifier and Type | Interface and Description |
|---|---|
static class |
QueryEventFactory.EmptyQueryEventFactory<K,V>
An empty implementation of the QueryEventFactory interface.
|
| Modifier and Type | Method and Description |
|---|---|
<E extends Event> |
endEvent(K key,
QueryResult<V> values)
Generate an end event for querying the given key with the given QueryResult.
|
<E extends Event> |
exceptionEvent(K key,
QueryException exception)
Generate an exception event for querying the given key.
|
<E extends Event> |
progressEvent(K key,
double progress)
Generate a progress event for querying the given key.
|
<E extends Event> |
startEvent(K key)
Generate a start event for querying the given key.
|
<E extends Event> com.google.common.base.Optional<E> startEvent(K key)
E - the type of event.key - the key being queried.<E extends Event> com.google.common.base.Optional<E> progressEvent(K key, double progress)
E - the type of event.key - the key being queried.progress - a representation of the progress of the delete operation.<E extends Event> com.google.common.base.Optional<E> endEvent(K key, QueryResult<V> values)
E - the type of event.key - the key being queried.values - the QueryResult of the query operation.<E extends Event> com.google.common.base.Optional<E> exceptionEvent(K key, QueryException exception)
E - the type of eventkey - the key being queried.exception - the QueryException raised while querying the key at a Chunk.