presto-main/src/main/java/io/prestosql/dispatcher/LocalDispatchQuery.java/LocalDispatchQuery/cancel
class LocalDispatchQuery:    @Override
    public void cancel()
    {
        stateMachine.transitionToCanceled();
    }