Class HanaHints
- java.lang.Object
-
- de.hybris.platform.jalo.flexiblesearch.hints.impl.HanaHints
-
public final class HanaHints extends java.lang.Object implements QueryHint
Allows to build HANA optimizer/query hints. Keep in mind that you should use just oneQueryHintforFlexibleSearchQuery. That means adding more than one will lead to query errors. You can combine more than one optimiser hints by usingcreate(String...)(String...)} as follows:QueryHint hint = HanaHints.create("HINT_ONE", "HINT_TWO");and then pass it to the
FlexibleSearchQueryobject usingFlexibleSearchQuery.addHints(Hint...)method. All provided hints will be compiled into one HANA hint directive and added to the end of the query:WITH HINT(HINT_ONE,HINT_TWO)If you need to add more hints to existing object, for instance iterating over some list of objects, you can use method
add(String).
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description HanaHintsadd(java.lang.String hint)java.lang.Stringapply(java.lang.String query)static HanaHintscreate(java.lang.String... hints)
-