@JsonCreator public KafkaFirehoseFactory( @JsonProperty("consumerProps") Properties consumerProps, @JsonProperty("feed") String feed, @JsonProperty("parser") ByteBufferInputRowParser parser) { this.consumerProps = consumerProps; this.feed = feed; this.parser = parser; parser.addDimensionExclusion("feed"); }
public InputRow parseMessage(Message message) throws FormattedException { return parser.parse(message.payload()); }