|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Uniqueness>
org.neo4j.kernel.Uniqueness
public enum Uniqueness
Contains some uniqueness modes that are very common in traversals, for example uniqueness of nodes or relationships to visit during a traversal.
Enum Constant Summary | |
---|---|
NODE_GLOBAL
A node cannot be traversed more than once. |
|
NODE_PATH
For each returned node there's a unique path from the start node to it. |
|
NODE_RECENT
This is like NODE_GLOBAL , but only guarantees
uniqueness among the most recent visited nodes, with a configurable
count. |
|
NONE
No restriction (the user will have to manage it). |
|
RELATIONSHIP_GLOBAL
A relationship cannot be traversed more than once, whereas nodes can. |
|
RELATIONSHIP_PATH
For each returned node there's a (relationship wise) unique path from the start node to it. |
|
RELATIONSHIP_RECENT
Same as for NODE_RECENT , but for relationships. |
Method Summary | |
---|---|
static Uniqueness |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Uniqueness[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.neo4j.graphdb.traversal.UniquenessFactory |
---|
create |
Enum Constant Detail |
---|
public static final Uniqueness NODE_GLOBAL
public static final Uniqueness NODE_PATH
public static final Uniqueness NODE_RECENT
NODE_GLOBAL
, but only guarantees
uniqueness among the most recent visited nodes, with a configurable
count. Traversing a huge graph is quite memory intensive in that it keeps
track of all the nodes it has visited. For huge graphs a traverser
can hog all the memory in the JVM, causing OutOfMemoryError
.
Together with this Uniqueness
you can supply a count, which is
the number of most recent visited nodes. This can cause a node to be
visited more than once, but scales infinitely.
public static final Uniqueness RELATIONSHIP_GLOBAL
public static final Uniqueness RELATIONSHIP_PATH
public static final Uniqueness RELATIONSHIP_RECENT
NODE_RECENT
, but for relationships.
public static final Uniqueness NONE
Method Detail |
---|
public static Uniqueness[] values()
for (Uniqueness c : Uniqueness.values()) System.out.println(c);
public static Uniqueness valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |