Google cloud platform 在谷歌云平台上,KV object和Map有什么区别

Google cloud platform 在谷歌云平台上,KV object和Map有什么区别,google-cloud-platform,apache-beam,Google Cloud Platform,Apache Beam,KV对象和Map对象之间的区别是什么?为什么我要创建Map的PCollection时必须使用KV对象 PCollection<KV<String, String>> createdPCollection = this.p.apply(Create.of(MapObject).withCoder(KvCoder.of(StringUtf8Coder.of(), StringUtf8Coder.of()))); PCollection createdPCollection=

KV对象和Map对象之间的区别是什么?为什么我要创建Map的PCollection时必须使用KV对象

PCollection<KV<String, String>> createdPCollection = this.p.apply(Create.of(MapObject).withCoder(KvCoder.of(StringUtf8Coder.of(), StringUtf8Coder.of())));
PCollection createdPCollection=this.p.apply(Create.of(MapObject).withCoder(KvCoder.of(StringUtf8Coder.of(),StringUtf8Coder.of()));

我们无法使用create.of(Map)创建地图的PCollection,它直接转换为KV对象,因此转换为KV对象的PCollection,但是我们可以使用create.of(List)创建地图的PCollection

非常感谢(y)