Page MenuHomeSealhub

query-not.ts
No OneTemporary

query-not.ts

import Query from "./query";
export default class Not extends Query {
constructor(query: Query) {
super();
this.addQuery(query);
}
addQuery(query: Query) {
const steps = query.dump();
this.steps.push(...steps);
}
dump() {
return this.steps.map((step) => step.negate());
}
toPipeline() {
return this.steps.reduce(
(acc, step) => step.negate().pushStage(acc),
[]
);
}
}

File Metadata

Mime Type
text/x-java
Expires
Tue, Dec 24, 14:02 (17 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
557158
Default Alt Text
query-not.ts (397 B)

Event Timeline