Class ProtobufFunctionalParser
java.lang.Object
io.deephaven.kafka.ingest.protobuf.ProtobufFunctionalParser
- All Implemented Interfaces:
ProtobufParser
-
Constructor Summary
ConstructorsConstructorDescriptionProtobufFunctionalParser
(Function<byte[], com.google.protobuf.Message> protoConstructor) -
Method Summary
Modifier and TypeMethodDescriptionboolean
com.google.protobuf.Message
parseFrom
(byte[] bytes) void
withParallelValueField
(String parallelField)
-
Constructor Details
-
ProtobufFunctionalParser
-
-
Method Details
-
parseFrom
public com.google.protobuf.Message parseFrom(byte[] bytes) throws com.google.protobuf.InvalidProtocolBufferException - Specified by:
parseFrom
in interfaceProtobufParser
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
hasParallelValueField
public boolean hasParallelValueField()- Specified by:
hasParallelValueField
in interfaceProtobufParser
-
withParallelValueField
- Specified by:
withParallelValueField
in interfaceProtobufParser
-
getParallelValueField
- Specified by:
getParallelValueField
in interfaceProtobufParser
-