Example #1
0
  @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");
  }
Example #2
0
 public InputRow parseMessage(Message message) throws FormattedException {
   return parser.parse(message.payload());
 }