Package io.zeebe.msgpack.filter
Class MapValueWithKeyFilter
- java.lang.Object
-
- io.zeebe.msgpack.filter.MapValueWithKeyFilter
-
- All Implemented Interfaces:
MsgPackFilter
public final class MapValueWithKeyFilter extends Object implements MsgPackFilter
Only works for maps that have scalar values as keys
-
-
Field Summary
Fields Modifier and Type Field Description static intNO_MATCHING_VALUE
-
Constructor Summary
Constructors Constructor Description MapValueWithKeyFilter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidencodeDynamicContext(org.agrona.MutableDirectBuffer contextBuffer, String key)static voidencodeDynamicContext(org.agrona.MutableDirectBuffer contextBuffer, org.agrona.DirectBuffer keyBuffer, int keyOffset, int keyLength)booleanmatches(MsgPackTraversalContext ctx, org.agrona.DirectBuffer filterContext, MsgPackToken value)If the context has elements, the cursor is guaranteed to be on the last element when this method is invoked.
-
-
-
Field Detail
-
NO_MATCHING_VALUE
public static final int NO_MATCHING_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
matches
public boolean matches(MsgPackTraversalContext ctx, org.agrona.DirectBuffer filterContext, MsgPackToken value)
Description copied from interface:MsgPackFilterIf the context has elements, the cursor is guaranteed to be on the last element when this method is invoked.- Specified by:
matchesin interfaceMsgPackFilter
-
encodeDynamicContext
public static void encodeDynamicContext(org.agrona.MutableDirectBuffer contextBuffer, org.agrona.DirectBuffer keyBuffer, int keyOffset, int keyLength)
-
encodeDynamicContext
public static void encodeDynamicContext(org.agrona.MutableDirectBuffer contextBuffer, String key)
-
-