/** * Loads a Column for key, maintaining parent binding * @param string $keyID optional row key * @param bool $colAutoCreate dummy interface, NULL * @param int $consistencyLevel cassandra consistency level * @return bool loaded OK */ public function load($keyID = NULL, $colAutoCreate = NULL, $consistencyLevel = NULL) { if ($keyID === NULL) { $keyID = $this->getKeyID(); } $ok = $this->pathOK($keyID); $this->setLoaded(FALSE); if ($ok) { $result = PandraCore::getColumn($this->getKeySpace(), $keyID === NULL ? $this->getKeyID() : $keyID, $this->getColumnFamilyName(), $this->getName(), $this->getSuperColumnName(), PandraCore::getConsistency($consistencyLevel)); if (!empty($result) && $result instanceof cassandra_ColumnOrSuperColumn) { $column = $result->column; $this->setValue($column->value); $this->bindTime($column->timestamp); $this->reset(); $this->setLoaded(TRUE); } else { $this->registerError(PandraCore::$lastError); } } return $ok && $this->isLoaded(); }