-
-
Save codahale/360871 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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