Search in sources :

Example 6 with HeapItem

use of com.actiontech.dble.backend.mysql.nio.handler.util.HeapItem in project dble by actiontech.

the class MultiNodeMergeHandler method execute.

public void execute() throws Exception {
    synchronized (exeHandlers) {
        if (terminate.get())
            return;
        for (BaseSelectHandler exeHandler : exeHandlers) {
            MySQLConnection exeConn = exeHandler.initConnection();
            if (exeConn != null) {
                exeConn.setComplexQuery(true);
                queues.put(exeConn, new LinkedBlockingQueue<HeapItem>(queueSize));
                exeHandler.execute(exeConn);
            }
        }
    }
}
Also used : HeapItem(com.actiontech.dble.backend.mysql.nio.handler.util.HeapItem) MySQLConnection(com.actiontech.dble.backend.mysql.nio.MySQLConnection)

Aggregations

HeapItem (com.actiontech.dble.backend.mysql.nio.handler.util.HeapItem)6 MySQLConnection (com.actiontech.dble.backend.mysql.nio.MySQLConnection)4 RowDataPacket (com.actiontech.dble.net.mysql.RowDataPacket)3 BlockingQueue (java.util.concurrent.BlockingQueue)3 LinkedBlockingQueue (java.util.concurrent.LinkedBlockingQueue)3 ArrayMinHeap (com.actiontech.dble.backend.mysql.nio.handler.util.ArrayMinHeap)2 ConcurrentHashMap (java.util.concurrent.ConcurrentHashMap)2 BackendConnection (com.actiontech.dble.backend.BackendConnection)1 MySQLOutPutException (com.actiontech.dble.plan.common.exception.MySQLOutPutException)1 IOException (java.io.IOException)1