MCPcopy Create free account
hub / github.com/IBM/sarama / javaProducerCompressionArgs

Function javaProducerCompressionArgs

functional_java_interop_test.go:287–292  ·  view source on GitHub ↗
(codec CompressionCodec)

Source from the content-addressed store, hash-verified

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

Callers 1

javaProducerArgsFunction · 0.85

Calls 2

kafkaVersionAtLeastFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected