/** * Adds a supercolumn object to this super cf, overwrites existing supercolumn * @param PandraSuperColumn $columnObj */ public function addColumnObj(PandraSuperColumn $columnObj) { if ($columnObj->getName() === NULL) { throw new RuntimeException('SuperColumn has no name'); } $this->_columns[$columnObj->getName()] = $columnObj; }
/** * Helper function to add a Super Column instance to this Super Column Family * @param PandraSuperColumn $scObj * @return PandraSuperColumn */ public function addSuper(PandraSuperColumn $scObj) { $superName = $scObj->getName(); $scObj->setParentCF($this); $this->_columns[$superName] = $scObj; return $this->getColumn($superName); }