Heuristic Based Query Optimisation for RSP(RDF Stream Processing) Engines

Provide a heuristic based optimisation solution implementation for at least 2 RSP engines(CQELS and C-SPARQL) with Java code for optimisation using naive idea
The type of storage can possibly be found in the Chapters 5 and 6 of the provided materials.