public interface IndexReader
extends org.neo4j.graphdb.Resource
Modifier and Type | Field and Description |
---|---|
static IndexReader |
EMPTY |
Modifier and Type | Method and Description |
---|---|
long |
countIndexedNodes(long nodeId,
org.neo4j.values.storable.Value... propertyValues) |
IndexSampler |
createSampler() |
boolean |
hasFullNumberPrecision(org.neo4j.kernel.api.schema.IndexQuery... predicates) |
org.neo4j.collection.primitive.PrimitiveLongIterator |
query(org.neo4j.kernel.api.schema.IndexQuery... predicates)
Queries the index for the given
IndexQuery predicates. |
static final IndexReader EMPTY
long countIndexedNodes(long nodeId, org.neo4j.values.storable.Value... propertyValues)
nodeId
- node id to match.propertyValues
- property values to match.nodeId
and propertyValues
.IndexSampler createSampler()
org.neo4j.collection.primitive.PrimitiveLongIterator query(org.neo4j.kernel.api.schema.IndexQuery... predicates) throws org.neo4j.kernel.api.exceptions.index.IndexNotApplicableKernelException
IndexQuery
predicates.predicates
- the predicates to query for.org.neo4j.kernel.api.exceptions.index.IndexNotApplicableKernelException
boolean hasFullNumberPrecision(org.neo4j.kernel.api.schema.IndexQuery... predicates)
predicates
- query to determine whether or not index has full number precision for.query(IndexQuery...)
when calling with predicates involving numbers, such as IndexQuery.exact(int, Object)
w/ a Number
or IndexQuery.range(int, Number, boolean, Number, boolean)
.
If false
is returned this means that the caller of query(IndexQuery...)
will have to
do additional filtering, double-checking of actual property values, externally.Copyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.