Пример #1
0
 /**
  * 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;
 }
Пример #2
0
 /**
  * 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);
 }