GCP Dataflow 2.0 PubSub to GCS

后端 未结 2 2085
谎友^
谎友^ 2021-01-06 02:08

I\'m having a difficult time understanding the concepts of .withFileNamePolicy of TextIO.write(). The requirements for supplying a FileNamePolicy seem incredibly complex fo

2条回答
  •  没有蜡笔的小新
    2021-01-06 02:54

    In Beam currently the DefaultFilenamePolicy supports windowed writes, so there's no need to write a custom FilenamePolicy. You can control the output filename by putting W and P placeholders (for the window and pane respectively) in the filename template. This exists in the head beam repository, and will also be in the upcoming Beam 2.1 release (which is being released as we speak).

提交回复
热议问题