public class StorableVertex extends StorableElement implements Vertex
| Modifier and Type | Field and Description |
|---|---|
static String |
CF_IN_EDGE |
static String |
CF_IN_EDGE_HIDDEN |
static String |
CF_IN_EDGE_SOFT_DELETE |
static String |
CF_OUT_EDGE |
static String |
CF_OUT_EDGE_HIDDEN |
static String |
CF_OUT_EDGE_SOFT_DELETE |
static String |
CF_SIGNAL |
authorizations, CF_EXTENDED_DATA, CF_HIDDEN, CF_PROPERTY, CF_PROPERTY_HIDDEN, CF_PROPERTY_METADATA, CF_PROPERTY_SOFT_DELETE, CF_PROPERTY_VISIBLE, CF_SOFT_DELETE, CQ_HIDDEN, CQ_SOFT_DELETE, DELETE_ROW_COLUMN_FAMILY, DELETE_ROW_COLUMN_QUALIFIER, extendedDataTableNames, fetchHints, graph, HIDDEN_VALUE, HIDDEN_VALUE_DELETED, hiddenPropertyMarkers, hiddenVisibilities, id, METADATA_COLUMN_FAMILY, METADATA_COLUMN_QUALIFIER, properties, propertyDeleteMutations, propertySoftDeleteMutations, SOFT_DELETE_VALUE, softDeletedProperties, softDeleteTimestamp, storableProperties, storablePropertyMetadatas, timestamp, visibility, visiblePropertyMarkersID_PROPERTY_NAME| Constructor and Description |
|---|
StorableVertex(StorableGraph graph,
String vertexId,
String conceptType,
String newConceptType,
Visibility vertexVisibility,
Iterable<Property> properties,
Iterable<PropertyDeleteMutation> propertyDeleteMutations,
Iterable<PropertySoftDeleteMutation> propertySoftDeleteMutations,
Iterable<Visibility> hiddenVisibilities,
com.google.common.collect.ImmutableSet<String> extendedDataTableNames,
Edges inEdges,
Edges outEdges,
long timestamp,
FetchHints fetchHints,
Authorizations authorizations) |
StorableVertex(StorableGraph graph,
String vertexId,
String conceptType,
String newConceptType,
Visibility vertexVisibility,
Iterable<Property> properties,
Iterable<PropertyDeleteMutation> propertyDeleteMutations,
Iterable<PropertySoftDeleteMutation> propertySoftDeleteMutations,
Iterable<Visibility> hiddenVisibilities,
com.google.common.collect.ImmutableSet<String> extendedDataTableNames,
long timestamp,
FetchHints fetchHints,
Authorizations authorizations) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addInEdge(Edge edge) |
protected void |
addOutEdge(Edge edge) |
protected Iterable<EdgeInfo> |
filterEdgeInfosByLabel(Iterable<EdgeInfo> edgeInfos,
String[] labels) |
String |
getConceptType() |
Iterable<String> |
getEdgeIds(Direction direction,
Authorizations authorizations)
Gets the connected edge ids.
|
Iterable<String> |
getEdgeIds(Direction direction,
String[] labels,
Authorizations authorizations)
Gets the connected edge ids.
|
Iterable<String> |
getEdgeIds(Direction direction,
String label,
Authorizations authorizations)
Gets the connected edge ids.
|
Iterable<String> |
getEdgeIds(Vertex otherVertex,
Direction direction,
Authorizations authorizations)
Gets the connected edge ids.
|
Iterable<String> |
getEdgeIds(Vertex otherVertex,
Direction direction,
String[] labels,
Authorizations authorizations)
Gets a list of edge ids between this vertex and another vertex.
|
Iterable<String> |
getEdgeIds(Vertex otherVertex,
Direction direction,
String label,
Authorizations authorizations)
Gets the connected edge ids.
|
Iterable<String> |
getEdgeIdsWithOtherVertexId(String otherVertexId,
Direction direction,
String[] labels,
Authorizations authorizations) |
Iterable<EdgeInfo> |
getEdgeInfos(Direction direction,
String[] labels,
Authorizations authorizations)
Get a list of EdgeInfo.
|
Iterable<Edge> |
getEdges(Direction direction,
FetchHints fetchHints,
Long endTime,
Authorizations authorizations)
Gets all edges attached to this vertex.
|
Iterable<Edge> |
getEdges(Direction direction,
String[] labels,
FetchHints fetchHints,
Authorizations authorizations)
Gets all edges with any of the given labels attached to this vertex.
|
Iterable<Edge> |
getEdges(Direction direction,
String label,
FetchHints fetchHints,
Authorizations authorizations)
Gets all edges with the given label attached to this vertex.
|
Iterable<Edge> |
getEdges(Vertex otherVertex,
Direction direction,
FetchHints fetchHints,
Authorizations authorizations)
Gets all edges between this vertex and another vertex.
|
Iterable<Edge> |
getEdges(Vertex otherVertex,
Direction direction,
String[] labels,
FetchHints fetchHints,
Authorizations authorizations)
Gets all edges between this vertex and another vertex matching any of the given labels.
|
Iterable<Edge> |
getEdges(Vertex otherVertex,
Direction direction,
String label,
FetchHints fetchHints,
Authorizations authorizations)
Gets all edges between this vertex and another vertex matching the given label.
|
EdgesSummary |
getEdgesSummary(Authorizations authorizations)
Gets edge summary information
|
String |
getNewConceptType() |
Iterable<String> |
getVertexIds(Direction direction,
String[] labels,
Authorizations authorizations)
Gets vertex ids of connected vertices.
|
Iterable<Vertex> |
getVertices(Direction direction,
FetchHints fetchHints,
Authorizations authorizations)
Similar to getEdges but gets the vertices on the other side of the edges attached to this vertex.
|
Iterable<Vertex> |
getVertices(Direction direction,
String[] labels,
FetchHints fetchHints,
Authorizations authorizations)
Similar to getEdges but gets the vertices on the other side of the edges attached to this vertex that have any of the given labels.
|
ExistingVertexMutation |
prepareMutation()
Prepares a mutation to allow changing multiple property values at the same time.
|
VertexQuery |
query(String queryString,
Authorizations authorizations)
Creates a query to query the edges and vertices attached to this vertex.
|
protected void |
removeInEdge(Edge edge) |
protected void |
removeOutEdge(Edge edge) |
void |
setConceptType(String newConceptType) |
addPropertyInternal, deleteProperty, equals, getAuthorizations, getExtendedData, getExtendedDataTableNames, getFetchHints, getGraph, getHiddenVisibilities, getHistoricalPropertyValues, getId, getProperties, getProperties, getProperty, getPropertyDeleteMutations, getPropertySoftDeleteMutations, getPropertyValue, getPropertyValue, getTimestamp, getVisibility, hashCode, internalGetProperties, markPropertyHidden, markPropertyVisible, removePropertyInternal, saveExistingElementMutation, setVisibility, softDeleteProperties, softDeleteProperty, toString, updatePropertiesInternalgetEdgeLabelProperty, getElementIdProperty, getElementTypeProperty, getIdProperty, getInOrOutVertexIdProperty, getInVertexIdProperty, getOutVertexIdProperty, getProperties, getProperty, getProperty, getReservedProperty, getRowIdProperty, getTableNamePropertyclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetEdgeCount, getEdgeInfos, getEdgeInfos, getEdgeLabels, getEdges, getEdges, getEdges, getEdges, getEdges, getEdges, getEdges, getEdgeVertexPairs, getEdgeVertexPairs, getEdgeVertexPairs, getEdgeVertexPairs, getEdgeVertexPairs, getEdgeVertexPairs, getEdgeVertexPairs, getEdgeVertexPairs, getElementType, getVertexIds, getVertexIds, getVertices, getVertices, getVertices, getVertices, queryaddPropertyValue, addPropertyValue, compareTo, deleteProperties, deleteProperty, deleteProperty, deleteProperty, getAuthorizations, getEndTime, getExtendedData, getExtendedData, getExtendedData, getExtendedData, getExtendedDataTableNames, getFetchHints, getGraph, getHiddenVisibilities, getHistoricalPropertyValues, getHistoricalPropertyValues, getHistoricalPropertyValues, getHistoricalPropertyValues, getTimestamp, getVisibility, isHidden, markPropertyHidden, markPropertyHidden, markPropertyHidden, markPropertyHidden, markPropertyVisible, markPropertyVisible, markPropertyVisible, markPropertyVisible, setProperty, setProperty, softDeleteProperties, softDeleteProperty, softDeletePropertygetId, getProperties, getProperties, getProperties, getProperty, getProperty, getProperty, getProperty, getPropertyValue, getPropertyValue, getPropertyValue, getPropertyValue, getPropertyValues, getPropertyValuesedge, vertexpublic static final String CF_SIGNAL
public static final String CF_OUT_EDGE
public static final String CF_IN_EDGE
public static final String CF_OUT_EDGE_SOFT_DELETE
public static final String CF_IN_EDGE_SOFT_DELETE
public static final String CF_OUT_EDGE_HIDDEN
public static final String CF_IN_EDGE_HIDDEN
public StorableVertex(StorableGraph graph, String vertexId, String conceptType, String newConceptType, Visibility vertexVisibility, Iterable<Property> properties, Iterable<PropertyDeleteMutation> propertyDeleteMutations, Iterable<PropertySoftDeleteMutation> propertySoftDeleteMutations, Iterable<Visibility> hiddenVisibilities, com.google.common.collect.ImmutableSet<String> extendedDataTableNames, long timestamp, FetchHints fetchHints, Authorizations authorizations)
public StorableVertex(StorableGraph graph, String vertexId, String conceptType, String newConceptType, Visibility vertexVisibility, Iterable<Property> properties, Iterable<PropertyDeleteMutation> propertyDeleteMutations, Iterable<PropertySoftDeleteMutation> propertySoftDeleteMutations, Iterable<Visibility> hiddenVisibilities, com.google.common.collect.ImmutableSet<String> extendedDataTableNames, Edges inEdges, Edges outEdges, long timestamp, FetchHints fetchHints, Authorizations authorizations)
public Iterable<Edge> getEdges(Direction direction, FetchHints fetchHints, Long endTime, Authorizations authorizations)
VertexgetEdges in interface Vertexdirection - The side of the edge that this vertex is attached to.fetchHints - Hint on what should be fetched from the datastore.endTime - Include all changes made up until the point in time.authorizations - The authorizations used to find the edges.public Iterable<String> getEdgeIds(Direction direction, Authorizations authorizations)
VertexgetEdgeIds in interface Vertexdirection - The side of the edge that this vertex is attached to.authorizations - The authorizations used to find the edges.public Iterable<Edge> getEdges(Direction direction, String label, FetchHints fetchHints, Authorizations authorizations)
VertexgetEdges in interface Vertexdirection - The side of the edge that this vertex is attached to.label - The edge label to search for.fetchHints - Hint on what should be fetched from the datastore.authorizations - The authorizations used to find the edges.public Iterable<String> getEdgeIds(Direction direction, String label, Authorizations authorizations)
VertexgetEdgeIds in interface Vertexdirection - The side of the edge that this vertex is attached to.label - The edge label to search for.authorizations - The authorizations used to find the edges.public Iterable<Edge> getEdges(Direction direction, String[] labels, FetchHints fetchHints, Authorizations authorizations)
VertexgetEdges in interface Vertexdirection - The side of the edge that this vertex is attached to.labels - An array of edge labels to search for.fetchHints - Hint on what should be fetched from the datastore.authorizations - The authorizations used to find the edges.public Iterable<String> getEdgeIds(Direction direction, String[] labels, Authorizations authorizations)
VertexgetEdgeIds in interface Vertexdirection - The side of the edge that this vertex is attached to.labels - An array of edge labels to search for.authorizations - The authorizations used to find the edges.public Iterable<Edge> getEdges(Vertex otherVertex, Direction direction, FetchHints fetchHints, Authorizations authorizations)
VertexgetEdges in interface VertexotherVertex - The other vertex.direction - The direction of edges to find relative to this vertex.fetchHints - Hint on what should be fetched from the datastore.authorizations - The authorizations used to find the edges.public Iterable<String> getEdgeIds(Vertex otherVertex, Direction direction, Authorizations authorizations)
VertexgetEdgeIds in interface VertexotherVertex - The other vertex.direction - The direction of edges to find relative to this vertex.authorizations - The authorizations used to find the edges.public Iterable<Edge> getEdges(Vertex otherVertex, Direction direction, String label, FetchHints fetchHints, Authorizations authorizations)
VertexgetEdges in interface VertexotherVertex - The other vertex.direction - The direction of edges to find relative to this vertex.label - The edge label to search for.fetchHints - Hint on what should be fetched from the datastore.authorizations - The authorizations used to find the edges.public Iterable<String> getEdgeIds(Vertex otherVertex, Direction direction, String label, Authorizations authorizations)
VertexgetEdgeIds in interface VertexotherVertex - The other vertex.direction - The direction of edges to find relative to this vertex.label - The edge label to search for.authorizations - The authorizations used to find the edges.public Iterable<Edge> getEdges(Vertex otherVertex, Direction direction, String[] labels, FetchHints fetchHints, Authorizations authorizations)
VertexgetEdges in interface VertexotherVertex - The other vertex.direction - The direction of edges to find relative to this vertex.labels - An array of edge labels to search for.fetchHints - Hint on what should be fetched from the datastore.authorizations - The authorizations used to find the edges.public Iterable<String> getEdgeIds(Vertex otherVertex, Direction direction, String[] labels, Authorizations authorizations)
VertexgetEdgeIds in interface VertexotherVertex - The other vertex to find edges on.direction - The direction of the edge.labels - The labels to search for.authorizations - The authorizations used to find the edges.public EdgesSummary getEdgesSummary(Authorizations authorizations)
VertexgetEdgesSummary in interface Vertexauthorizations - The authorizations used to get the edges summarypublic Iterable<String> getEdgeIdsWithOtherVertexId(String otherVertexId, Direction direction, String[] labels, Authorizations authorizations)
public Iterable<EdgeInfo> getEdgeInfos(Direction direction, String[] labels, Authorizations authorizations)
VertexgetEdgeInfos in interface Vertexdirection - The direction of the edge.labels - The labels of edges to traverse to find the edge infos.authorizations - The authorizations used to find the edges.protected Iterable<EdgeInfo> filterEdgeInfosByLabel(Iterable<EdgeInfo> edgeInfos, String[] labels)
public Iterable<Vertex> getVertices(Direction direction, FetchHints fetchHints, Authorizations authorizations)
VertexgetVertices in interface Vertexdirection - The direction relative to this vertex.fetchHints - Hint on what should be fetched from the datastore.authorizations - The authorizations used to find the vertices.public Iterable<Vertex> getVertices(Direction direction, String[] labels, FetchHints fetchHints, Authorizations authorizations)
VertexgetVertices in interface Vertexdirection - The direction relative to this vertex.labels - The labels of edges to traverse to find the vertices.fetchHints - Hint on what should be fetched from the datastore.authorizations - The authorizations used to find the vertices.public Iterable<String> getVertexIds(Direction direction, String[] labels, Authorizations authorizations)
VertexgetVertexIds in interface Vertexdirection - The direction relative to this vertex.labels - The labels of edges to traverse to find the vertices.authorizations - The authorizations used to find the vertices.public VertexQuery query(String queryString, Authorizations authorizations)
Vertexprotected void addOutEdge(Edge edge)
protected void removeOutEdge(Edge edge)
protected void addInEdge(Edge edge)
protected void removeInEdge(Edge edge)
public ExistingVertexMutation prepareMutation()
ElementprepareMutation in interface ElementprepareMutation in interface VertexprepareMutation in class StorableElementpublic String getConceptType()
getConceptType in interface VertexgetConceptType in interface VertexElementLocationpublic void setConceptType(String newConceptType)
public String getNewConceptType()
Copyright © 2016–2021 MWARE SOLUTIONS. All rights reserved.