public abstract class AbstractStorableGraph<V extends StorableVertex,E extends StorableEdge> extends GraphBaseWithSearchIndex implements StorableGraph<V,E>
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractStorableGraph.AddEdgeToVertexRunnable |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
cacheEnabled |
protected static String |
dataTableName |
protected static String |
edgesTableName |
protected CacheOptions |
elementCacheOptions |
protected CacheService |
elementCacheService |
protected ElementMutationBuilder |
elementMutationBuilder |
protected static String |
extendedDataTableName |
protected GeSerializer |
geSerializer |
protected Queue<GraphEvent> |
graphEventQueue |
protected GraphMetadataStore |
graphMetadataStore |
protected static String |
historyEdgesTableName |
protected static String |
historyVerticesTableName |
protected static String |
metadataTableName |
protected NameSubstitutionStrategy |
nameSubstitutionStrategy |
protected StreamingPropertyValueStorageStrategy |
streamingPropertyValueStorageStrategy |
protected static String |
verticesTableName |
METADATA_ID_GENERATOR_CLASSNAMEflushStackTraceTracker, flushTimer, METADATA_DEFINE_PROPERTY_PREFIX, QUERY_LOGGER| Modifier | Constructor and Description |
|---|---|
protected |
AbstractStorableGraph(StorableGraphConfiguration config) |
| Modifier and Type | Method and Description |
|---|---|
void |
addElementToCache(ElementType elementType,
Element element) |
protected void |
addMutations(Element element,
StoreMutation... mutations) |
protected abstract void |
addMutations(GeObjectType objectType,
StoreMutation... mutations) |
void |
alterConceptType(V vertex,
String newConceptType) |
void |
alterEdgeLabel(E edge,
String newEdgeLabel,
Authorizations authorizations) |
void |
alterElementPropertyVisibilities(StorableElement element,
List<AlterPropertyVisibility> alterPropertyVisibilities) |
void |
alterElementVisibility(StorableElement element,
Visibility newVisibility,
Authorizations authorizations) |
void |
alterPropertyMetadatas(StorableElement element,
List<SetPropertyMetadata> setPropertyMetadatas) |
Authorizations |
createAuthorizations(String... auths)
Creates an authorizations object.
|
protected StorableEdge |
createEdge(EdgeBuilderBase edgeBuilder,
long timestamp,
FetchHints fetchHints,
Authorizations authorizations) |
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 |
deleteElements(Stream<? extends ElementId> elementIds,
Authorizations authorizations)
Deletes multiple elements
|
void |
deleteExtendedDataRow(ExtendedDataRowId rowId,
Authorizations authorizations)
Deletes an extended data row
|
void |
deleteProperty(StorableElement element,
Property property,
Authorizations authorizations) |
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.
|
String |
getDataTableName() |
static String |
getDataTableName(String tableNamePrefix) |
Edge |
getEdge(String edgeId,
FetchHints 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(FetchHints fetchHints,
Long endTime,
Authorizations authorizations)
Gets all edges on the graph.
|
abstract Iterable<Edge> |
getEdgesInRange(IdRange range,
FetchHints fetchHints,
Long endTime,
Authorizations authorizations)
Gets edges from the graph in the given range.
|
String |
getEdgesTableName() |
static String |
getEdgesTableName(String tableNamePrefix) |
Iterable<ExtendedDataRow> |
getExtendedData(Iterable<ExtendedDataRowId> ids,
FetchHints fetchHints,
Authorizations authorizations)
Gets the specified extended data rows.
|
Iterable<ExtendedDataRow> |
getExtendedDataForElements(Iterable<? extends ElementId> elementIdsArg,
String tableName,
FetchHints fetchHints,
Authorizations authorizations)
Gets the specified extended data rows.
|
Iterable<ExtendedDataRow> |
getExtendedDataInRange(ElementType elementType,
IdRange elementIdRange,
Authorizations authorizations)
Gets extended data rows from the graph in the given range.
|
Iterable<ExtendedDataRow> |
getExtendedDataInRange(IdRange extendedDataRowKeyRange,
Authorizations authorizations) |
protected abstract Iterable<ExtendedDataRow> |
getExtendedDataRowsInRange(List<IdRange> ranges,
FetchHints fetchHints,
Authorizations authorizations) |
static String |
getExtendedDataTableName() |
static String |
getExtendedDataTableName(String tableNamePrefix) |
GeSerializer |
getGeSerializer() |
protected GraphMetadataStore |
getGraphMetadataStore() |
String |
getHistoryEdgesTableName() |
static String |
getHistoryEdgesTableName(String tableNamePrefix) |
String |
getHistoryTableNameFromElementType(ElementType elementType) |
String |
getHistoryVerticesTableName() |
static String |
getHistoryVerticesTableName(String tableNamePrefix) |
String |
getMetadataTableName() |
static String |
getMetadataTableName(String tableNamePrefix) |
NameSubstitutionStrategy |
getNameSubstitutionStrategy() |
protected abstract long |
getRowCountFromTable(String tableName,
String signalColumn,
Authorizations authorizations) |
List<InputStream> |
getStreamingPropertyValueInputStreams(List<StreamingPropertyValue> streamingPropertyValues)
Opens multiple StreamingPropertyValue input streams at once.
|
StreamingPropertyValueStorageStrategy |
getStreamingPropertyValueStorageStrategy() |
String |
getTableNameFromElementType(ElementType elementType) |
Vertex |
getVertex(String vertexId,
FetchHints 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.
|
Iterable<String> |
getVertexIds(Authorizations authorizations) |
Iterable<Vertex> |
getVertices(FetchHints fetchHints,
Long endTime,
Authorizations authorizations)
Gets all vertices on the graph.
|
abstract Iterable<Vertex> |
getVerticesInRange(IdRange idRange,
FetchHints fetchHints,
Long endTime,
Authorizations authorizations)
Gets vertices from the graph in the given range.
|
String |
getVerticesTableName() |
static String |
getVerticesTableName(String tableNamePrefix) |
Iterable<Vertex> |
getVerticesWithPrefix(String vertexIdPrefix,
FetchHints fetchHints,
Long endTime,
Authorizations authorizations)
Gets vertices from the graph given the prefix.
|
void |
invalidateElementFromCache(ElementType elementType,
String id) |
protected boolean |
isHistoryInSeparateTable() |
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 |
markPropertyHidden(StorableElement element,
Property property,
Long timestamp,
Visibility visibility,
Authorizations authorizations) |
void |
markPropertyVisible(StorableElement element,
Property property,
Long timestamp,
Visibility visibility,
Authorizations authorizations) |
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.
|
StorableEdgeBuilderByVertexId |
prepareEdge(String edgeId,
String outVertexId,
String inVertexId,
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,
Long timestamp,
Visibility visibility)
Prepare an edge to be added to the graph.
|
StorableVertexBuilder |
prepareVertex(String vertexId,
Long timestamp,
Visibility visibility,
String conceptType)
Prepare a vertex to be added to the graph.
|
void |
saveExtendedDataMutations(Element element,
ElementType elementType,
IndexHint indexHint,
Iterable<ExtendedDataMutation> extendedData,
Iterable<ExtendedDataDeleteMutation> extendedDataDeletes,
Authorizations authorizations) |
void |
saveProperties(StorableElement element,
Iterable<Property> properties,
Iterable<PropertyDeleteMutation> propertyDeletes,
Iterable<PropertySoftDeleteMutation> propertySoftDeletes) |
void |
setGraphMetadataStore(GraphMetadataStore graphMetadataStore) |
protected void |
setup() |
protected void |
setupGraphMetadata() |
protected void |
setupGraphMetadata(GraphMetadataEntry graphMetadataEntry) |
void |
softDeleteEdge(Edge edge,
Long timestamp,
Authorizations authorizations)
Soft deletes an edge from the graph.
|
void |
softDeleteProperties(Iterable<Property> properties,
StorableElement element,
Authorizations authorizations) |
void |
softDeleteProperty(StorableElement element,
Property property,
Authorizations authorizations) |
void |
softDeleteVertex(Vertex vertex,
Long timestamp,
Authorizations authorizations)
Soft deletes a vertex from the graph.
|
drop, flush, getBackupDir, getBackupTool, getConfiguration, getDefaultFetchHints, getIdGenerator, getRestoreTool, getSearchIndex, getSearchIndexSecurityGranularity, getVertexPropertyCountByValue, isFieldBoostSupported, isQuerySimilarToTextSupported, prepareVertex, query, query, query, query, querySimilarTo, reindex, reindexVertices, saveElementMutations, shutdown, truncateaddGraphEventListener, addToPropertyDefinitionCache, clearPropertyDefinitionCache, createAuthorizations, deleteAllExtendedDataForElement, dumpGraph, ensurePropertyDefined, filterEdgeIdsByAuthorization, filterVertexIdsByAuthorization, findPaths, findPathsRecursive, findPathsSetIntersection, fireGraphEvent, getAllExtendedData, getMetadata, getMetadata, getMetadataWithPrefix, getMetricsRegistry, getPropertyDefinition, getPropertyDefinitions, getValueType, hasEventListeners, invalidatePropertyDefinition, isPropertyDefined, orderMutations, reloadMetadata, removeGraphEventListener, removeMetadata, removePropertyDefinition, savePropertyDefinition, setMetadataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHistoricalPropertyValuesflushGraph, getSearchIndexaddEdge, addEdge, addEdge, addEdge, addGraphEventListener, addVertex, addVertex, addVertices, createAuthorizations, createAuthorizations, createAuthorizations, defineProperty, deleteElement, doEdgesExist, doEdgesExist, doesEdgeExist, doesVertexExist, doVerticesExist, drop, dumpGraph, ensurePropertyDefined, filterEdgeIdsByAuthorization, filterVertexIdsByAuthorization, findPaths, findPaths, findPaths, findPaths, findPaths, findRelatedEdgeIds, findRelatedEdgeIds, findRelatedEdgeIdsForVertices, findRelatedEdges, findRelatedEdges, findRelatedEdgeSummary, findRelatedEdgeSummary, findRelatedEdgeSummaryForVertices, flush, getDefaultFetchHints, getEdge, getEdge, getEdges, getEdges, getEdges, getEdges, getEdges, getEdgesInRange, getEdgesInRange, getElement, getElement, getExtendedData, getExtendedData, getExtendedData, getExtendedData, getExtendedData, getExtendedData, getExtendedDataForElements, getExtendedDataForElements, getExtendedDataForElements, getIdGenerator, getMetadata, getMetadata, getMetadataWithPrefix, getMetricsRegistry, getPropertyDefinition, getPropertyDefinitions, getSearchIndexSecurityGranularity, getVertex, getVertex, getVertexPropertyCountByValue, getVertices, getVertices, getVertices, getVertices, getVertices, getVerticesInOrder, getVerticesInOrder, getVerticesInRange, getVerticesInRange, getVerticesWithPrefix, getVerticesWithPrefix, isFieldBoostSupported, isPropertyDefined, isQuerySimilarToTextSupported, prepareEdge, prepareEdge, prepareEdge, prepareEdge, prepareVertex, prepareVertex, prepareVertex, query, query, query, query, querySimilarTo, reindex, reloadMetadata, removeGraphEventListener, removeMetadata, removePropertyDefinition, saveElementMutations, savePropertyDefinition, setMetadata, shutdown, softDeleteEdge, softDeleteEdge, softDeleteEdge, softDeleteVertex, softDeleteVertex, softDeleteVertex, truncate, visit, visitEdges, visitElements, visitVerticesprotected static String verticesTableName
protected static String historyVerticesTableName
protected static String edgesTableName
protected static String historyEdgesTableName
protected static String extendedDataTableName
protected static String dataTableName
protected static String metadataTableName
protected final Queue<GraphEvent> graphEventQueue
protected final ElementMutationBuilder elementMutationBuilder
protected NameSubstitutionStrategy nameSubstitutionStrategy
protected final StreamingPropertyValueStorageStrategy streamingPropertyValueStorageStrategy
protected final GeSerializer geSerializer
protected final boolean cacheEnabled
protected GraphMetadataStore graphMetadataStore
protected final CacheService elementCacheService
protected final CacheOptions elementCacheOptions
protected AbstractStorableGraph(StorableGraphConfiguration config)
protected void setup()
setup in class GraphBaseWithSearchIndexprotected void setupGraphMetadata()
setupGraphMetadata in class GraphBaseWithSearchIndexprotected void setupGraphMetadata(GraphMetadataEntry graphMetadataEntry)
setupGraphMetadata in class GraphBaseWithSearchIndexpublic StorableVertexBuilder prepareVertex(String vertexId, Long timestamp, Visibility visibility, String conceptType)
GraphprepareVertex in interface GraphprepareVertex in class GraphBaseWithSearchIndexvertexId - The id to assign the new vertex.timestamp - The timestamp of the vertex.visibility - The visibility to assign to the new vertex.conceptType - The concept to assign the new vertex.public void saveProperties(StorableElement element, Iterable<Property> properties, Iterable<PropertyDeleteMutation> propertyDeletes, Iterable<PropertySoftDeleteMutation> propertySoftDeletes)
saveProperties in interface StorableGraph<V extends StorableVertex,E extends StorableEdge>public void deleteProperty(StorableElement element, Property property, Authorizations authorizations)
deleteProperty in interface StorableGraph<V extends StorableVertex,E extends StorableEdge>public void softDeleteProperty(StorableElement element, Property property, Authorizations authorizations)
softDeleteProperty in interface StorableGraph<V extends StorableVertex,E extends StorableEdge>public void softDeleteProperties(Iterable<Property> properties, StorableElement element, Authorizations authorizations)
softDeleteProperties in interface StorableGraph<V extends StorableVertex,E extends StorableEdge>protected void addMutations(Element element, StoreMutation... mutations)
protected abstract void addMutations(GeObjectType objectType, StoreMutation... mutations)
public Iterable<Vertex> getVertices(FetchHints fetchHints, Long endTime, Authorizations authorizations) throws GeException
GraphgetVertices in interface GraphgetVertices in class GraphBaseWithSearchIndexfetchHints - 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.GeExceptionpublic void deleteElements(Stream<? extends ElementId> elementIds, Authorizations authorizations)
GraphdeleteElements in interface GraphelementIds - The element ids to deleteauthorizations - The authorizations required to delete the elementspublic void deleteVertex(Vertex vertex, Authorizations authorizations)
GraphdeleteVertex in interface GraphdeleteVertex in class GraphBaseWithSearchIndexvertex - The vertex to delete.authorizations - The authorizations required to delete the vertex.public void deleteVertex(String vertexId, Authorizations authorizations)
GraphdeleteVertex in interface GraphvertexId - The vertex id to delete.authorizations - The authorizations required to delete the vertex.public void deleteEdge(String edgeId, Authorizations authorizations)
GraphdeleteEdge in interface GraphedgeId - The edge id of the edge to delete from the graph.authorizations - The authorizations required to delete the edge.public void softDeleteVertex(Vertex vertex, Long timestamp, Authorizations authorizations)
GraphsoftDeleteVertex in interface GraphsoftDeleteVertex in class GraphBaseWithSearchIndexvertex - The vertex to soft delete.authorizations - The authorizations required to soft delete the vertex.public void markVertexHidden(Vertex vertex, Visibility visibility, Authorizations authorizations)
GraphmarkVertexHidden in interface GraphmarkVertexHidden in class GraphBaseWithSearchIndexvertex - 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.public void markVertexVisible(Vertex vertex, Visibility visibility, Authorizations authorizations)
GraphmarkVertexVisible in interface GraphmarkVertexVisible in class GraphBaseWithSearchIndexvertex - The vertex to mark visible.visibility - The visibility string under which this vertex is now visible.authorizations - The authorizations used.public List<InputStream> getStreamingPropertyValueInputStreams(List<StreamingPropertyValue> streamingPropertyValues)
GraphgetStreamingPropertyValueInputStreams in interface GraphstreamingPropertyValues - list of StreamingPropertyValues to get input streams forpublic Iterable<ExtendedDataRow> getExtendedData(Iterable<ExtendedDataRowId> ids, FetchHints fetchHints, Authorizations authorizations)
GraphgetExtendedData in interface GraphgetExtendedData in class GraphBaseids - The ids of the rows to get.authorizations - The authorizations used to get the rowsprotected abstract Iterable<ExtendedDataRow> getExtendedDataRowsInRange(List<IdRange> ranges, FetchHints fetchHints, Authorizations authorizations)
public Iterable<ExtendedDataRow> getExtendedDataForElements(Iterable<? extends ElementId> elementIdsArg, String tableName, FetchHints fetchHints, Authorizations authorizations)
GraphgetExtendedDataForElements in interface GraphgetExtendedDataForElements in class GraphBaseelementIdsArg - The element ids of the elements to get the rows fromtableName - The name of the table within the element to get the rows fromfetchHints - Fetch hints to filter extended dataauthorizations - The authorizations used to get the rowspublic Iterable<ExtendedDataRow> getExtendedDataInRange(ElementType elementType, IdRange elementIdRange, Authorizations authorizations)
GraphgetExtendedDataInRange in interface GraphgetExtendedDataInRange in class GraphBaseelementType - The type of element to get the rows fromelementIdRange - The range of element ids to get extended data rows for.authorizations - The authorizations required to load the vertex.public Iterable<ExtendedDataRow> getExtendedDataInRange(IdRange extendedDataRowKeyRange, Authorizations authorizations)
public void saveExtendedDataMutations(Element element, ElementType elementType, IndexHint indexHint, Iterable<ExtendedDataMutation> extendedData, Iterable<ExtendedDataDeleteMutation> extendedDataDeletes, Authorizations authorizations)
saveExtendedDataMutations in interface StorableGraph<V extends StorableVertex,E extends StorableEdge>public Edge getEdge(String edgeId, FetchHints fetchHints, Long endTime, Authorizations authorizations)
GraphgetEdge in interface GraphedgeId - 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.public Iterable<Edge> getEdges(FetchHints fetchHints, Long endTime, Authorizations authorizations)
GraphgetEdges in interface GraphgetEdges in class GraphBaseWithSearchIndexfetchHints - 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.public abstract Iterable<Edge> getEdgesInRange(IdRange range, FetchHints fetchHints, Long endTime, Authorizations authorizations)
GraphgetEdgesInRange in interface Graphrange - 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.public StorableEdgeBuilderByVertexId prepareEdge(String edgeId, String outVertexId, String inVertexId, String label, Long timestamp, Visibility visibility)
GraphprepareEdge in interface GraphprepareEdge in class GraphBaseWithSearchIndexedgeId - 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.public EdgeBuilder prepareEdge(String edgeId, Vertex outVertex, Vertex inVertex, String label, Long timestamp, Visibility visibility)
GraphprepareEdge in interface GraphprepareEdge in class GraphBaseWithSearchIndexedgeId - 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.protected StorableEdge createEdge(EdgeBuilderBase edgeBuilder, long timestamp, FetchHints fetchHints, Authorizations authorizations)
public void deleteExtendedDataRow(ExtendedDataRowId rowId, Authorizations authorizations)
GraphdeleteExtendedDataRow in interface Graphpublic void softDeleteEdge(Edge edge, Long timestamp, Authorizations authorizations)
GraphsoftDeleteEdge in interface GraphsoftDeleteEdge in class GraphBaseWithSearchIndexedge - The edge to soft delete from the graph.authorizations - The authorizations required to delete the edge.public void deleteEdge(Edge edge, Authorizations authorizations)
GraphdeleteEdge in interface GraphdeleteEdge in class GraphBaseWithSearchIndexedge - The edge to delete from the graph.authorizations - The authorizations required to delete the edge.public void markEdgeHidden(Edge edge, Visibility visibility, Authorizations authorizations)
GraphmarkEdgeHidden in interface GraphmarkEdgeHidden in class GraphBaseWithSearchIndexedge - 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.public void markEdgeVisible(Edge edge, Visibility visibility, Authorizations authorizations)
GraphmarkEdgeVisible in interface GraphmarkEdgeVisible in class GraphBaseWithSearchIndexedge - The edge to mark visible.visibility - The visibility string under which this edge is now visible.authorizations - The authorizations used.public Authorizations createAuthorizations(String... auths)
GraphcreateAuthorizations in interface GraphcreateAuthorizations in class GraphBaseWithSearchIndexauths - The authorizations granted.public Vertex getVertex(String vertexId, FetchHints fetchHints, Long endTime, Authorizations authorizations) throws GeException
GraphgetVertex in interface GraphvertexId - 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.GeExceptionpublic Iterable<String> getVertexIds(Authorizations authorizations)
getVertexIds in interface Graphpublic Iterable<Vertex> getVerticesWithPrefix(String vertexIdPrefix, FetchHints fetchHints, Long endTime, Authorizations authorizations)
GraphgetVerticesWithPrefix in interface GraphvertexIdPrefix - 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.public abstract Iterable<Vertex> getVerticesInRange(IdRange idRange, FetchHints fetchHints, Long endTime, Authorizations authorizations)
GraphgetVerticesInRange in interface GraphidRange - 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.public void alterElementVisibility(StorableElement element, Visibility newVisibility, Authorizations authorizations)
alterElementVisibility in interface StorableGraph<V extends StorableVertex,E extends StorableEdge>public void alterEdgeLabel(E edge, String newEdgeLabel, Authorizations authorizations)
alterEdgeLabel in interface StorableGraph<V extends StorableVertex,E extends StorableEdge>public void alterConceptType(V vertex, String newConceptType)
alterConceptType in interface StorableGraph<V extends StorableVertex,E extends StorableEdge>public void alterElementPropertyVisibilities(StorableElement element, List<AlterPropertyVisibility> alterPropertyVisibilities)
alterElementPropertyVisibilities in interface StorableGraph<V extends StorableVertex,E extends StorableEdge>public void alterPropertyMetadatas(StorableElement element, List<SetPropertyMetadata> setPropertyMetadatas)
alterPropertyMetadatas in interface StorableGraph<V extends StorableVertex,E extends StorableEdge>public boolean isVisibilityValid(Visibility visibility, Authorizations authorizations)
GraphisVisibilityValid in interface GraphisVisibilityValid in class GraphBaseWithSearchIndexvisibility - The visibility you want to check.authorizations - The given authorizations.public void markPropertyHidden(StorableElement element, Property property, Long timestamp, Visibility visibility, Authorizations authorizations)
markPropertyHidden in interface StorableGraph<V extends StorableVertex,E extends StorableEdge>public void markPropertyVisible(StorableElement element, Property property, Long timestamp, Visibility visibility, Authorizations authorizations)
markPropertyVisible in interface StorableGraph<V extends StorableVertex,E extends StorableEdge>public long getVertexCount(Authorizations authorizations)
GraphgetVertexCount in interface Graphpublic long getEdgeCount(Authorizations authorizations)
GraphgetEdgeCount in interface Graphprotected abstract long getRowCountFromTable(String tableName, String signalColumn, Authorizations authorizations)
public void invalidateElementFromCache(ElementType elementType, String id)
invalidateElementFromCache in interface StorableGraph<V extends StorableVertex,E extends StorableEdge>public void addElementToCache(ElementType elementType, Element element)
protected GraphMetadataStore getGraphMetadataStore()
getGraphMetadataStore in class GraphBaseWithSearchIndexpublic void setGraphMetadataStore(GraphMetadataStore graphMetadataStore)
public static String getHistoryVerticesTableName(String tableNamePrefix)
public String getVerticesTableName()
public String getHistoryVerticesTableName()
public String getEdgesTableName()
public String getHistoryEdgesTableName()
public static String getExtendedDataTableName()
public String getDataTableName()
public String getMetadataTableName()
protected boolean isHistoryInSeparateTable()
public String getTableNameFromElementType(ElementType elementType)
public String getHistoryTableNameFromElementType(ElementType elementType)
public StreamingPropertyValueStorageStrategy getStreamingPropertyValueStorageStrategy()
public NameSubstitutionStrategy getNameSubstitutionStrategy()
getNameSubstitutionStrategy in interface Graphpublic GeSerializer getGeSerializer()
getGeSerializer in interface StorableGraph<V extends StorableVertex,E extends StorableEdge>Copyright © 2016–2021 MWARE SOLUTIONS. All rights reserved.