Google cloud platform Google数据流写入不正常

Google cloud platform Google数据流写入不正常,google-cloud-platform,google-cloud-dataflow,Google Cloud Platform,Google Cloud Dataflow,我有一个pcollection我在调试模式下检查了函数,输入在这里的代码中是有序的,或者在我看不到您在哪里应用了Top转换。你能告诉我你在哪里申请吗? public class StringFormatResult extends DoFn<List<KV<String, Long>>, String> { @Override public void processElement(ProcessContext context) {

我有一个
pcollection我在调试模式下检查了函数,输入在这里的代码中是有序的,或者在我看不到您在哪里应用了
Top
转换。你能告诉我你在哪里申请吗?
public class StringFormatResult extends DoFn<List<KV<String, Long>>, String> {    

    @Override
    public void processElement(ProcessContext context) {
        for (KV<String, Long> item : context.element()) {
            context.output(item.getKey() + " | " + item.getValue());
        }
    }
} 



p.apply(TextIO.Read.named("ReadLines").from(options.getInputFile()))
     .apply("Word counter phase",new WordCounter())     
     .apply(TextIO.Write.named("WriteCounts").to(options.getOutputFile()).withoutSharding());

    p.run();