UNPKG

sqmicro-streams

Version:

SQ micro streams.

17 lines (13 loc) 323 B
module.exports = class MyBuffer { get size() { return this.rows.size; } constructor() { this.refreshKeys = new Set(); this.rows = new Set(); } write(event) { if (event.refreshKey) { this.refreshKeys.add(event.key); } this.rows.add(event.row); } };