Class QueryResultHandler

java.lang.Object
org.apache.drill.exec.rpc.user.QueryResultHandler

public class QueryResultHandler extends Object
Encapsulates the future management of query submissions. This entails a potential race condition. Normal ordering is:
  • 1. Submit query to be executed.
  • 2. Receive QueryHandle for buffer management.
  • 3. Start receiving results batches for query.
However, 3 could potentially occur before 2. Because of that, we need to handle this case and then do a switcheroo.