public function load($id) { $result=HypertableConnection::query("SELECT * FROM tweet ". "WHERE ROW='$id'"); if (!$result or !count($result->cells)) return null; $tweet=new Tweet(); $tweet->setId($id); $tweet->setTimestamp($result->cells[0]->key->timestamp); $tweet->setMessage($result->cells[0]->value); return $tweet; }