@comunica/mediator-join-coefficients-fixed
v4.0.2
Published
A join-coefficients-fixed mediator
Downloads
9,968
Readme
Comunica Mediator Join Coefficients Fixed
A mediator that mediates over actors implementing the Join Coefficients mediator type. Based on the produced join coefficients, the mediator calculates an overal join cost based on several configurable weights, and picks the actor with the lowest overall cost. This is meant to be used for mediation over the RDF Join bus.
For example, on machines where I/O and memory is very expensive, this mediator's parameters could be tweaked so that the weight of I/O and memory are higher, so that they lead to a higher cost for actors that require more I/O and memory usage.
This module is part of the Comunica framework, and should only be used by developers that want to build their own query engine.
Click here if you just want to query with Comunica.
Install
$ yarn add @comunica/mediator-join-coefficients-fixed
Configure
After installing, this mediator can be instantiated as follows:
{
"@context": [
...
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/mediator-all/^4.0.0/components/context.jsonld"
],
"actors": [
...
{
"@type": "SomeActor",
"someMediator": {
"@id": "#mediatorRdfJoin",
"@type": "MediatorJoinCoefficientsFixed",
"cpuWeight": 1,
"memoryWeight": 1,
"timeWeight": 1,
"ioWeight": 0.01,
"bus": { "@id": ActorRdfJoin:_default_bus" }
}
}
]
}
Config Parameters
"cpuWeight"
: Weight for the CPU cost. Higher values lead to higher overall costs."memoryWeight"
: Weight for the memory cost. Higher values lead to higher overall costs."timeWeight"
: Weight for the execution time cost. Higher values lead to higher overall costs."ioWeight"
: Weight for the I/O cost. Higher values lead to higher overall costs."bus"
: Identifier of the bus to mediate over.