Class IndexQueryHintHandler

  • All Implemented Interfaces:

    public class IndexQueryHintHandler
    extends Object
    implements QueryHintHandler
    Adds an INDEX query hint as follows: SELECT * FROM TEST USE INDEX (hint1, hint2) WHERE X=1
    • Constructor Detail

      • IndexQueryHintHandler

        public IndexQueryHintHandler()
    • Method Detail

      • addQueryHints

        public String addQueryHints​(String query,
                                    String hints)
        Description copied from interface: QueryHintHandler
        Add query hints to the given query.
        Specified by:
        addQueryHints in interface QueryHintHandler
        query - original query
        hints - hints to be applied
        query with hints