public class PreloadedVertex extends CacheVertex
| Modifier and Type | Class and Description |
|---|---|
static interface |
PreloadedVertex.AccessCheck |
static interface |
PreloadedVertex.PropertyMixing |
| Modifier and Type | Field and Description |
|---|---|
static PreloadedVertex.AccessCheck |
CLOSEDSTAR_CHECK |
static PreloadedVertex.AccessCheck |
DEFAULT_CHECK |
static Retriever<SliceQuery,EntryList> |
EMPTY_RETRIEVER |
static PreloadedVertex.AccessCheck |
OPENSTAR_CHECK |
queryCache| Constructor and Description |
|---|
PreloadedVertex(StandardTitanTx tx,
long id,
byte lifecycle) |
| Modifier and Type | Method and Description |
|---|---|
TitanEdge |
addEdge(String s,
org.apache.tinkerpop.gremlin.structure.Vertex vertex,
Object... keyValues)
Creates a new edge incident on this vertex.
|
boolean |
addRelation(InternalRelation e)
Add a new relation to the vertex
|
void |
addToQueryCache(SliceQuery query,
EntryList entries) |
Iterator<org.apache.tinkerpop.gremlin.structure.Edge> |
edges(org.apache.tinkerpop.gremlin.structure.Direction direction,
String... edgeLabels) |
List<InternalRelation> |
getAddedRelations(com.google.common.base.Predicate<InternalRelation> query)
Returns an iterable over all newly added relations incident on this vertex that match the given predicate
|
EntryList |
getFromCache(SliceQuery query) |
boolean |
hasAddedRelations()
Whether this vertex has added relations
|
boolean |
hasLoadedRelations(SliceQuery query)
Returns true if the results for the given query have already been loaded for this vertex and are locally cached.
|
boolean |
hasRemovedRelations()
Whether this vertex has removed relations
|
EntryList |
loadRelations(SliceQuery query,
Retriever<SliceQuery,EntryList> lookup)
Returns all relations that match the given query.
|
<V> Iterator<org.apache.tinkerpop.gremlin.structure.VertexProperty<V>> |
properties(String... keys) |
<V> TitanVertexProperty<V> |
property(String key,
V value,
Object... keyValues) |
<V> TitanVertexProperty<V> |
property(org.apache.tinkerpop.gremlin.structure.VertexProperty.Cardinality cardinality,
String key,
V value,
Object... keyValues) |
VertexCentricQueryBuilder |
query()
Starts a new
TitanVertexQuery for this vertex. |
void |
remove()
Deletes this entity and any incident edges or properties from the graph.
|
void |
removeRelation(InternalRelation e)
Deleted relation e from the adjacency list of this vertex and updates the state of the vertex to reflect
the modification.
|
void |
setAccessCheck(PreloadedVertex.AccessCheck accessCheck) |
void |
setPropertyMixing(PreloadedVertex.PropertyMixing mixin) |
getQueryCacheSizegetLifeCycle, updateLifeCyclegetCompareId, getVertexLabelInternal, id, isModified, it, label, 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, setIdpublic static final Retriever<SliceQuery,EntryList> EMPTY_RETRIEVER
public static final PreloadedVertex.AccessCheck DEFAULT_CHECK
public static final PreloadedVertex.AccessCheck CLOSEDSTAR_CHECK
public static final PreloadedVertex.AccessCheck OPENSTAR_CHECK
public PreloadedVertex(StandardTitanTx tx, long id, byte lifecycle)
public void setPropertyMixing(PreloadedVertex.PropertyMixing mixin)
public void setAccessCheck(PreloadedVertex.AccessCheck accessCheck)
public void addToQueryCache(SliceQuery query, EntryList entries)
addToQueryCache in class CacheVertexpublic EntryList getFromCache(SliceQuery query)
public List<InternalRelation> getAddedRelations(com.google.common.base.Predicate<InternalRelation> query)
InternalVertexgetAddedRelations in interface InternalVertexgetAddedRelations in class StandardVertexpublic VertexCentricQueryBuilder query()
TitanVertexTitanVertexQuery for this vertex.
Initializes and returns a new TitanVertexQuery based on this vertex.query in interface TitanVertexquery in interface InternalVertexquery in class AbstractVertexTitanVertexQuerypublic boolean hasLoadedRelations(SliceQuery query)
InternalVertexhasLoadedRelations in interface InternalVertexhasLoadedRelations in class CacheVertexpublic boolean hasRemovedRelations()
InternalVertexhasRemovedRelations in interface InternalVertexhasRemovedRelations in class StandardVertexpublic boolean hasAddedRelations()
InternalVertexhasAddedRelations in interface InternalVertexhasAddedRelations in class StandardVertexpublic EntryList loadRelations(SliceQuery query, Retriever<SliceQuery,EntryList> lookup)
InternalVertexRetriever to retrieve the edges from backend storage.loadRelations in interface InternalVertexloadRelations in class CacheVertexpublic <V> TitanVertexProperty<V> property(org.apache.tinkerpop.gremlin.structure.VertexProperty.Cardinality cardinality, String key, V value, Object... keyValues)
property in interface TitanVertexproperty in interface org.apache.tinkerpop.gremlin.structure.Vertexproperty in class AbstractVertexpublic <V> TitanVertexProperty<V> property(String key, V value, Object... keyValues)
property in interface TitanVertexproperty in interface org.apache.tinkerpop.gremlin.structure.Vertexproperty in class AbstractVertexpublic <V> Iterator<org.apache.tinkerpop.gremlin.structure.VertexProperty<V>> properties(String... keys)
properties in interface org.apache.tinkerpop.gremlin.structure.Elementproperties in interface org.apache.tinkerpop.gremlin.structure.Vertexproperties in class AbstractVertexpublic TitanEdge addEdge(String s, org.apache.tinkerpop.gremlin.structure.Vertex vertex, Object... keyValues)
TitanVertexTitanEdge of the specified label with this vertex being the outgoing vertex
and the given vertex being the incoming vertex.
IllegalArgumentException.addEdge in interface TitanVertexaddEdge in interface org.apache.tinkerpop.gremlin.structure.VertexaddEdge in class AbstractVertexs - label of the edge to be createdvertex - incoming vertex of the edge to be createdpublic Iterator<org.apache.tinkerpop.gremlin.structure.Edge> edges(org.apache.tinkerpop.gremlin.structure.Direction direction, String... edgeLabels)
edges in interface org.apache.tinkerpop.gremlin.structure.Vertexedges in class AbstractVertexpublic void remove()
TitanElementremove in interface TitanElementremove in interface Removableremove in interface org.apache.tinkerpop.gremlin.structure.Elementremove in class StandardVertexpublic void removeRelation(InternalRelation e)
InternalVertexremoveRelation in interface InternalVertexremoveRelation in class StandardVertexe - TitanRelation to be removedpublic boolean addRelation(InternalRelation e)
InternalVertexaddRelation in interface InternalVertexaddRelation in class StandardVertexCopyright © 2012–2015. All rights reserved.