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 StringgetParallelValueField()booleanhasParallelValueField()com.google.protobuf.MessageparseFrom(byte[] bytes)voidwithParallelValueField(String parallelField)
-
Constructor Details
-
Method Details
-
parseFrom
public com.google.protobuf.Message parseFrom(byte[] bytes) throws com.google.protobuf.InvalidProtocolBufferException- Specified by:
parseFromin interfaceProtobufParser- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
hasParallelValueField
public boolean hasParallelValueField()- Specified by:
hasParallelValueFieldin interfaceProtobufParser
-
withParallelValueField
- Specified by:
withParallelValueFieldin interfaceProtobufParser
-
getParallelValueField
- Specified by:
getParallelValueFieldin interfaceProtobufParser
-