Reflect recent changes to Java API documentation

Adjust documentation to reflect Java API changes (interfaces instead of classes)
Aren't the fields 0-indexed? So `groupBy(1)` is the second field (String) ?