|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for objects able to listen for results obtained by a ResultProducer
Method Summary | |
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. |
Method Detail |
public String[] determineColumnConstraints(ResultProducer rp) throws Exception
rp
- the ResultProducer to which the constraints will apply
Exception
- if an error occurspublic void preProcess(ResultProducer rp) throws Exception
rp
- the ResultProducer that will generate the results
Exception
- if an error occurs during preprocessing.public void postProcess(ResultProducer rp) throws Exception
rp
- the ResultProducer that generated the results
Exception
- if an error occurspublic void 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.public 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 compatibilityState
Exception
- if it could not be determined if the result
is needed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |