Neo4j Community

org.neo4j.tooling.wrap
Class WrappedIndex.WrappedRelationshipIndex

java.lang.Object
  extended by org.neo4j.tooling.wrap.WrappedIndex<Relationship,ReadableRelationshipIndex>
      extended by org.neo4j.tooling.wrap.WrappedIndex.WrappedRelationshipIndex
All Implemented Interfaces:
Index<Relationship>, ReadableIndex<Relationship>, ReadableRelationshipIndex, RelationshipIndex
Enclosing class:
WrappedIndex<T extends PropertyContainer,I extends ReadableIndex<T>>

public abstract static class WrappedIndex.WrappedRelationshipIndex
extends WrappedIndex<Relationship,ReadableRelationshipIndex>
implements RelationshipIndex


Nested Class Summary
 
Nested classes/interfaces inherited from class org.neo4j.tooling.wrap.WrappedIndex
WrappedIndex.WrappedNodeIndex, WrappedIndex.WrappedRelationshipIndex
 
Constructor Summary
protected WrappedIndex.WrappedRelationshipIndex(WrappedGraphDatabase graphdb)
           
 
Method Summary
 IndexHits<Relationship> get(String key, Object valueOrNull, Node startNodeOrNull, Node endNodeOrNull)
          Returns exact matches from this index, given the key/value pair.
protected  WrappedGraphDatabase graphdb()
           
 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.
 
Methods inherited from class org.neo4j.tooling.wrap.WrappedIndex
actual, add, delete, get, getEntityType, getGraphDatabase, getName, isWriteable, putIfAbsent, query, query, remove, remove, remove, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.neo4j.graphdb.index.Index
add, delete, putIfAbsent, remove, remove, remove
 
Methods inherited from interface org.neo4j.graphdb.index.ReadableIndex
get, getEntityType, getGraphDatabase, getName, isWriteable, query, query
 

Constructor Detail

WrappedIndex.WrappedRelationshipIndex

protected WrappedIndex.WrappedRelationshipIndex(WrappedGraphDatabase graphdb)
Method Detail

graphdb

protected WrappedGraphDatabase graphdb()

get

public IndexHits<Relationship> get(String key,
                                   Object valueOrNull,
                                   Node startNodeOrNull,
                                   Node endNodeOrNull)
Description copied from interface: ReadableRelationshipIndex
Returns exact matches from this index, given the key/value pair. Matches will be for key/value pairs just as they were added by the #add(PropertyContainer, String, Object) method.

Specified by:
get in interface ReadableRelationshipIndex
Parameters:
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.
Returns:
the result wrapped in an IndexHits object. If the entire result set isn't looped through, IndexHits.close() must be called before disposing of the result.

query

public IndexHits<Relationship> query(String key,
                                     Object queryOrQueryObjectOrNull,
                                     Node startNodeOrNull,
                                     Node endNodeOrNull)
Description copied from interface: ReadableRelationshipIndex
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.

Specified by:
query in interface ReadableRelationshipIndex
Parameters:
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.
Returns:
the result wrapped in an IndexHits object. If the entire result set isn't looped through, IndexHits.close() must be called before disposing of the result.

query

public IndexHits<Relationship> query(Object queryOrQueryObjectOrNull,
                                     Node startNodeOrNull,
                                     Node endNodeOrNull)
Description copied from interface: ReadableRelationshipIndex
Returns matches from this index based on the supplied query object, which can be a query string or an implementation-specific query object.

Specified by:
query in interface ReadableRelationshipIndex
Parameters:
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.
Returns:
the result wrapped in an IndexHits object. If the entire result set isn't looped through, IndexHits.close() must be called before disposing of the result.

Neo4j Community

Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.