Package io.deephaven.kafka.protobuf
Class ProtobufConsumeOptions
java.lang.Object
io.deephaven.kafka.protobuf.ProtobufConsumeOptions
The kafka protobuf options. This will get the
protobuf descriptor
according to the descriptorProvider() and create message parsing
functions according to
ProtobufDescriptorParser.parse(Descriptor, ProtobufDescriptorParserOptions).-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interface -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()The builder.abstract DescriptorProviderThe descriptor provider.static ColumnNamejoinNamePathWithUnderscore(FieldPath path, int indexOccurrence) Joins the name paths with underscores, appendingindexOccurrence + 1ifindexOccurrence != 0.The descriptor parsing options.The function to turn field paths into column names.protocol()The protocol for decoding the payload.
-
Constructor Details
-
ProtobufConsumeOptions
public ProtobufConsumeOptions()
-
-
Method Details
-
builder
The builder.- Returns:
- the builder
-
joinNamePathWithUnderscore
Joins the name paths with underscores, appendingindexOccurrence + 1ifindexOccurrence != 0.- Parameters:
path- the pathindexOccurrence- the number of times this field path has been used- Returns:
- the underscore joined path names
-
descriptorProvider
The descriptor provider.- Returns:
- the descriptor provider
-
protocol
The protocol for decoding the payload. WhendescriptorProvider()is aDescriptorSchemaRegistry,Protocol.serdes()will be used by default; whendescriptorProvider()is aDescriptorMessageClass,Protocol.raw()will be used by default.- Returns:
- the payload protocol
-
parserOptions
The descriptor parsing options. By default, isProtobufDescriptorParserOptions.defaults().- Returns:
- the descriptor parsing options
-
pathToColumnName
The function to turn field paths into column names. By default, is the functionjoinNamePathWithUnderscore(FieldPath, int)}.- Returns:
- the function to create column names
-