| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.flume.sink.solr.morphline.UUIDInterceptor
public class UUIDInterceptor
Flume Interceptor that sets a universally unique identifier on all events that are intercepted. By default this event header is named "id".
| Nested Class Summary | |
|---|---|
| static class | UUIDInterceptor.BuilderBuilder implementations MUST have a public no-arg constructor | 
| Field Summary | |
|---|---|
| static String | HEADER_NAME | 
| static String | PREFIX_NAME | 
| static String | PRESERVE_EXISTING_NAME | 
| Constructor Summary | |
|---|---|
| protected  | UUIDInterceptor(Context context) | 
| Method Summary | |
|---|---|
|  void | close()Perform any closing / shutdown needed by the Interceptor. | 
| protected  String | generateUUID() | 
| protected  String | getPrefix() | 
|  void | initialize()Any initialization / startup needed by the Interceptor. | 
|  Event | intercept(Event event)Interception of a single Event. | 
|  List<Event> | intercept(List<Event> events)Interception of a batch of events. | 
| protected  boolean | isMatch(Event event) | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final String HEADER_NAME
public static final String PRESERVE_EXISTING_NAME
public static final String PREFIX_NAME
| Constructor Detail | 
|---|
protected UUIDInterceptor(Context context)
| Method Detail | 
|---|
public void initialize()
Interceptor
initialize in interface Interceptorprotected String getPrefix()
protected String generateUUID()
protected boolean isMatch(Event event)
public Event intercept(Event event)
InterceptorEvent.
intercept in interface Interceptorevent - Event to be intercepted
null if the Event
 is to be dropped (i.e. filtered out).public List<Event> intercept(List<Event> events)
Interceptor
intercept in interface Interceptorevents - Input list of events
null. If all events are dropped,
 then an empty List is returned.public void close()
Interceptor
close in interface Interceptor| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||