MCPcopy
hub / github.com/IBM/sarama / javaProducerCompressionArgs

Function javaProducerCompressionArgs

functional_java_interop_test.go:285–290  ·  view source on GitHub ↗
(codec CompressionCodec)

Source from the content-addressed store, hash-verified

283}
284
285func javaProducerCompressionArgs(codec CompressionCodec) []string {
286 if kafkaVersionAtLeast("0.10.0") {
287 return []string{"--producer-property", fmt.Sprintf("compression.type=%s", codec.String())}
288 }
289 return []string{"--compression-codec", codec.String()}
290}
291
292func javaConsumerArgs(topic string, startOffset int64, count int) []string {
293 args := make([]string, 0, 12)

Callers 1

javaProducerArgsFunction · 0.85

Calls 2

kafkaVersionAtLeastFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected