Query Module The Query module can be used to create complex queries (by algorithms) and get count for the given pattern in the following Grammar Syntax
S --> S AND S | S OR S | NOT S | (S) | a a --> DataSourceID [ AttributeIndex, BitIndex ] AND --> & OR --> | NOT --> ! Query Grammar Syntax::-
Example query ::- id[0,0] & (id[1,0] | id[2,0] | !id[3,0]) & id[4,0]
Use Of Query API Olap olap; //create Olap object Query* query=new Query("id[1,2]&!id[1,2]"); //create a query int countValue = olap.count(query); //get count of the pattern given by the query delete query; //remove garbage