Package org.neo4j.cypherdsl.core
Class Hint
- java.lang.Object
-
- org.neo4j.cypherdsl.core.Hint
-
- All Implemented Interfaces:
Visitable
public final class Hint extends java.lang.Object implements Visitable
Visitable implementing hints. SeeExposesHints.- Since:
- 2021.0.0
- Author:
- Michael J. Simons
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(Visitor visitor)static HintuseIndexFor(boolean seek, Property... properties)Creates an index hint.static HintuseJoinOn(SymbolicName... name)Creates a join hint on one or more symbolic names.static HintuseScanFor(Node node)Creates an index scan hint.
-
-
-
Method Detail
-
useIndexFor
public static Hint useIndexFor(boolean seek, Property... properties)
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
public static Hint useScanFor(Node node)
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
public static Hint useJoinOn(SymbolicName... name)
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
-
-