public function testKeysCanBeFetchedByRange2()
 {
     $expected = array();
     $this->cassandra->truncate('user');
     for ($i = ord('a'); $i < ord('z'); $i++) {
         $testData = array('age' => 50, 'email' => 'test' . $i . '@test.com', 'name' => 'Test #' . $i);
         $this->cassandra->set('user.test-' . chr($i), $testData);
         $expected['test-' . chr($i)] = $testData;
     }
     $data = $this->cassandra->cf('user')->getKeyRange();
     $results = $data->getAll();
     $this->assertEquals($expected, $results);
 }
 /**
  * Removes an supercolumn entry or some columns of it.
  *
  * If the columns is left to null, the entire row is deleted.
  *
  * Uses the currently set row key, you can change it with key() method.
  *
  * You can remove a row by calling removeSuper() statically.
  *
  * @param array $columns Optional columns to delete
  * @param integer $consistency Option override of default consistency level
  * @return boolean Was removing the entry successful
  */
 public function deleteSuper($supercolumn, array $columns = null, $consistency = null)
 {
     $columnFamily = self::getColumnFamilyName();
     $this->_connection->cf($columnFamily)->remove($this->_key, $columns, $supercolumn, $consistency);
     return true;
 }