Distributed storage and distributed processing query statement reconstruction in accordance with a policy
A non-transitory computer readable storage medium has instructions executed by a processor to receive a query statement. The query statement is one of many distributed storage and distributed processing query statements with unique data access methods. Token components are formed from the query statement. The token components are categorized as data components or logic components. Modified token components are formed from the token components in accordance with a policy. The query statement is reconstructed with the modified token components and original computational logic and control logic associated with the query statement.
1. A server, comprising:
a processor; and
a memory connected to the processor, the memory storing instructions executed by the processor to:
receive a query statement, wherein the query statement is one of a plurality of distributed storage and distributed processing query statements with unique data access methods, wherein the query statement is received over a network from a client machine;
form token components from the query statement;
categorize each token component of the token components as one of a data component, a computational logic component or a control logic component;
form modified token components from the token components in accordance with a policy;
reconstruct the query statement with the modified token components and original computational logic and control logic associated with the query statement to form a policy compliant query statement; and
coordinate execution of the policy compliant query statement on worker machines connected to the network.
2. The server of claim 1 wherein the policy is an access control policy.
3. The server of claim 1 wherein the policy is a query language dialect conversion policy.
4. The server of claim 1 wherein the policy is a query optimization policy.
5. The server of claim 1 wherein the logic components are categorized as computational logic components or control logic components.
6. The server of claim 1 wherein the token components are alternately categorized as database specific tokens, special characters, language keywords, comments, values, aliases, file paths, URI's and functions.