K - The type of key to query.V - The type of value to in the results.public static class QueryEventFactory.EmptyQueryEventFactory<K,V> extends java.lang.Object implements QueryEventFactory<K,V>
QueryEventFactory.EmptyQueryEventFactory<K,V>| Constructor and Description |
|---|
QueryEventFactory.EmptyQueryEventFactory() |
| 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.
|
public QueryEventFactory.EmptyQueryEventFactory()
public <E extends Event> com.google.common.base.Optional<E> startEvent(K key)
QueryEventFactorystartEvent in interface QueryEventFactory<K,V>E - the type of event.key - the key being queried.public <E extends Event> com.google.common.base.Optional<E> progressEvent(K key, double progress)
QueryEventFactoryprogressEvent in interface QueryEventFactory<K,V>E - the type of event.key - the key being queried.progress - a representation of the progress of the delete operation.public <E extends Event> com.google.common.base.Optional<E> endEvent(K key, QueryResult<V> values)
QueryEventFactoryendEvent in interface QueryEventFactory<K,V>E - the type of event.key - the key being queried.values - the QueryResult of the query operation.public <E extends Event> com.google.common.base.Optional<E> exceptionEvent(K key, QueryException exception)
QueryEventFactoryexceptionEvent in interface QueryEventFactory<K,V>E - the type of eventkey - the key being queried.exception - the QueryException raised while querying the key at a Chunk.