public class ContinuousNodeSelector extends Object implements NodeSelector
NodeSelector that selects a Node by finding the first
node matching the provided NodeInclusionPolicy with ID higher than the last one. In the beginning or when all
IDs are exhausted, the selector starts from 0.| Constructor and Description |
|---|
ContinuousNodeSelector()
Constructs a new
ContinuousNodeSelector that selects any node which isn't a
framework-internal node. |
ContinuousNodeSelector(long lastNodeId)
Constructs a new
ContinuousNodeSelector that selects a node that matches
the given NodeInclusionPolicy. |
ContinuousNodeSelector(NodeInclusionPolicy inclusionPolicy)
Constructs a new
ContinuousNodeSelector that selects a node that matches
the given NodeInclusionPolicy. |
ContinuousNodeSelector(NodeInclusionPolicy inclusionPolicy,
long lastNodeId)
Constructs a new
ContinuousNodeSelector that selects a node that matches
the given NodeInclusionPolicy. |
| Modifier and Type | Method and Description |
|---|---|
org.neo4j.graphdb.Node |
selectNode(org.neo4j.graphdb.GraphDatabaseService database)
Select a node from the graph.
|
public ContinuousNodeSelector()
ContinuousNodeSelector that selects any node which isn't a
framework-internal node.public ContinuousNodeSelector(long lastNodeId)
ContinuousNodeSelector that selects a node that matches
the given NodeInclusionPolicy.lastNodeId - ID of the last node selected by this selector.public ContinuousNodeSelector(NodeInclusionPolicy inclusionPolicy)
ContinuousNodeSelector that selects a node that matches
the given NodeInclusionPolicy.inclusionPolicy - The NodeInclusionPolicy to consider when selecting
nodes.public ContinuousNodeSelector(NodeInclusionPolicy inclusionPolicy, long lastNodeId)
ContinuousNodeSelector that selects a node that matches
the given NodeInclusionPolicy.inclusionPolicy - The NodeInclusionPolicy to consider when selecting
nodes.lastNodeId - ID of the last node selected by this selector.public org.neo4j.graphdb.Node selectNode(org.neo4j.graphdb.GraphDatabaseService database)
selectNode in interface NodeSelectordatabase - in which to select a node.Node in the given database, null if a node can't be selected for whatever
reason, perhaps because there is no (matching) node in the database.Copyright © 2013-2016–2018 Graph Aware Limited. All rights reserved.