private static class TypeManager.SkipFieldsEventSink extends java.lang.Object implements IEventSink
| Modifier and Type | Field and Description |
|---|---|
private java.lang.Object[] |
reusableStruct |
private java.util.List<java.lang.Integer> |
skipFields |
private IEventSink |
subSink |
| Constructor and Description |
|---|
SkipFieldsEventSink(IEventSink subSink,
java.util.List<java.lang.Integer> skipFields,
int fieldCount) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEvent(java.lang.Object[] fieldValues)
Add a new event to the sink for processing.
|
private final IEventSink subSink
private final java.util.List<java.lang.Integer> skipFields
private final java.lang.Object[] reusableStruct
SkipFieldsEventSink(IEventSink subSink, java.util.List<java.lang.Integer> skipFields, int fieldCount)
public void addEvent(java.lang.Object[] fieldValues)
IEventSink
The implementation should have one or more subsinks created during the
IEventSinkFactory.create call. Call addEvent on a subsink to continue the processing of the
event. Note that the passed on value array must match the data structure used by the subsink.
If no addEvent call is made to a subsink, then the event will be effectively filtered
out.
addEvent calls to subsinks may be delayed until later calls of this method or in an
implementation specific flush method that can be called by IEventSinkFactory.flush.
addEvent in interface IEventSinkfieldValues - Event values. The order and data type of the values must match the
dataStructure parameter to the
IEventSinkFactory.create call.