Sha256: 0f7a4aca5ecf45697a2ee5d0a5ae01b351d81e4c702481c7808cabc0056a43de
Contents?: true
Size: 472 Bytes
Versions: 8
Compression:
Stored size: 472 Bytes
Contents
module Streamingly class KV < Struct.new(:key, :value) def to_s [ SerDe.to_csv(key), SerDe.to_csv(value) ].join("\t") end # TODO: remove .strip from https://github.com/swipely/streamingly/blob/master/lib/streamingly/reducer.rb#L11 def strip self end # TODO: remove .split from https://github.com/swipely/streamingly/blob/master/lib/streamingly/reducer.rb#L28 def split(char="\t", limit=1) [key, value] end end end
Version data entries
8 entries across 8 versions & 1 rubygems