use of org.apache.drill.exec.proto.UserProtos.RunQuery in project drill by apache.
the class DrillClient method executePreparedStatement.
/**
* Execute the given prepared statement.
*
* @param preparedStatementHandle Prepared statement handle returned in response to
* {@link #createPreparedStatement(String)}.
* @param resultsListener {@link UserResultsListener} instance for listening for query results.
*/
public void executePreparedStatement(final PreparedStatementHandle preparedStatementHandle, final UserResultsListener resultsListener) {
final RunQuery runQuery = newBuilder().setResultsMode(STREAM_FULL).setType(QueryType.PREPARED_STATEMENT).setPreparedStatementHandle(preparedStatementHandle).build();
client.submitQuery(resultsListener, runQuery);
}
Aggregations