Skip to content

Commit

Permalink
adding support for TObject - schema is fine, problems with reading
Browse files Browse the repository at this point in the history
  • Loading branch information
vkhristenko committed Dec 18, 2016
1 parent fa30747 commit 656a8ee
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/main/scala/org/dianahep/sparkroot/ast/ast.scala
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,27 @@ package object ast
if (streamerInfo==null) core.SRNull
else synthesizeStreamerInfo(b, streamerInfo, streamerElement, parentType)
}

// TODO: Retrieiving of TObject derived classes is not supported yet
// TObject
case 66 => {
// NOTE: get the typename
val streamerInfo = streamers.applyOrElse(streamerElement.getName,
(x: String) => null)
if (streamerInfo==null) core.SRNull
else synthesizeStreamerInfo(b, streamerInfo, streamerElement, parentType)
}
case 67 => {
// NOTE: get the typename
val streamerInfo = streamers.applyOrElse(streamerElement.getName,
(x: String) => null)
if (streamerInfo==null) core.SRNull
else synthesizeStreamerInfo(b, streamerInfo, streamerElement, parentType)
}
// TString
case 65 => core.SRString(streamerElement.getName, b,
if (b==null) null
else b.getLeaves.get(0).asInstanceOf[TLeafElement])
case 500 => synthesizeStreamerSTL(b, streamerElement.asInstanceOf[TStreamerSTL],
parentType)
case _ => core.SRNull
Expand Down

0 comments on commit 656a8ee

Please sign in to comment.