if (FORMAT_DELIMITED.equals(mFormat)) {
return new DelimitedEventParser(mParams);
} else if (FORMAT_AVRO.equals(mFormat)) {
return new AvroEventParser(mParams);
} else if (FORMAT_REGEX.equals(mFormat)) {
return new RegexEventParser(mParams);
}
LOG.error("No EventParser with format name: " + mFormat);
return null;
}