reset json parser status on each record

This commit is contained in:
Enrico Ottonello 2020-07-24 01:48:17 +02:00
parent b29b4e1fd7
commit 11e00c806d
1 changed files with 3 additions and 0 deletions

View File

@ -100,6 +100,9 @@ public class RunSPARQLQueryService {
if (isCollection) { if (isCollection) {
parser.setCollection(true); parser.setCollection(true);
} }
else {
parser.setCollection(false);
}
String bufferedRecord = recordWriter.toString(); String bufferedRecord = recordWriter.toString();
int size = parser.parse(bufferedRecord); int size = parser.parse(bufferedRecord);
log.debug("json elements: "+size); log.debug("json elements: "+size);