public interface ResultListener
extends java.io.Serializable
Modifier and Type | Method and Description |
---|---|
void |
acceptResult(ResultProducer rp,
java.lang.Object[] key,
java.lang.Object[] result)
Accepts results from a ResultProducer.
|
java.lang.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,
java.lang.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.
|
java.lang.String[] determineColumnConstraints(ResultProducer rp) throws java.lang.Exception
rp
- the ResultProducer to which the constraints will applyjava.lang.Exception
- if an error occursvoid preProcess(ResultProducer rp) throws java.lang.Exception
rp
- the ResultProducer that will generate the resultsjava.lang.Exception
- if an error occurs during preprocessing.void postProcess(ResultProducer rp) throws java.lang.Exception
rp
- the ResultProducer that generated the resultsjava.lang.Exception
- if an error occursvoid acceptResult(ResultProducer rp, java.lang.Object[] key, java.lang.Object[] result) throws java.lang.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).java.lang.Exception
- if the result could not be accepted.boolean isResultRequired(ResultProducer rp, java.lang.Object[] key) throws java.lang.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 compatibilityStatejava.lang.Exception
- if it could not be determined if the result
is needed.