public String toStringDump() {
        try {
            StringBuilder b = new StringBuilder();
            for (Method m : this.getClass().getDeclaredMethods()) {
                if ( ! m.getName().startsWith("get")) continue;
                if (m.getReturnType() != Integer.TYPE && m.getReturnType() != Float.TYPE) continue;
                if ( m.getParameterTypes().length != 0 ) continue;

                Object value = m.invoke(this, new Object[0]);
                b.append(m.getName().substring(3, 4).toLowerCase() + m.getName().substring(4) + ": " + value + "\n");
            }
            return b.toString();
        }
        catch (Exception e) {
            throw new RuntimeException("Programming error", e);
        }
    }
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