T
- The Primitive this Index holdspublic interface ReadableIndex<T extends PropertyContainer>
Index
that disallows mutating operations.Modifier and Type | Method and Description |
---|---|
IndexHits<T> |
get(String key,
Object value)
Returns exact matches from this index, given the key/value pair.
|
Class<T> |
getEntityType() |
GraphDatabaseService |
getGraphDatabase()
Get the
graph database that owns this index. |
String |
getName() |
boolean |
isWriteable()
A ReadableIndex is possible to support mutating operations as well.
|
IndexHits<T> |
query(Object queryOrQueryObject)
Returns matches from this index based on the supplied query object,
which can be a query string or an implementation-specific query object.
|
IndexHits<T> |
query(String key,
Object queryOrQueryObject)
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. |
String getName()
IndexHits<T> get(String key, Object value)
Index.add(PropertyContainer, String, Object)
method.key
- the key in the key/value pair to match.value
- the value in the key/value pair to match.IndexHits
object. If the entire
result set isn't looped through, IndexHits.close()
must
be called before disposing of the result.IndexHits<T> query(String key, Object queryOrQueryObject)
key
and
query object, which can be a query string or an implementation-specific
query object.key
- the key in this query.queryOrQueryObject
- the query for the key
to match.IndexHits
object. If the entire
result set isn't looped through, IndexHits.close()
must be
called before disposing of the result.IndexHits<T> query(Object queryOrQueryObject)
queryOrQueryObject
- the query to match.IndexHits
object. If the entire
result set isn't looped through, IndexHits.close()
must be
called before disposing of the result.boolean isWriteable()
GraphDatabaseService getGraphDatabase()
graph database
that owns this index.graph database
that owns this index.Copyright © 2002–2016 The Neo4j Graph Database Project. All rights reserved.