ravendb
Version:
RavenDB client for Node.js
27 lines • 807 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.StreamValues = void 0;
const StreamBase_js_1 = require("./StreamBase.js");
class StreamValues extends StreamBase_js_1.StreamBase {
static make(options) {
return new StreamValues(options);
}
static streamValues = StreamValues.make;
_counter;
constructor(options = undefined) {
super(options);
this._counter = 0;
this._level = 0;
}
_push(discard) {
if (discard) {
++this._counter;
}
else {
this.push({ key: this._counter++, value: this._assembler.current });
}
this._assembler.current = this._assembler.key = null;
}
}
exports.StreamValues = StreamValues;
//# sourceMappingURL=StreamValues.js.map