public class CacheVertex extends StandardVertex
| Modifier and Type | Field and Description |
|---|---|
protected Map<SliceQuery,EntryList> |
queryCache |
| Constructor and Description |
|---|
CacheVertex(StandardTitanTx tx,
long id,
byte lifecycle) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addToQueryCache(SliceQuery query,
EntryList entries) |
protected int |
getQueryCacheSize() |
boolean |
hasLoadedRelations(SliceQuery query)
Returns true if the results for the given query have already been loaded for this vertex and are locally cached.
|
EntryList |
loadRelations(SliceQuery query,
Retriever<SliceQuery,EntryList> lookup)
Returns all relations that match the given query.
|
addRelation, getAddedRelations, getLifeCycle, hasAddedRelations, hasRemovedRelations, remove, removeRelation, updateLifeCycleaddEdge, edges, getCompareId, getVertexLabelInternal, id, isModified, it, label, properties, property, property, query, toString, tx, valueOrNull, verifyAccess, vertexLabel, verticesclone, compare, compareTo, equals, hashCode, hasId, isInvisible, isLoaded, isNew, isRemoved, isTemporaryId, longId, setIdfinalize, getClass, notify, notifyAll, wait, wait, waitpropertygraph, isInvisible, setIdprotected final Map<SliceQuery,EntryList> queryCache
public CacheVertex(StandardTitanTx tx, long id, byte lifecycle)
protected void addToQueryCache(SliceQuery query, EntryList entries)
protected int getQueryCacheSize()
public EntryList loadRelations(SliceQuery query, Retriever<SliceQuery,EntryList> lookup)
InternalVertexRetriever to retrieve the edges from backend storage.loadRelations in interface InternalVertexloadRelations in class StandardVertexpublic boolean hasLoadedRelations(SliceQuery query)
InternalVertexhasLoadedRelations in interface InternalVertexhasLoadedRelations in class StandardVertexCopyright © 2012–2015. All rights reserved.