public class CacheVertex extends StandardVertex
| Modifier and Type | Field and Description |
|---|---|
protected Map<SliceQuery,EntryList> |
queryCache |
| Constructor and Description |
|---|
CacheVertex(StandardJanusGraphTx tx,
Object id,
byte lifecycle) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addToQueryCache(SliceQuery query,
EntryList entries) |
EntryList |
getFromCache(SliceQuery query) |
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.
|
void |
refresh() |
addRelation, findAddedProperty, findPreviousRelation, getAddedRelations, getDuplicatedAddedRelation, getLifeCycle, hasAddedRelations, hasRemovedRelations, properties, remove, remove, removeRelation, updateLifeCycle, vertexLabeladdEdge, edges, getCompareId, getVertexLabelInternal, isModified, isTxOpen, it, label, property, property, query, toString, tx, valueOrNull, verifyAccess, verticesclone, compare, compareTo, equals, hashCode, hasId, id, isInvisible, isLoaded, isNew, isRemoved, isTemporaryId, setIdfinalize, getClass, notify, notifyAll, wait, wait, waitpropertygraph, isInvisible, setIdprotected final Map<SliceQuery,EntryList> queryCache
public CacheVertex(StandardJanusGraphTx tx, Object id, byte lifecycle)
public void refresh()
public EntryList getFromCache(SliceQuery query)
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–2024. All rights reserved.