Пример #1
0
 protected override void Publish(Bytes key, byte[] valueAndTs)
 {
     if (valueAndTs != null)
     {
         (long ts, byte[] data) = ValueAndTimestampSerDes.Extract(valueAndTs);
         context.Log(Name, key, data, ts);
     }
     else
     {
         context.Log(Name, key, null, context.RecordContext.Timestamp);
     }
 }
Пример #2
0
 private void Publish(Bytes key, byte[] value)
 {
     if (value == null)
     {
         context.Log(Name, key, null, context.RecordContext.Timestamp);
     }
     else
     {
         (long ts, byte[] data) = ValueAndTimestampSerDes.Extract(value);
         context.Log(Name, key, data, ts);
     }
 }