1. A method for mapping a query operation to an accelerator comprising: receiving, by a processor, a query operation and determining a design logic of the query operation; receiving a configuration of one or more available accelerators and an accelerator design logic of each of the one or more available accelerators; determining if the query operation can be offloaded to one or more of the one or more available accelerators, the determining-based on determining whether the one or more available accelerators are capable of performing the query operation as indicated by the configuration and the accelerator design logic of each of the one or more available accelerators and the design logic of the query operation; based on making a determination that the query operation can be offloaded to the one or more of the one or more available accelerators, creating software structures to interface with the one or more of the one or more available accelerators and executing the query operation on the one or more of the one or more available accelerators; and based on making a determination that the query operation cannot be offloaded to the one or more of the one or more available accelerators, determining whether the query operation can be restructured into a restructured query operation, wherein the restructured query operation is a transformation or subdivision of the query operation; based on making a determination that the query operation can be restructured, making a determination of whether the restructured query operation can be offloaded to the one or more of the one or more available accelerators; based on making the determination that the restructured query operation can be offloaded to the one or more of the one or more available accelerators, creating software structures to interface with the one or more of the one or more available accelerators and executing the restructured query operation on the one or more of the one or more available accelerators; and based on making the determination that the restructured query operation cannot be offloaded to the one or more of the one or more available accelerators, executing the restructured query operation in software; wherein the offloading or the executing the query operation results in an increase in processing speed.