Examples

Examples of the GET map function

In the following example, assume that the adapter is used in a GET function.

  • When the adapter is used to consume data:
    
    =GET("KAFKA","-SRV localhost:9092 -TP test3:0-0 -GID my-consumer-group -OCS manual -FMIB 52420 -FMAB 52428800-AOR none -IL read_committed -KHM bytes -VHM bytes -AJCM simple -DFM fail -OCRC 0 -QTY 1 -LSN S")
    
  • or:
    
    -SRV 192.168.56.102:9092 -TP test:0-0 -GID m4kafka -OCS manual -FMIB 1 -FMAB 52428800 -AOR latest -HDR 2 -ILread_committed -KHM bytes -VHM bytes -AJCM simple -DFM fail -OCRC 0 -QTY S -LSN 2
    
  • or:
    -SRV 192.168.56.102:9092 -TP test2:0-0 -GID m4kafka -OCS manual -FMIB 1 -FMAB 52428800 -AOR earliest -ILread_committed -KHM bytes -VHM bytes -AJCM simple -DFM fail -OCRC 0 -TV m4kafka.mtr -QTY S -LSN 2
    

Examples of the PUT map function

In the following example, assume that the adapter is used in a PUT function.

  • When the adapter is used to produce data:
    =PUT("KAFKA","-SRV localhost:9092 -TP test -ACK 1 -LM 1 -RET 0 -KHM bytes -VHM bytes",InputFile)
  • or:
    -SRV 192.168.56.102:9092 -TP test -ACK 1 -LM 1 -RET 0 -KHM bytes -VHM bytes
  • or:
    
    -SRV localhost:9092 -TP test -OCS manual -FMIB 1 -FMAB 52428800 -AOR earliest -IL read_committed -KHM bytes-VHM bytes -AJCM simple -DFM fail -OCRC 0 -QTY S -LSN 2
    
  • or:
    -SRV 192.168.56.102:9092 -TP test2 -ACK all