Код: Выделить всё
public class Incident implements Serializable {
private Integer incidentId;
private String appId;
private Long minutes;
// getter setter
}
Код: Выделить всё
PCollection incidents = pipeline.apply("Create Empty Collection", Create.empty(TypeDescriptor.of(KV.class)))
.setTypeDescriptor(TypeDescriptor.of(KV.class, String.class, Incident.class));
Код: Выделить всё
Cannot resolve method 'of(Class, Class, Class)'Подробнее здесь: https://stackoverflow.com/questions/784 ... ing-object