Docs: Add javadocs to the client-side aggregation APIs.