public class RawBatchConverter extends Object
| Constructor and Description |
|---|
RawBatchConverter() |
| Modifier and Type | Method and Description |
|---|---|
static List<org.apache.commons.lang3.tuple.ImmutableTriple<org.apache.pulsar.client.api.MessageId,String,Integer>> |
extractIdsAndKeysAndSize(RawMessage msg) |
static boolean |
isReadableBatch(RawMessage msg) |
static Optional<RawMessage> |
rebatchMessage(RawMessage msg,
BiPredicate<String,org.apache.pulsar.client.api.MessageId> filter)
Take a batched message and a filter, and returns a message with the only the sub-messages
which match the filter.
|
public static boolean isReadableBatch(RawMessage msg)
public static List<org.apache.commons.lang3.tuple.ImmutableTriple<org.apache.pulsar.client.api.MessageId,String,Integer>> extractIdsAndKeysAndSize(RawMessage msg) throws IOException
IOExceptionpublic static Optional<RawMessage> rebatchMessage(RawMessage msg, BiPredicate<String,org.apache.pulsar.client.api.MessageId> filter) throws IOException
IOExceptionCopyright © 2017–2022 Apache Software Foundation. All rights reserved.