public interface ReadableRelationshipIndex extends ReadableIndex<Relationship>
ReadableIndex interface with additional get/query methods
which
are specific to Relationships. Each of ReadableIndex.get(String, Object),
ReadableIndex.query(String, Object) and ReadableIndex.query(Object) have an additional
method which allows efficient filtering on start/end node of the
relationships.| Modifier and Type | Method and Description |
|---|---|
IndexHits<Relationship> |
get(String key,
Object valueOrNull,
Node startNodeOrNull,
Node endNodeOrNull)
Returns exact matches from this index, given the key/value pair.
|
IndexHits<Relationship> |
query(Object queryOrQueryObjectOrNull,
Node startNodeOrNull,
Node endNodeOrNull)
Returns matches from this index based on the supplied query object, which
can be a query string or an implementation-specific query object.
|
IndexHits<Relationship> |
query(String key,
Object queryOrQueryObjectOrNull,
Node startNodeOrNull,
Node endNodeOrNull)
Returns matches from this index based on the supplied
key and
query object, which can be a query string or an implementation-specific
query object. |
get, getEntityType, getGraphDatabase, getName, isWriteable, query, queryIndexHits<Relationship> get(String key, Object valueOrNull, Node startNodeOrNull, Node endNodeOrNull)
Index.add(org.neo4j.graphdb.PropertyContainer, String, Object) method.key - the key in the key/value pair to match.valueOrNull - the value in the key/value pair to match.startNodeOrNull - filter so that only Relationships with
that given start node will be returned.endNodeOrNull - filter so that only Relationships with that
given end node will be returned.IndexHits object. If the entire
result set isn't looped through, IndexHits.close() must
be called before disposing of the result.IndexHits<Relationship> query(String key, Object queryOrQueryObjectOrNull, Node startNodeOrNull, Node endNodeOrNull)
key and
query object, which can be a query string or an implementation-specific
query object.key - the key in this query.queryOrQueryObjectOrNull - the query for the key to match.startNodeOrNull - filter so that only Relationships with
that given start node will be returned.endNodeOrNull - filter so that only Relationships with that
given end node will be returned.IndexHits object. If the entire
result set isn't looped through, IndexHits.close() must
be called before disposing of the result.IndexHits<Relationship> query(Object queryOrQueryObjectOrNull, Node startNodeOrNull, Node endNodeOrNull)
queryOrQueryObjectOrNull - the query to match.startNodeOrNull - filter so that only Relationships with
that given start node will be returned.endNodeOrNull - filter so that only Relationships with that
given end node will be returned.IndexHits object. If the entire
result set isn't looped through, IndexHits.close() must
be called before disposing of the result.Copyright © 2002–2015 The Neo4j Graph Database Project. All rights reserved.