Override this method to implement the way you want to transform the given Query q.
Query
q
Query transform(Query q);