public class PrimitiveArrayColumnDataDecoder extends Object
| Constructor and Description |
|---|
PrimitiveArrayColumnDataDecoder(Class decoderClass,
Function<Object,Object> objMapper)
Create a new primitive array decoder wrapper for the given decoder type.
|
| Modifier and Type | Method and Description |
|---|---|
int |
decode(Object decoder,
org.agrona.concurrent.UnsafeBuffer directBuffer,
int bufferOffset,
int actingBlockLength,
int actingVersion,
long[] rowIndexes,
Object[] dataBuffer,
List<SimpleMessageHandlerListener> listenerList)
Decode a primitive array column data update message and pass along to any interested listeners.
|
public PrimitiveArrayColumnDataDecoder(Class decoderClass, Function<Object,Object> objMapper)
decoderClass - Decoder class to wrapobjMapper - Function to map a raw decoded array element value to an alternate type for notificationpublic int decode(Object decoder, org.agrona.concurrent.UnsafeBuffer directBuffer, int bufferOffset, int actingBlockLength, int actingVersion, long[] rowIndexes, Object[] dataBuffer, List<SimpleMessageHandlerListener> listenerList)
decoder - Decoder which can be used to extract the message from from the given bufferdirectBuffer - The underlying receive bufferbufferOffset - The offset in the given buffer at which to start decodingactingBlockLength - Block length from SBE header (pass to decoder wrap method)actingVersion - Version from SBE header (pass to decoder wrap method)rowIndexes - Array in which to write affected row indexesdataBuffer - Array in which to write the updated data (corresponding to the row indexes)listenerList - Listeners to notify