@Override
    public void clear() {
        content.clear();
    }
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