public interface PreparedQuery
Modifier and Type | Method and Description |
---|---|
CompiledTuple |
createArgumentTuple()
Factory for argument tuples for this prepared query.
|
void |
execute(CompiledTuple args,
RowConsumer consumer)
Run the query against a given set of arguments, and pass the results to
consumer |
CompiledTuple createArgumentTuple()
void execute(CompiledTuple args, RowConsumer consumer) throws StreamBaseException
consumer
args
- Tuple of arguments for this prepared query. This tuple must come from PreparedQuery.createArgumentTuple()
consumer
- A RowConsumer
that will be passed each row in the results of the query one by oneStreamBaseException
- If the query does not run properly, or if the consumer throws an exception