/** * Describes one cassandra column * @param \Cassandra\Column $col * @param \Cassandra\Column | null $prevCol * @param string $tableName * @param string $keyspaceName * @return \Phalcon\Db\ColumnInterface */ protected function _describeColumn(BaseColumn $col, $prevCol, $tableName, $keyspaceName) { $name = $col->name(); $def = ['reversed' => $col->isReversed(), 'static' => $col->isStatic(), 'frozen' => $col->isFrozen()]; list($def['primary'], $def['partitionKey'], $def['clusteringKey']) = $this->_getColumnKeyData($name, $tableName, $keyspaceName); list($def['type'], $def['bindType'], $def['isNumeric']) = $this->_getColumnTypeData($col->type()); if ($prevCol instanceof BaseColumn) { $def['after'] = $prevCol->name(); } else { $def['first'] = true; } return new CColumn($name, $def); }