(codec CompressionCodec)
| 283 | } |
| 284 | |
| 285 | func 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 | |
| 292 | func javaConsumerArgs(topic string, startOffset int64, count int) []string { |
| 293 | args := make([]string, 0, 12) |
no test coverage detected