Пример #1
0
 /**
  * Helper function to add a Super Column instance to this Super Column Family
  * addSuper overrides the parent container reference in the object instance
  * To add the same supercolumn instance to multiple columnfamilies, use object clones
  * instead.
  * @param PandraSuperColumn $scObj
  * @return PandraSuperColumn
  */
 public function addSuper(PandraSuperColumn $scObj)
 {
     $superName = $scObj->getName();
     if ($this->getType() == self::TYPE_UUID && !UUID::isBinary($scObj->getName())) {
         $scObj->setName(UUID::convert($scObj->getName(), UUID::UUID_FMT_BIN));
     }
     $scObj->setParent($this, false);
     $this->_columns[$superName] = $scObj;
     return $this->getColumn($superName);
 }