For the following map, what would the hint be:
@ForwardedField(“f0->f1”) // Correct?
public class Tuplator extends FlatMapBase<GenericRecord, Tuple2<Void, GenericRecord>>
{
/**
*
*/
private static final long serialVersionUID = 4443299154253252672L;
public Tuplator(
SerializableAvroRecordBuilder avroRecordBuilder){
super(avroRecordBuilder);
}
@Override
public void flatMap(GenericRecord value, Collector<Tuple2<Void, GenericRecord>> out) throws Exception
{
out.collect(new Tuple2<Void, GenericRecord>(null, value));
}
}
Given the input is not a tuple, can I even still use hints?
Billy Newport
Data Architecture, Goldman Sachs & Co.
30 Hudson | 37th Floor | Jersey City, NJTel: <a href="tel:(212)%20855-7773" value="+12128557773" target="_blank">+1 (212) 8557773 | Cell: <a href="tel:(507)%20254-0134" value="+15072540134" target="_blank">+1 (507) 254-0134
Email: [hidden email], KD2DKQ
Free forum by Nabble | Edit this page |