I am trying to create my customized ScriptEngine. In my case my data like
{
"body": "a b c a"
}
{
"body": "a b a a"
}
I want to access the body value "a b a a" during the ScoreScript.execute process. How I can do that?
private static class PureDfLeafFactory implements LeafFactory {
@Override
public ScoreScript newInstance(LeafReaderContext context)
throws IOException {
// is the any way to access field `body`'s value here
}
}