void onNewSegment(int i, int j, int previousJ) {
        segments++;
        segmentStarts.add(j);
    }
Called when a new segment is started

@param previousJ the end of the previous segment, or -1 if this is the first segment
searchlib/src/main/java/com/yahoo/searchlib/ranking/features/fieldmatch/FieldMatchMetrics.java