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 | 
void | 
execute(CompiledTuple args,
       TableAccessor table,
       RowConsumer consumer)  | 
boolean | 
isShareable()
whether it is safe to share this prepared query object with multiple threads which can execute it
 on different table instances
 
 Note that the tables MUST have the same definition 
 | 
CompiledTuple createArgumentTuple()
void execute(CompiledTuple args, RowConsumer consumer) throws StreamBaseException
consumerargs - 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 exceptionvoid execute(CompiledTuple args, TableAccessor table, RowConsumer consumer) throws StreamBaseException
StreamBaseExceptionboolean isShareable()