public interface ResultListener extends Serializable
Modifier and Type | Method and Description |
---|---|
void |
acceptResult(ResultProducer rp,
Object[] key,
Object[] result)
Accepts results from a ResultProducer.
|
String[] |
determineColumnConstraints(ResultProducer rp)
Determines if there are any constraints (imposed by the
destination) on additional result columns to be produced by
resultProducers.
|
boolean |
isResultRequired(ResultProducer rp,
Object[] key)
Determines whether the results for a specified key must be
generated.
|
void |
postProcess(ResultProducer rp)
Perform any postprocessing.
|
void |
preProcess(ResultProducer rp)
Prepare for the results to be received.
|
String[] determineColumnConstraints(ResultProducer rp) throws Exception
rp
- the ResultProducer to which the constraints will applyException
- if an error occursvoid preProcess(ResultProducer rp) throws Exception
rp
- the ResultProducer that will generate the resultsException
- if an error occurs during preprocessing.void postProcess(ResultProducer rp) throws Exception
rp
- the ResultProducer that generated the resultsException
- if an error occursvoid acceptResult(ResultProducer rp, Object[] key, Object[] result) throws Exception
rp
- the ResultProducer that generated the resultskey
- an array of Objects (Strings or Doubles) that uniquely
identify a result for a given ResultProducer with given compatibilityStateresult
- the results stored in an array. The objects stored in
the array may be Strings, Doubles, or null (for the missing value).Exception
- if the result could not be accepted.boolean isResultRequired(ResultProducer rp, Object[] key) throws Exception
rp
- the ResultProducer wanting to generate the resultskey
- an array of Objects (Strings or Doubles) that uniquely
identify a result for a given ResultProducer with given compatibilityStateException
- if it could not be determined if the result
is needed.Copyright © 2019 University of Waikato, Hamilton, NZ. All rights reserved.