Writing java output plugin and need to convert values into the user-specified codec. Maybe JSON, AVRO.
Question is can I use existing ruby written codec or need to create my own?
Even if we have written java codec then how we can use into output java plugin?
sample code
@Override
public void output(final Collection<Event> events) {
Iterator<Event> z = events.iterator();
while (z.hasNext() && !stopped) {
//How to use existing or newly created java codec here. Ex. Json, Avro
}
}