Skip to content

Instantly share code, notes, and snippets.

@codahale
Forked from moonpolysoft/gist:360866
Created April 9, 2010 03:29
Show Gist options
  • Save codahale/360871 to your computer and use it in GitHub Desktop.
Save codahale/360871 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