@NotThreadSafe public interface EntityParser<E>
Modifier and Type | Interface and Description |
---|---|
static interface |
EntityParser.Builder<E>
Knows how to build
EntityParser s. |
Modifier and Type | Method and Description |
---|---|
E |
parse(Event event,
E reuse)
Parse a Kite entity from a Flume event
|
E parse(Event event, E reuse) throws EventDeliveryException, NonRecoverableEventException
event
- The event to parsereuse
- If non-null, this may be reused and returnedEventDeliveryException
- A recoverable error during parsing. Parsing
can be safely retried.NonRecoverableEventException
- A non-recoverable error during
parsing. The event must be discarded.Copyright © 2009-2018 Apache Software Foundation. All Rights Reserved.