Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public async getOutput(action: IActionRdfJoin): Promise {
const variables = ActorRdfJoin.overlappingVariables(action);
const join = new HashJoin(
action.entries[0].bindingsStream, action.entries[1].bindingsStream,
(entry) => ActorRdfJoinHash.hash(entry, variables), ActorRdfJoin.join);
return { type: 'bindings', bindingsStream: join, variables: ActorRdfJoin.joinVariables(action) };
}
public async getOutput(action: IActionRdfJoin): Promise {
const variables = ActorRdfJoin.overlappingVariables(action);
const join = new SymmetricHashJoin(
action.entries[0].bindingsStream, action.entries[1].bindingsStream,
(entry) => ActorRdfJoinSymmetricHash.hash(entry, variables), ActorRdfJoin.join);
return { type: 'bindings', bindingsStream: join, variables: ActorRdfJoin.joinVariables(action) };
}