Permalink
Browse files

Added MultiPath class for multi key queries

  • Loading branch information...
1 parent 0c207e1 commit ce0aeb20c127f5a5c35e3d43ac53cf6eb92cd6fe @lautis lautis committed Nov 10, 2009
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/main/scala/com/nodeta/scalandra/Path.scala
@@ -60,3 +60,11 @@ case class ColumnPath[A, B](override val columnFamily : String, override val key
object ColumnPath {
def apply[B](columnFamily : String, key : String, column : B) : ColumnPath[B, B] = apply(columnFamily, key, None, column)
}
+
+case class MultiPath[A, B](columnFamily : String, keys : Iterable[String], superColumn : Option[A], column : Option[B]) {
+ def this(columnFamily : String, key : Iterable[String]) = this(columnFamily, key, None, None)
+}
+
+object MultiPath {
+ def apply[A, B](columnFamily : String, keys : Iterable[String]) : MultiPath[A, B] = this(columnFamily, keys, None, None)
+}

0 comments on commit ce0aeb2

Please sign in to comment.