// with the regex /([^=]*)=(\\d*),(.*)/
Map<String, String> properties = new HashMap<String, String>();
properties.put("regex", "([^=]*)=(\\d*),(.*)");
Event event = new EventImpl("foo=42,this is a lovely record".getBytes());
EventParser parser = new RegexEventParser(properties);
parser.reset(event);
CharSequence field1 = (CharSequence) parser.getColumn(0,
Type.getPrimitive(Type.TypeName.STRING));