public class SimpleVertexQueryProcessor extends Object implements Iterable<Entry>
VertexCentricQuery that addresses the special but
common case that the query is simple (i.e. comprised of only one sub-query and that query is fitted, i.e. does not require
in memory filtering). Under these assumptions we can remove a lot of the steps in QueryProcessor:
merging of result sets, in-memory filtering and the object instantiation required for in-memory filtering.
With those complexities removed, the query processor can be much simpler which makes it a lot faster and less
memory intense.
IMPORTANT: This Iterable is not thread-safe.| Constructor and Description |
|---|
SimpleVertexQueryProcessor(VertexCentricQuery query,
StandardTitanTx tx) |
| Modifier and Type | Method and Description |
|---|---|
Iterator<Entry> |
iterator() |
Iterable<TitanRelation> |
relations()
Converts the entries from this query result into actual
TitanRelation. |
VertexList |
vertexIds()
Returns the list of adjacent vertex ids for this query.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic SimpleVertexQueryProcessor(VertexCentricQuery query, StandardTitanTx tx)
public Iterable<TitanRelation> relations()
TitanRelation.public VertexList vertexIds()
Copyright © 2012–2015. All rights reserved.