Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- object Main {
- def main(args: Array[String]) {
- type ColumnInfo = Map[Int, String]
- case class TableConf(column : ColumnInfo,
- shards : Int)
- val conf : ColumnInfo = Map (
- 3 -> "c",
- 4 -> "d"
- )
- val config_map = Map (
- "file" -> TableConf(
- column = Map (
- 1 -> "a",
- 2 -> "b"
- ),
- shards = 5
- ),
- "file2" -> TableConf(conf , 7)
- )
- println(config_map("file"))
- println(config_map("file").shards)
- println(config_map("file").column(1))
- println(config_map("file2"))
- println(config_map("file2").shards)
- println(config_map("file2").column(3))
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement