Ah, got it. You can actually get around this by passing `new PairFlatMapFunction`; when seeing that function type, `flatMap` will return a `JavaPairRDD`.