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, vertexLabel
addEdge, edges, getCompareId, getVertexLabelInternal, isModified, isTxOpen, it, label, property, property, query, toString, tx, valueOrNull, verifyAccess, vertices
clone, compare, compareTo, equals, hashCode, hasId, id, isInvisible, isLoaded, isNew, isRemoved, isTemporaryId, setId
finalize, getClass, notify, notifyAll, wait, wait, wait
property
graph, isInvisible, setId
protected 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)
InternalVertex
Retriever
to retrieve the edges from backend storage.loadRelations
in interface InternalVertex
loadRelations
in class StandardVertex
public boolean hasLoadedRelations(SliceQuery query)
InternalVertex
hasLoadedRelations
in interface InternalVertex
hasLoadedRelations
in class StandardVertex
Copyright © 2012–2024. All rights reserved.