JSONArray jsonInterval = row.optJSONArray("value");
long min = 0;
long max = -1;
if( null != jsonInterval && jsonInterval.length() >= 2 ){
min = jsonInterval.optLong(0);
max = jsonInterval.optLong(1);
}
if( null != docId && max >= min ){
Interval interval = new Interval(min,max);
DocumentWithInterval docWithInt = new DocumentWithInterval(docId, interval);
results.documentWithIntervals.add(docWithInt);