Class ProtobufFunctionalParser
java.lang.Object
io.deephaven.kafka.ingest.protobuf.ProtobufFunctionalParser
- All Implemented Interfaces:
ProtobufParser
public class ProtobufFunctionalParser extends Object implements ProtobufParser
-
Constructor Summary
Constructors Constructor Description ProtobufFunctionalParser(Function<byte[],com.google.protobuf.Message> protoConstructor)
-
Method Summary
Modifier and Type Method Description String
getParallelValueField()
boolean
hasParallelValueField()
com.google.protobuf.Message
parseFrom(byte[] bytes)
void
withParallelValueField(String parallelField)
-
Constructor Details
-
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
-