public function getColumnByIndex($index)
    {
        if(!isset($this->columns[$index])){
            throw new Exception(sprintf("Column index %s is not valid",$index));
        }
        return $this->columns[$index];
    }