@Override
    public Iterator<Map.Entry<Field, FieldValue>> iterator() {
        return content.iterator();
    }
This is an approximation of serialized size. We just set it to 4096 as a definition of a medium document.
@return Approximate size of document (4096)
document/src/main/java/com/yahoo/document/Document.java