diana-hep / spark-root

Apache Spark Data Source for ROOT File Format
Apache License 2.0
29 stars 18 forks source link

Proper Template Arguments synthesis #1

Closed vkhristenko closed 7 years ago

vkhristenko commented 7 years ago

just a re won't be sufficient for complex nested class declarations!

          logger.debug(s"Synthesizing the current class arguments: ${classTypeString}")
          val mapTemplateRE = "(.*?),(.*?)".r
          val (keyTypeString, valueTypeString) = argumentsTypeString match {
            case mapTemplateRE(aaa,bbb) => (aaa,bbb)
            case _ => (null, null)
          }  
vkhristenko commented 7 years ago

supported as of 0.1.8

note: only key/value arguments are used, the rest are ignored