public interface Graph
| Modifier and Type | Method and Description |
|---|---|
Edge |
addEdge(String edgeId,
String outVertexId,
String inVertexId,
String label,
Visibility visibility,
Authorizations authorizations)
Adds an edge between two vertices.
|
Edge |
addEdge(String outVertexId,
String inVertexId,
String label,
Visibility visibility,
Authorizations authorizations)
Adds an edge between two vertices.
|
Edge |
addEdge(String edgeId,
Vertex outVertex,
Vertex inVertex,
String label,
Visibility visibility,
Authorizations authorizations)
Adds an edge between two vertices.
|
Edge |
addEdge(Vertex outVertex,
Vertex inVertex,
String label,
Visibility visibility,
Authorizations authorizations)
Adds an edge between two vertices.
|
void |
addGraphEventListener(GraphEventListener graphEventListener)
Adds a graph event listener that will be called when graph events occur.
|
Vertex |
addVertex(String vertexId,
Visibility visibility,
Authorizations authorizations)
Adds a vertex to the graph.
|
Vertex |
addVertex(Visibility visibility,
Authorizations authorizations)
Adds a vertex to the graph.
|
Iterable<Vertex> |
addVertices(Iterable<ElementBuilder<Vertex>> vertices,
Authorizations authorizations)
Adds the vertices to the graph.
|
Authorizations |
createAuthorizations(Authorizations auths,
Collection<String> additionalAuthorizations)
Creates an authorizations object combining auths and additionalAuthorizations.
|
Authorizations |
createAuthorizations(Authorizations auths,
String... additionalAuthorizations)
Creates an authorizations object combining auths and additionalAuthorizations.
|
Authorizations |
createAuthorizations(Collection<String> auths)
Creates an authorizations object.
|
Authorizations |
createAuthorizations(String... auths)
Creates an authorizations object.
|
DefinePropertyBuilder |
defineProperty(String propertyName)
Creates a defines property builder.
|
void |
deleteEdge(Edge edge,
Authorizations authorizations)
Permanently deletes an edge from the graph.
|
void |
deleteEdge(String edgeId,
Authorizations authorizations)
Permanently deletes an edge from the graph.
|
void |
deleteVertex(String vertexId,
Authorizations authorizations)
Permanently deletes a vertex from the graph.
|
void |
deleteVertex(Vertex vertex,
Authorizations authorizations)
Permanently deletes a vertex from the graph.
|
Map<String,Boolean> |
doEdgesExist(Iterable<String> ids,
Authorizations authorizations)
Tests the existence of edges with the given authorizations.
|
Map<String,Boolean> |
doEdgesExist(Iterable<String> ids,
Long endTime,
Authorizations authorizations)
Tests the existence of edges with the given authorizations.
|
boolean |
doesEdgeExist(String edgeId,
Authorizations authorizations)
Tests the existence of a edge with the given authorizations.
|
boolean |
doesVertexExist(String vertexId,
Authorizations authorizations)
Tests the existence of a vertex with the given authorizations.
|
Map<String,Boolean> |
doVerticesExist(Iterable<String> ids,
Authorizations authorizations)
Tests the existence of vertices with the given authorizations.
|
void |
drop()
Drops all tables
|
Iterable<String> |
filterEdgeIdsByAuthorization(Iterable<String> edgeIds,
String authorizationToMatch,
EnumSet<ElementFilter> filters,
Authorizations authorizations)
Filters a collection of edge ids by the authorizations of that edge, properties, etc.
|
Iterable<String> |
filterVertexIdsByAuthorization(Iterable<String> vertexIds,
String authorizationToMatch,
EnumSet<ElementFilter> filters,
Authorizations authorizations)
Filters a collection of vertex ids by the authorizations of that vertex, properties, etc.
|
Iterable<Path> |
findPaths(FindPathOptions options,
Authorizations authorizations)
Finds all paths between two vertices.
|
Iterable<Path> |
findPaths(String sourceVertexId,
String destVertexId,
int maxHops,
Authorizations authorizations)
Deprecated.
|
Iterable<Path> |
findPaths(String sourceVertexId,
String destVertexId,
int maxHops,
ProgressCallback progressCallback,
Authorizations authorizations)
Deprecated.
|
Iterable<Path> |
findPaths(String sourceVertexId,
String destVertexId,
String[] labels,
int maxHops,
Authorizations authorizations)
Deprecated.
|
Iterable<Path> |
findPaths(String sourceVertexId,
String destVertexId,
String[] labels,
int maxHops,
ProgressCallback progressCallback,
Authorizations authorizations)
Deprecated.
|
Iterable<String> |
findRelatedEdgeIds(Iterable<String> vertexIds,
Authorizations authorizations)
Given a list of vertex ids, find all the edge ids that connect them.
|
Iterable<String> |
findRelatedEdgeIds(Iterable<String> vertexIds,
Long endTime,
Authorizations authorizations)
Given a list of vertex ids, find all the edge ids that connect them.
|
Iterable<String> |
findRelatedEdgeIdsForVertices(Iterable<Vertex> vertices,
Authorizations authorizations)
Given a list of vertices, find all the edge ids that connect them.
|
Iterable<String> |
findRelatedEdges(Iterable<String> vertexIds,
Authorizations authorizations)
Deprecated.
|
Iterable<String> |
findRelatedEdges(Iterable<String> vertexIds,
Long endTime,
Authorizations authorizations)
Deprecated.
|
Iterable<RelatedEdge> |
findRelatedEdgeSummary(Iterable<String> vertexIds,
Authorizations authorizations)
Given a list of vertex ids, find all the edges that connect them.
|
Iterable<RelatedEdge> |
findRelatedEdgeSummary(Iterable<String> vertexIds,
Long endTime,
Authorizations authorizations)
Given a list of vertex ids, find all the edges that connect them.
|
Iterable<RelatedEdge> |
findRelatedEdgeSummaryForVertices(Iterable<Vertex> vertices,
Authorizations authorizations)
Given a list of vertices, find all the edges that connect them.
|
void |
flush()
Flushes any pending mutations to the graph.
|
Edge |
getEdge(String edgeId,
Authorizations authorizations)
Get an edge from the graph.
|
Edge |
getEdge(String edgeId,
EnumSet<FetchHint> fetchHints,
Authorizations authorizations)
Get an edge from the graph.
|
Edge |
getEdge(String edgeId,
EnumSet<FetchHint> fetchHints,
Long endTime,
Authorizations authorizations)
Get an edge from the graph.
|
long |
getEdgeCount(Authorizations authorizations)
Gets a count of the number of edges in the system.
|
Iterable<Edge> |
getEdges(Authorizations authorizations)
Gets all edges on the graph.
|
Iterable<Edge> |
getEdges(EnumSet<FetchHint> fetchHints,
Authorizations authorizations)
Gets all edges on the graph.
|
Iterable<Edge> |
getEdges(EnumSet<FetchHint> fetchHints,
Long endTime,
Authorizations authorizations)
Gets all edges on the graph.
|
Iterable<Edge> |
getEdges(Iterable<String> ids,
Authorizations authorizations)
Gets all edges on the graph matching the given ids.
|
Iterable<Edge> |
getEdges(Iterable<String> ids,
EnumSet<FetchHint> fetchHints,
Authorizations authorizations)
Gets all edges on the graph matching the given ids.
|
Iterable<Edge> |
getEdges(Iterable<String> ids,
EnumSet<FetchHint> fetchHints,
Long endTime,
Authorizations authorizations)
Gets all edges on the graph matching the given ids.
|
Iterable<Edge> |
getEdgesInRange(Range idRange,
Authorizations authorizations)
Gets edges from the graph in the given range.
|
Iterable<Edge> |
getEdgesInRange(Range idRange,
EnumSet<FetchHint> fetchHints,
Authorizations authorizations)
Gets edges from the graph in the given range.
|
Iterable<Edge> |
getEdgesInRange(Range idRange,
EnumSet<FetchHint> fetchHints,
Long endTime,
Authorizations authorizations)
Gets edges from the graph in the given range.
|
IdGenerator |
getIdGenerator()
Gets the id generator used by this graph to create ids.
|
Iterable<GraphMetadataEntry> |
getMetadata()
Gets all metadata.
|
Object |
getMetadata(String key)
Gets metadata from the graph.
|
Iterable<GraphMetadataEntry> |
getMetadataWithPrefix(String prefix)
Gets all metadata with the given prefix.
|
PropertyDefinition |
getPropertyDefinition(String propertyName)
Gets the property definition for the given name.
|
Collection<PropertyDefinition> |
getPropertyDefinitions()
Gets all property definitions.
|
SearchIndexSecurityGranularity |
getSearchIndexSecurityGranularity()
Gets the granularity of the search index
SearchIndexSecurityGranularity |
List<InputStream> |
getStreamingPropertyValueInputStreams(List<StreamingPropertyValue> streamingPropertyValues)
Opens multiple StreamingPropertyValue input streams at once.
|
Vertex |
getVertex(String vertexId,
Authorizations authorizations)
Get a vertex from the graph.
|
Vertex |
getVertex(String vertexId,
EnumSet<FetchHint> fetchHints,
Authorizations authorizations)
Get a vertex from the graph.
|
Vertex |
getVertex(String vertexId,
EnumSet<FetchHint> fetchHints,
Long endTime,
Authorizations authorizations)
Get a vertex from the graph.
|
long |
getVertexCount(Authorizations authorizations)
Gets a count of the number of vertices in the system.
|
Map<Object,Long> |
getVertexPropertyCountByValue(String propertyName,
Authorizations authorizations)
Gets the number of times a property with a given value occurs on vertices
|
Iterable<Vertex> |
getVertices(Authorizations authorizations)
Gets all vertices on the graph.
|
Iterable<Vertex> |
getVertices(EnumSet<FetchHint> fetchHints,
Authorizations authorizations)
Gets all vertices on the graph.
|
Iterable<Vertex> |
getVertices(EnumSet<FetchHint> fetchHints,
Long endTime,
Authorizations authorizations)
Gets all vertices on the graph.
|
Iterable<Vertex> |
getVertices(Iterable<String> ids,
Authorizations authorizations)
Gets all vertices matching the given ids on the graph.
|
Iterable<Vertex> |
getVertices(Iterable<String> ids,
EnumSet<FetchHint> fetchHints,
Authorizations authorizations)
Gets all vertices matching the given ids on the graph.
|
Iterable<Vertex> |
getVertices(Iterable<String> ids,
EnumSet<FetchHint> fetchHints,
Long endTime,
Authorizations authorizations)
Gets all vertices matching the given ids on the graph.
|
List<Vertex> |
getVerticesInOrder(Iterable<String> ids,
Authorizations authorizations)
Gets all vertices matching the given ids on the graph.
|
List<Vertex> |
getVerticesInOrder(Iterable<String> ids,
EnumSet<FetchHint> fetchHints,
Authorizations authorizations)
Gets all vertices matching the given ids on the graph.
|
Iterable<Vertex> |
getVerticesInRange(Range idRange,
Authorizations authorizations)
Gets vertices from the graph in the given range.
|
Iterable<Vertex> |
getVerticesInRange(Range idRange,
EnumSet<FetchHint> fetchHints,
Authorizations authorizations)
Gets vertices from the graph in the given range.
|
Iterable<Vertex> |
getVerticesInRange(Range idRange,
EnumSet<FetchHint> fetchHints,
Long endTime,
Authorizations authorizations)
Gets vertices from the graph in the given range.
|
Iterable<Vertex> |
getVerticesWithPrefix(String vertexIdPrefix,
Authorizations authorizations)
Gets vertices from the graph given the prefix.
|
Iterable<Vertex> |
getVerticesWithPrefix(String vertexIdPrefix,
EnumSet<FetchHint> fetchHints,
Authorizations authorizations)
Gets vertices from the graph given the prefix.
|
Iterable<Vertex> |
getVerticesWithPrefix(String vertexIdPrefix,
EnumSet<FetchHint> fetchHints,
Long endTime,
Authorizations authorizations)
Gets vertices from the graph given the prefix.
|
boolean |
isFieldBoostSupported()
Determine if field boost is support.
|
boolean |
isPropertyDefined(String propertyName)
Determine if a property is already defined
|
boolean |
isQuerySimilarToTextSupported()
Returns true if this graph supports similar to text queries.
|
boolean |
isVisibilityValid(Visibility visibility,
Authorizations authorizations)
Given an authorization is the visibility object valid.
|
void |
markEdgeHidden(Edge edge,
Visibility visibility,
Authorizations authorizations)
Marks an edge as hidden for a given visibility.
|
void |
markEdgeVisible(Edge edge,
Visibility visibility,
Authorizations authorizations)
Marks an edge as visible for a given visibility, effectively undoing markEdgeHidden.
|
void |
markVertexHidden(Vertex vertex,
Visibility visibility,
Authorizations authorizations)
Marks a vertex as hidden for a given visibility.
|
void |
markVertexVisible(Vertex vertex,
Visibility visibility,
Authorizations authorizations)
Marks a vertex as visible for a given visibility, effectively undoing markVertexHidden.
|
EdgeBuilderByVertexId |
prepareEdge(String edgeId,
String outVertexId,
String inVertexId,
String label,
Long timestamp,
Visibility visibility)
Prepare an edge to be added to the graph.
|
EdgeBuilderByVertexId |
prepareEdge(String edgeId,
String outVertexId,
String inVertexId,
String label,
Visibility visibility)
Prepare an edge to be added to the graph.
|
EdgeBuilderByVertexId |
prepareEdge(String outVertexId,
String inVertexId,
String label,
Visibility visibility)
Prepare an edge to be added to the graph.
|
EdgeBuilder |
prepareEdge(String edgeId,
Vertex outVertex,
Vertex inVertex,
String label,
Long timestamp,
Visibility visibility)
Prepare an edge to be added to the graph.
|
EdgeBuilder |
prepareEdge(String edgeId,
Vertex outVertex,
Vertex inVertex,
String label,
Visibility visibility)
Prepare an edge to be added to the graph.
|
EdgeBuilder |
prepareEdge(Vertex outVertex,
Vertex inVertex,
String label,
Visibility visibility)
Prepare an edge to be added to the graph.
|
VertexBuilder |
prepareVertex(Long timestamp,
Visibility visibility)
Prepare a vertex to be added to the graph.
|
VertexBuilder |
prepareVertex(String vertexId,
Long timestamp,
Visibility visibility)
Prepare a vertex to be added to the graph.
|
VertexBuilder |
prepareVertex(String vertexId,
Visibility visibility)
Prepare a vertex to be added to the graph.
|
VertexBuilder |
prepareVertex(Visibility visibility)
Prepare a vertex to be added to the graph.
|
GraphQuery |
query(Authorizations authorizations)
Creates a query builder object used to query the graph.
|
MultiVertexQuery |
query(String[] vertexIds,
Authorizations authorizations)
Creates a query builder object used to query a list of vertices.
|
MultiVertexQuery |
query(String[] vertexIds,
String queryString,
Authorizations authorizations)
Creates a query builder object used to query a list of vertices.
|
GraphQuery |
query(String queryString,
Authorizations authorizations)
Creates a query builder object used to query the graph.
|
SimilarToGraphQuery |
querySimilarTo(String[] fields,
String text,
Authorizations authorizations)
Creates a query builder object that finds all vertices similar to the given text for the specified fields.
|
void |
reindex(Authorizations authorizations)
Reindex all vertices and edges.
|
Iterable<Element> |
saveElementMutations(Iterable<ElementMutation> mutations,
Authorizations authorizations)
Saves multiple mutations with a single call.
|
void |
savePropertyDefinition(PropertyDefinition propertyDefinition)
Save a pre-made property definition.
|
void |
setMetadata(String key,
Object value)
Sets metadata on the graph.
|
void |
shutdown()
Cleans up or disconnects from the underlying storage.
|
void |
softDeleteEdge(Edge edge,
Authorizations authorizations)
Soft deletes an edge from the graph.
|
void |
softDeleteEdge(Edge edge,
Long timestamp,
Authorizations authorizations)
Soft deletes an edge from the graph.
|
void |
softDeleteEdge(String edgeId,
Authorizations authorizations)
Soft deletes an edge from the graph.
|
void |
softDeleteEdge(String edgeId,
Long timestamp,
Authorizations authorizations)
Soft deletes an edge from the graph.
|
void |
softDeleteVertex(String vertexId,
Authorizations authorizations)
Soft deletes a vertex from the graph.
|
void |
softDeleteVertex(String vertexId,
Long timestamp,
Authorizations authorizations)
Soft deletes a vertex from the graph.
|
void |
softDeleteVertex(Vertex vertex,
Authorizations authorizations)
Soft deletes a vertex from the graph.
|
void |
softDeleteVertex(Vertex vertex,
Long timestamp,
Authorizations authorizations)
Soft deletes a vertex from the graph.
|
void |
truncate()
Clears all data from the graph.
|
Vertex addVertex(Visibility visibility, Authorizations authorizations)
visibility - The visibility to assign to the new vertex.authorizations - The authorizations required to add and retrieve the new vertex.Vertex addVertex(String vertexId, Visibility visibility, Authorizations authorizations)
vertexId - The id to assign the new vertex.visibility - The visibility to assign to the new vertex.authorizations - The authorizations required to add and retrieve the new vertex.Iterable<Vertex> addVertices(Iterable<ElementBuilder<Vertex>> vertices, Authorizations authorizations)
vertices - The vertices to add.authorizations - The authorizations required to add and retrieve the new vertex.VertexBuilder prepareVertex(Visibility visibility)
visibility - The visibility to assign to the new vertex.VertexBuilder prepareVertex(Long timestamp, Visibility visibility)
timestamp - The timestamp of the vertex. null, to use the system generated time.visibility - The visibility to assign to the new vertex.VertexBuilder prepareVertex(String vertexId, Visibility visibility)
vertexId - The id to assign the new vertex.visibility - The visibility to assign to the new vertex.VertexBuilder prepareVertex(String vertexId, Long timestamp, Visibility visibility)
vertexId - The id to assign the new vertex.timestamp - The timestamp of the vertex.visibility - The visibility to assign to the new vertex.boolean doesVertexExist(String vertexId, Authorizations authorizations)
vertexId - The vertex id to check existence of.authorizations - The authorizations required to load the vertex.Vertex getVertex(String vertexId, Authorizations authorizations)
vertexId - The vertex id to retrieve from the graph.authorizations - The authorizations required to load the vertex.Vertex getVertex(String vertexId, EnumSet<FetchHint> fetchHints, Authorizations authorizations)
vertexId - The vertex id to retrieve from the graph.fetchHints - Hint at what parts of the vertex to fetch.authorizations - The authorizations required to load the vertex.Vertex getVertex(String vertexId, EnumSet<FetchHint> fetchHints, Long endTime, Authorizations authorizations)
vertexId - The vertex id to retrieve from the graph.fetchHints - Hint at what parts of the vertex to fetch.endTime - Include all changes made up until the point in time.authorizations - The authorizations required to load the vertex.Iterable<Vertex> getVerticesWithPrefix(String vertexIdPrefix, Authorizations authorizations)
vertexIdPrefix - The prefix of the vertex ids to retrieve from the graph.authorizations - The authorizations required to load the vertex.Iterable<Vertex> getVerticesWithPrefix(String vertexIdPrefix, EnumSet<FetchHint> fetchHints, Authorizations authorizations)
vertexIdPrefix - The prefix of the vertex ids to retrieve from the graph.fetchHints - Hint at what parts of the vertex to fetch.authorizations - The authorizations required to load the vertex.Iterable<Vertex> getVerticesWithPrefix(String vertexIdPrefix, EnumSet<FetchHint> fetchHints, Long endTime, Authorizations authorizations)
vertexIdPrefix - The prefix of the vertex ids to retrieve from the graph.fetchHints - Hint at what parts of the vertex to fetch.endTime - Include all changes made up until the point in time.authorizations - The authorizations required to load the vertex.Iterable<Vertex> getVerticesInRange(Range idRange, Authorizations authorizations)
idRange - The range of ids to get.authorizations - The authorizations required to load the vertex.Iterable<Vertex> getVerticesInRange(Range idRange, EnumSet<FetchHint> fetchHints, Authorizations authorizations)
idRange - The range of ids to get.fetchHints - Hint at what parts of the vertex to fetch.authorizations - The authorizations required to load the vertex.Iterable<Vertex> getVerticesInRange(Range idRange, EnumSet<FetchHint> fetchHints, Long endTime, Authorizations authorizations)
idRange - The range of ids to get.fetchHints - Hint at what parts of the vertex to fetch.endTime - Include all changes made up until the point in time.authorizations - The authorizations required to load the vertex.Iterable<Vertex> getVertices(Authorizations authorizations)
authorizations - The authorizations required to load the vertex.Iterable<Vertex> getVertices(EnumSet<FetchHint> fetchHints, Authorizations authorizations)
fetchHints - Hint at what parts of the vertex to fetch.authorizations - The authorizations required to load the vertex.Iterable<Vertex> getVertices(EnumSet<FetchHint> fetchHints, Long endTime, Authorizations authorizations)
fetchHints - Hint at what parts of the vertex to fetch.endTime - Include all changes made up until the point in time.authorizations - The authorizations required to load the vertex.Map<String,Boolean> doVerticesExist(Iterable<String> ids, Authorizations authorizations)
ids - The vertex ids to check existence of.authorizations - The authorizations required to load the vertices.Iterable<Vertex> getVertices(Iterable<String> ids, Authorizations authorizations)
getVerticesInOrder(Iterable, Authorizations).
Vertices are not kept in memory during the iteration.ids - The ids of the vertices to get.authorizations - The authorizations required to load the vertex.Iterable<Vertex> getVertices(Iterable<String> ids, EnumSet<FetchHint> fetchHints, Authorizations authorizations)
getVerticesInOrder(Iterable, Authorizations).
Vertices are not kept in memory during the iteration.ids - The ids of the vertices to get.fetchHints - Hint at what parts of the vertex to fetch.authorizations - The authorizations required to load the vertex.Iterable<Vertex> getVertices(Iterable<String> ids, EnumSet<FetchHint> fetchHints, Long endTime, Authorizations authorizations)
getVerticesInOrder(Iterable, Authorizations).
Vertices are not kept in memory during the iteration.ids - The ids of the vertices to get.fetchHints - Hint at what parts of the vertex to fetch.endTime - Include all changes made up until the point in time.authorizations - The authorizations required to load the vertex.List<Vertex> getVerticesInOrder(Iterable<String> ids, Authorizations authorizations)
getVertices(Iterable, Authorizations)
but returns the vertices in the order that you passed in the ids. This requires loading
all the vertices in memory to sort them.ids - The ids of the vertices to get.authorizations - The authorizations required to load the vertex.List<Vertex> getVerticesInOrder(Iterable<String> ids, EnumSet<FetchHint> fetchHints, Authorizations authorizations)
getVertices(Iterable, Authorizations)
but returns the vertices in the order that you passed in the ids. This requires loading
all the vertices in memory to sort them.ids - The ids of the vertices to get.fetchHints - Hint at what parts of the vertex to fetch.authorizations - The authorizations required to load the vertex.void deleteVertex(Vertex vertex, Authorizations authorizations)
vertex - The vertex to delete.authorizations - The authorizations required to delete the vertex.void deleteVertex(String vertexId, Authorizations authorizations)
vertexId - The vertex id to delete.authorizations - The authorizations required to delete the vertex.void softDeleteVertex(Vertex vertex, Authorizations authorizations)
vertex - The vertex to soft delete.authorizations - The authorizations required to soft delete the vertex.void softDeleteVertex(Vertex vertex, Long timestamp, Authorizations authorizations)
vertex - The vertex to soft delete.authorizations - The authorizations required to soft delete the vertex.void softDeleteVertex(String vertexId, Authorizations authorizations)
vertexId - The vertex id to soft delete.authorizations - The authorizations required to soft delete the vertex.void softDeleteVertex(String vertexId, Long timestamp, Authorizations authorizations)
vertexId - The vertex id to soft delete.authorizations - The authorizations required to soft delete the vertex.Edge addEdge(Vertex outVertex, Vertex inVertex, String label, Visibility visibility, Authorizations authorizations)
outVertex - The source vertex. The "out" side of the edge.inVertex - The destination vertex. The "in" side of the edge.label - The label to assign to the edge. eg knows, works at, etc.visibility - The visibility to assign to the new edge.authorizations - The authorizations required to add and retrieve the new edge.Edge addEdge(String edgeId, Vertex outVertex, Vertex inVertex, String label, Visibility visibility, Authorizations authorizations)
edgeId - The id to assign the new edge.outVertex - The source vertex. The "out" side of the edge.inVertex - The destination vertex. The "in" side of the edge.label - The label to assign to the edge. eg knows, works at, etc.visibility - The visibility to assign to the new edge.authorizations - The authorizations required to add and retrieve the new edge.Edge addEdge(String outVertexId, String inVertexId, String label, Visibility visibility, Authorizations authorizations)
outVertexId - The source vertex id. The "out" side of the edge.inVertexId - The destination vertex id. The "in" side of the edge.label - The label to assign to the edge. eg knows, works at, etc.visibility - The visibility to assign to the new edge.authorizations - The authorizations required to add and retrieve the new edge.Edge addEdge(String edgeId, String outVertexId, String inVertexId, String label, Visibility visibility, Authorizations authorizations)
edgeId - The id to assign the new edge.outVertexId - The source vertex id. The "out" side of the edge.inVertexId - The destination vertex id. The "in" side of the edge.label - The label to assign to the edge. eg knows, works at, etc.visibility - The visibility to assign to the new edge.authorizations - The authorizations required to add and retrieve the new edge.EdgeBuilder prepareEdge(Vertex outVertex, Vertex inVertex, String label, Visibility visibility)
outVertex - The source vertex. The "out" side of the edge.inVertex - The destination vertex. The "in" side of the edge.label - The label to assign to the edge. eg knows, works at, etc.visibility - The visibility to assign to the new edge.EdgeBuilder prepareEdge(String edgeId, Vertex outVertex, Vertex inVertex, String label, Visibility visibility)
edgeId - The id to assign the new edge.outVertex - The source vertex. The "out" side of the edge.inVertex - The destination vertex. The "in" side of the edge.label - The label to assign to the edge. eg knows, works at, etc.visibility - The visibility to assign to the new edge.EdgeBuilder prepareEdge(String edgeId, Vertex outVertex, Vertex inVertex, String label, Long timestamp, Visibility visibility)
edgeId - The id to assign the new edge.outVertex - The source vertex. The "out" side of the edge.inVertex - The destination vertex. The "in" side of the edge.label - The label to assign to the edge. eg knows, works at, etc.timestamp - The timestamp of the edge.visibility - The visibility to assign to the new edge.EdgeBuilderByVertexId prepareEdge(String outVertexId, String inVertexId, String label, Visibility visibility)
outVertexId - The source vertex id. The "out" side of the edge.inVertexId - The destination vertex id. The "in" side of the edge.label - The label to assign to the edge. eg knows, works at, etc.visibility - The visibility to assign to the new edge.EdgeBuilderByVertexId prepareEdge(String edgeId, String outVertexId, String inVertexId, String label, Visibility visibility)
edgeId - The id to assign the new edge.outVertexId - The source vertex id. The "out" side of the edge.inVertexId - The destination vertex id. The "in" side of the edge.label - The label to assign to the edge. eg knows, works at, etc.visibility - The visibility to assign to the new edge.EdgeBuilderByVertexId prepareEdge(String edgeId, String outVertexId, String inVertexId, String label, Long timestamp, Visibility visibility)
edgeId - The id to assign the new edge.outVertexId - The source vertex id. The "out" side of the edge.inVertexId - The destination vertex id. The "in" side of the edge.label - The label to assign to the edge. eg knows, works at, etc.timestamp - The timestamp of the edge.visibility - The visibility to assign to the new edge.boolean doesEdgeExist(String edgeId, Authorizations authorizations)
edgeId - The edge id to check existence of.authorizations - The authorizations required to load the edge.Edge getEdge(String edgeId, Authorizations authorizations)
edgeId - The edge id to retrieve from the graph.authorizations - The authorizations required to load the edge.Edge getEdge(String edgeId, EnumSet<FetchHint> fetchHints, Authorizations authorizations)
edgeId - The edge id to retrieve from the graph.fetchHints - Hint at what parts of the edge to fetch.authorizations - The authorizations required to load the edge.Edge getEdge(String edgeId, EnumSet<FetchHint> fetchHints, Long endTime, Authorizations authorizations)
edgeId - The edge id to retrieve from the graph.fetchHints - Hint at what parts of the edge to fetch.endTime - Include all changes made up until the point in time.authorizations - The authorizations required to load the edge.Iterable<Edge> getEdges(Authorizations authorizations)
authorizations - The authorizations required to load the edge.Iterable<Edge> getEdges(EnumSet<FetchHint> fetchHints, Authorizations authorizations)
fetchHints - Hint at what parts of the edge to fetch.authorizations - The authorizations required to load the edge.Iterable<Edge> getEdges(EnumSet<FetchHint> fetchHints, Long endTime, Authorizations authorizations)
fetchHints - Hint at what parts of the edge to fetch.endTime - Include all changes made up until the point in time.authorizations - The authorizations required to load the edge.Iterable<Edge> getEdgesInRange(Range idRange, Authorizations authorizations)
idRange - The range of ids to get.authorizations - The authorizations required to load the vertex.Iterable<Edge> getEdgesInRange(Range idRange, EnumSet<FetchHint> fetchHints, Authorizations authorizations)
idRange - The range of ids to get.fetchHints - Hint at what parts of the vertex to fetch.authorizations - The authorizations required to load the vertex.Iterable<Edge> getEdgesInRange(Range idRange, EnumSet<FetchHint> fetchHints, Long endTime, Authorizations authorizations)
idRange - The range of ids to get.fetchHints - Hint at what parts of the vertex to fetch.endTime - Include all changes made up until the point in time.authorizations - The authorizations required to load the vertex.Iterable<String> filterEdgeIdsByAuthorization(Iterable<String> edgeIds, String authorizationToMatch, EnumSet<ElementFilter> filters, Authorizations authorizations)
edgeIds - The edge ids to filter on.authorizationToMatch - The authorization to look forfilters - The parts of the edge to filter onauthorizations - The authorization to find the edges withIterable<String> filterVertexIdsByAuthorization(Iterable<String> vertexIds, String authorizationToMatch, EnumSet<ElementFilter> filters, Authorizations authorizations)
vertexIds - The vertex ids to filter on.authorizationToMatch - The authorization to look forfilters - The parts of the edge to filter onauthorizations - The authorization to find the edges withMap<String,Boolean> doEdgesExist(Iterable<String> ids, Authorizations authorizations)
ids - The edge ids to check existence of.authorizations - The authorizations required to load the edges.Map<String,Boolean> doEdgesExist(Iterable<String> ids, Long endTime, Authorizations authorizations)
ids - The edge ids to check existence of.endTime - Include all changes made up until the point in time.authorizations - The authorizations required to load the edges.Iterable<Edge> getEdges(Iterable<String> ids, Authorizations authorizations)
ids - The ids of the edges to get.authorizations - The authorizations required to load the edge.Iterable<Edge> getEdges(Iterable<String> ids, EnumSet<FetchHint> fetchHints, Authorizations authorizations)
ids - The ids of the edges to get.fetchHints - Hint at what parts of the edge to fetch.authorizations - The authorizations required to load the edge.Iterable<Edge> getEdges(Iterable<String> ids, EnumSet<FetchHint> fetchHints, Long endTime, Authorizations authorizations)
ids - The ids of the edges to get.fetchHints - Hint at what parts of the edge to fetch.endTime - Include all changes made up until the point in time.authorizations - The authorizations required to load the edge.@Deprecated Iterable<String> findRelatedEdges(Iterable<String> vertexIds, Authorizations authorizations)
@Deprecated Iterable<String> findRelatedEdges(Iterable<String> vertexIds, Long endTime, Authorizations authorizations)
Iterable<String> findRelatedEdgeIdsForVertices(Iterable<Vertex> vertices, Authorizations authorizations)
vertices - The list of vertices.authorizations - The authorizations required to load the edges.Iterable<String> findRelatedEdgeIds(Iterable<String> vertexIds, Authorizations authorizations)
vertexIds - The list of vertex ids.authorizations - The authorizations required to load the edges.Iterable<String> findRelatedEdgeIds(Iterable<String> vertexIds, Long endTime, Authorizations authorizations)
vertexIds - The list of vertex ids.endTime - Include all changes made up until the point in time.authorizations - The authorizations required to load the edges.Iterable<RelatedEdge> findRelatedEdgeSummaryForVertices(Iterable<Vertex> vertices, Authorizations authorizations)
vertices - The list of vertices.authorizations - The authorizations required to load the edges.Iterable<RelatedEdge> findRelatedEdgeSummary(Iterable<String> vertexIds, Authorizations authorizations)
vertexIds - The list of vertex ids.authorizations - The authorizations required to load the edges.Iterable<RelatedEdge> findRelatedEdgeSummary(Iterable<String> vertexIds, Long endTime, Authorizations authorizations)
vertexIds - The list of vertex ids.endTime - Include all changes made up until the point in time.authorizations - The authorizations required to load the edges.void deleteEdge(Edge edge, Authorizations authorizations)
edge - The edge to delete from the graph.authorizations - The authorizations required to delete the edge.void deleteEdge(String edgeId, Authorizations authorizations)
edgeId - The edge id of the edge to delete from the graph.authorizations - The authorizations required to delete the edge.void softDeleteEdge(Edge edge, Authorizations authorizations)
edge - The edge to soft delete from the graph.authorizations - The authorizations required to delete the edge.void softDeleteEdge(Edge edge, Long timestamp, Authorizations authorizations)
edge - The edge to soft delete from the graph.authorizations - The authorizations required to delete the edge.void softDeleteEdge(String edgeId, Authorizations authorizations)
edgeId - The edge id of the vertex to soft delete from the graph.authorizations - The authorizations required to delete the edge.void softDeleteEdge(String edgeId, Long timestamp, Authorizations authorizations)
edgeId - The edge id of the vertex to soft delete from the graph.authorizations - The authorizations required to delete the edge.GraphQuery query(String queryString, Authorizations authorizations)
queryString - The string to search for in the text of an element. This will search all fields for the given text.authorizations - The authorizations required to load the elements.GraphQuery query(Authorizations authorizations)
authorizations - The authorizations required to load the elements.MultiVertexQuery query(String[] vertexIds, String queryString, Authorizations authorizations)
vertexIds - The vertex ids to query.queryString - The string to search for in the text of an element. This will search all fields for the given text.authorizations - The authorizations required to load the elements.MultiVertexQuery query(String[] vertexIds, Authorizations authorizations)
vertexIds - The vertex ids to query.authorizations - The authorizations required to load the elements.boolean isQuerySimilarToTextSupported()
SimilarToGraphQuery querySimilarTo(String[] fields, String text, Authorizations authorizations)
fields - The fields to match against.text - The text to find similar to.authorizations - The authorizations required to load the elements.void flush()
void shutdown()
@Deprecated Iterable<Path> findPaths(String sourceVertexId, String destVertexId, int maxHops, Authorizations authorizations)
findPaths(FindPathOptions, Authorizations)sourceVertexId - The source vertex id to start the search from.destVertexId - The destination vertex id to get to.maxHops - The maximum number of hops to make before giving up.authorizations - The authorizations required to load all edges and vertices.@Deprecated Iterable<Path> findPaths(String sourceVertexId, String destVertexId, String[] labels, int maxHops, Authorizations authorizations)
findPaths(FindPathOptions, Authorizations)sourceVertexId - The source vertex id to start the search from.destVertexId - The destination vertex id to get to.labels - Edge labelsmaxHops - The maximum number of hops to make before giving up.authorizations - The authorizations required to load all edges and vertices.@Deprecated Iterable<Path> findPaths(String sourceVertexId, String destVertexId, int maxHops, ProgressCallback progressCallback, Authorizations authorizations)
findPaths(FindPathOptions, Authorizations)sourceVertexId - The source vertex id to start the search from.destVertexId - The destination vertex id to get to.maxHops - The maximum number of hops to make before giving up.progressCallback - Callback used to report progress.authorizations - The authorizations required to load all edges and vertices.@Deprecated Iterable<Path> findPaths(String sourceVertexId, String destVertexId, String[] labels, int maxHops, ProgressCallback progressCallback, Authorizations authorizations)
findPaths(FindPathOptions, Authorizations)sourceVertexId - The source vertex id to start the search from.destVertexId - The destination vertex id to get to.labels - Edge labelsmaxHops - The maximum number of hops to make before giving up.progressCallback - Callback used to report progress.authorizations - The authorizations required to load all edges and vertices.Iterable<Path> findPaths(FindPathOptions options, Authorizations authorizations)
options - Find path optionsauthorizations - The authorizations required to load all edges and vertices.IdGenerator getIdGenerator()
boolean isVisibilityValid(Visibility visibility, Authorizations authorizations)
visibility - The visibility you want to check.authorizations - The given authorizations.void reindex(Authorizations authorizations)
authorizations - authorizations used to query for the data to reindex.void setMetadata(String key, Object value)
key - The key to the metadata.value - The value to set.Object getMetadata(String key)
key - The key to the metadata.Iterable<GraphMetadataEntry> getMetadata()
Iterable<GraphMetadataEntry> getMetadataWithPrefix(String prefix)
boolean isFieldBoostSupported()
void truncate()
void drop()
SearchIndexSecurityGranularity getSearchIndexSecurityGranularity()
SearchIndexSecurityGranularityvoid addGraphEventListener(GraphEventListener graphEventListener)
void markVertexHidden(Vertex vertex, Visibility visibility, Authorizations authorizations)
vertex - The vertex to mark hidden.visibility - The visibility string under which this vertex is hidden.
This visibility can be a superset of the vertex visibility to mark
it as hidden for only a subset of authorizations.authorizations - The authorizations used.void markVertexVisible(Vertex vertex, Visibility visibility, Authorizations authorizations)
vertex - The vertex to mark visible.visibility - The visibility string under which this vertex is now visible.authorizations - The authorizations used.void markEdgeHidden(Edge edge, Visibility visibility, Authorizations authorizations)
edge - The edge to mark hidden.visibility - The visibility string under which this edge is hidden.
This visibility can be a superset of the edge visibility to mark
it as hidden for only a subset of authorizations.authorizations - The authorizations used.void markEdgeVisible(Edge edge, Visibility visibility, Authorizations authorizations)
edge - The edge to mark visible.visibility - The visibility string under which this edge is now visible.authorizations - The authorizations used.Authorizations createAuthorizations(String... auths)
auths - The authorizations granted.Authorizations createAuthorizations(Collection<String> auths)
auths - The authorizations granted.Authorizations createAuthorizations(Authorizations auths, String... additionalAuthorizations)
auths - The authorizations granted.additionalAuthorizations - additional authorizationsAuthorizations createAuthorizations(Authorizations auths, Collection<String> additionalAuthorizations)
auths - The authorizations granted.additionalAuthorizations - additional authorizationsMap<Object,Long> getVertexPropertyCountByValue(String propertyName, Authorizations authorizations)
propertyName - The name of the property to findauthorizations - The authorizations to use to find the propertylong getVertexCount(Authorizations authorizations)
long getEdgeCount(Authorizations authorizations)
void savePropertyDefinition(PropertyDefinition propertyDefinition)
propertyDefinition - the property definition to save.DefinePropertyBuilder defineProperty(String propertyName)
propertyName - The name of the property to define.boolean isPropertyDefined(String propertyName)
PropertyDefinition getPropertyDefinition(String propertyName)
propertyName - name of the propertyCollection<PropertyDefinition> getPropertyDefinitions()
Iterable<Element> saveElementMutations(Iterable<ElementMutation> mutations, Authorizations authorizations)
mutations - the mutations to saveauthorizations - the authorizations used during saveList<InputStream> getStreamingPropertyValueInputStreams(List<StreamingPropertyValue> streamingPropertyValues)
streamingPropertyValues - list of StreamingPropertyValues to get input streams forCopyright © 2014–2017. All rights reserved.