我有一个从DoFn继承的类。该类接受String []作为输入,并输出修改后的String []。它可以在任何运行程序(DirectRunner)上发挥作用,但是在我的单元测试中,我可以看到很多这样的警告:
Mar 02, 2019 8:27:49 AM org.apache.beam.sdk.util.MutationDetectors$CodedValueMutationDetector verifyUnmodifiedThrowingCheckedExceptions
WARNING: Coder of type class org.apache.beam.sdk.coders.SerializableCoder has a #structuralValue method which does not return true when the encoding of the elements is equal. Element [foo0, bar0]
Mar 02, 2019 8:27:49 AM org.apache.beam.sdk.util.MutationDetectors$CodedValueMutationDetector verifyUnmodifiedThrowingCheckedExceptions
所以问题是: -我应该自己为String []编写编码器吗 -或此类编码器已存在 -或者我做错了什么?
谢谢/