private function postProcessResults($post_query, $results, $meta) {
        if(is_null($post_query)) {
            return $results;
        }

        $ret = [];
        switch($post_query[0]) {
            // Join up all results with a given key:value.
            case Token::C_TRANS:
                $key = $post_query[1];

                $ret_map = [];
                foreach($results as $result) {
                    if(!array_key_exists($key, $result)) {
                        continue;
                    }

                    $value = $result[$key];
                    if(!array_key_exists($value, $ret_map)) {
                        $ret_map[$value] = [];
                    }
                    $ret_map[$value] = array_merge($ret_map[$value], $result);
                }

                $ret = array_values($ret_map);
                break;
            default:
                throw new Exception('Unexpected command');
        }

        // If we wanted a count, generate it now.
        if($meta['count']) {
            $ret = ['count' => count($ret)];
        }

        return $ret;
    }