public function getFollowStream($cutoff_time, $limit) { $a=array(); $id=$this->_id; if ($cutoff_time) $t="AND TIMESTAMP < '". HypertableConnection::format_timestamp_ns($cutoff_time)."' "; else $t=''; $result=HypertableConnection::query("SELECT follow_stream FROM user ". "WHERE ROW='$id' $t CELL_LIMIT $limit"); if (!$result or !count($result->cells)) return $a; foreach ($result->cells as $cell) { array_push($a, TweetTable::load($cell->value)); } $this->_cutoff=$result->cells[count($result->cells)-1]->key->timestamp; return $a; }