Class TypeManager.SkipFieldsEventSink
- java.lang.Object
-
- org.openjdk.jmc.flightrecorder.internal.parser.v1.TypeManager.SkipFieldsEventSink
-
- All Implemented Interfaces:
IEventSink
- Enclosing class:
- TypeManager
private static class TypeManager.SkipFieldsEventSink extends java.lang.Object implements IEventSink
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Object[]reusableStructprivate java.util.List<java.lang.Integer>skipFieldsprivate IEventSinksubSink
-
Constructor Summary
Constructors Constructor Description SkipFieldsEventSink(IEventSink subSink, java.util.List<java.lang.Integer> skipFields, int fieldCount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEvent(java.lang.Object[] fieldValues)Add a new event to the sink for processing.
-
-
-
Field Detail
-
subSink
private final IEventSink subSink
-
skipFields
private final java.util.List<java.lang.Integer> skipFields
-
reusableStruct
private final java.lang.Object[] reusableStruct
-
-
Constructor Detail
-
SkipFieldsEventSink
SkipFieldsEventSink(IEventSink subSink, java.util.List<java.lang.Integer> skipFields, int fieldCount)
-
-
Method Detail
-
addEvent
public void addEvent(java.lang.Object[] fieldValues)
Description copied from interface:IEventSinkAdd a new event to the sink for processing. The sink may modify the event values as it sees fit.The implementation should have one or more subsinks created during the
IEventSinkFactory.createcall. 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
addEventcall is made to a subsink, then the event will be effectively filtered out.addEventcalls to subsinks may be delayed until later calls of this method or in an implementation specific flush method that can be called byIEventSinkFactory.flush.- Specified by:
addEventin interfaceIEventSink- Parameters:
fieldValues- Event values. The order and data type of the values must match thedataStructureparameter to theIEventSinkFactory.createcall.
-
-