java.lang.Object
org.neo4j.cypherdsl.core.Hint
- All Implemented Interfaces:
Visitable
Visitable implementing hints. See
ExposesHints
.- Since:
- 2021.0.0
- Author:
- Michael J. Simons
-
Method Summary
Modifier and TypeMethodDescriptionvoid
toString()
Mostvisitables
will render themselves into a Cypher fragment preceded with the actual classname.static Hint
useIndexFor
(boolean seek, Property... properties) Creates an index hint.static Hint
useJoinOn
(SymbolicName... name) Creates a join hint on one or more symbolic names.static Hint
useScanFor
(Node node) Creates an index scan hint.
-
Method Details
-
toString
Description copied from interface:Visitable
Mostvisitables
will render themselves into a Cypher fragment preceded with the actual classname. The representation however is not cached - in contrast to the ones for full statements. UsingtoString
is recommended for debugging purposes mainly, and not for production use.The concrete classname has been prepended to help debugging and actually to discourage using fragments to build queries without explicitly rendering them, either as statement or going through the renderer on purpose.
-
useIndexFor
Creates an index hint. Mostly useful when building elements outside the fluent DSL.- Parameters:
seek
- Set to true to use the index for seeks onlyproperties
- The properties to use in the index, must know their container- Returns:
- A hint
- Since:
- 2021.2.3
-
useScanFor
Creates an index scan hint. Mostly useful when building elements outside the fluent DSL.- Parameters:
node
- The node who's label and name should be used to define the scan hint- Returns:
- A hint
- Since:
- 2021.2.3
-
useJoinOn
Creates a join hint on one or more symbolic names.- Parameters:
name
- The names that are supposed to provide the join point- Returns:
- A hint
- Since:
- 2021.2.3
-
accept
Description copied from interface:Visitable
-