Class IndexQueryHintHandler

  • All Implemented Interfaces:

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String addQueryHints​(java.lang.String query, java.lang.String hints)
      Add query hints to the given query.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IndexQueryHintHandler

        public IndexQueryHintHandler()
    • Method Detail

      • addQueryHints

        public java.lang.String addQueryHints​(java.lang.String query,
                                              java.lang.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