Commit 10643ff1 authored by Mohamed, Fawzi Roberto (fawzi)'s avatar Mohamed, Fawzi Roberto (fawzi)
Browse files

suppress warning in ElasticSearchData code

parent 0077f83e
......@@ -108,7 +108,7 @@ object ElasticSearchData extends StrictLogging {
def generateCountMap(extracted: Map[String, Any]): Map[String, Any] = {
extracted.map { entry =>
entry._2 match {
case subMap: Map[String, _] => entry._1 -> generateCountMap(subMap)
case subMap: Map[_, _] => entry._1 -> generateCountMap(subMap.asInstanceOf[Map[String, Any]])
case value: Seq[_] => entry._1 -> value.length
case _ => entry._1 -> 1
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment