Skip to content

Instantly share code, notes, and snippets.

@moonpolysoft
Created April 9, 2010 03:19
Show Gist options
  • Save moonpolysoft/360866 to your computer and use it in GitHub Desktop.
Save moonpolysoft/360866 to your computer and use it in GitHub Desktop.
protected def ![A <: ColumnContainer](implicit consistency : ReadConsistency) : Seq[(String, Seq[A])] = {
ks.pool.withConnection { conn =>
val results = conn.client.get_range_slices(ks.name,
cp,
predicate,
range,
consistency.thrift)
results.map { ks =>
(ks.key, ks.columns.map{ container => new A(container)})
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment