Package com.graphdbapi.algo
Interface AlgoGraph
-
- All Superinterfaces:
AlgoSystemInfo
,Graph
public interface AlgoGraph extends Graph, AlgoSystemInfo
算法图对象,仅算法项目使用,包含PAR无法使用的内部接口。- Since:
- 3.4.4
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description java.util.List<CypherProcedure>
getCypherProcedure()
获取CYPHER注册的所有PROCEDURE信息。FastEngineGraph
getFastEngineGraph(java.lang.String engineName)
获取快速图引擎。default com.graphdbapi.engine.safe.EngineGraph
getIfAbsentPutEngineGraph(boolean memory)
Deprecated.default com.graphdbapi.engine.safe.EngineGraph
getIfAbsentPutEngineGraph(java.lang.String engineName, boolean memory)
Deprecated.com.graphdbapi.engine.safe.EngineGraph
getIfAbsentPutEngineGraph(java.lang.String engineName, boolean memory, IdsMap idsMap)
初始化图引擎对象,内部接口,该方法配合手动移除相关对象,不允许单独使用。java.lang.String
getUserId()
获取当前用户ID。java.lang.String
getUserName()
获取当前用户名。boolean
hasEngineGraph()
判断图引擎是否存在。void
removeEngineGraph()
移除图引擎对象,内部接口,该方法配合初始化图引擎对象一起使用,不允许单独使用。void
sendFile(java.io.File file, int affinity)
发送文件至指定机器号。-
Methods inherited from interface com.graphdbapi.algo.AlgoSystemInfo
getAlgorithmDescription, getAlgorithmInput, getAlgorithmName, getAlgorithmOutput, getLanguage, isSupportDistributedGraphCalculationEngine, isSupportGraphCalculationEngine
-
Methods inherited from interface com.graphdbapi.Graph
affinities, affinity, beginTransaction, beginTransaction, broadcastCallable, broadcastCallable, broadcastRunnable, broadcastRunnable, clusterMachineSize, deleteEdge, deleteEdges, deleteVertex, deleteVertex, edgeIteratorFast, edgeIteratorFast, edgeIteratorFast, edgeTypeIndex, extend, fileObject, flushData, getAffinityById, getAffinityByPk, getAllEdgeCount, getAllVertexCount, getCypherId, getDegree, getEdgeCount, getEdgeCount, getEdgeCount, getGraphIndex, getGraphName, getMemoryTracker, getOrCreateGraphDbAtomicLong, getParallelContext, getPk, getSnowId, getTaskHandler, getVertexCount, getVertexCount, getVertexCount, getVertexes, getVertexIdByPk, getVertexIdByPk, getVertexIdByPk, getVertexIdByPkCompatible, getVertexIdByPkCompatible, getVertexIdByPkCompatible, hasVertex, insertEdgeByVertexId, insertVertexByPk, isStop, localAffinity, logger, meta, parKit, putPropertyValue, putPropertyValue, putPropertyValue, putPropertyValue, removePropertyValue, removePropertyValue, removePropertyValue, removePropertyValue, retrieveAllEdges, retrieveAllEdges, retrieveAllVertexes, retrieveAllVertexes, retrieveEdge, retrieveEdgeByVertexId, retrieveEdgeByVertexId, retrieveEdgeByVertexId, retrieveEdgeByVertexId, retrieveEdgeByVertexId, retrieveEdgeByVertexIdForAlgo, retrieveEdgeByVertexIdForAlgo, retrieveEdgeByVertexIdForAlgo, retrieveEdgeByVertexIdForAlgo, retrieveEdgeByVertexIdNoProps, retrieveEdgeCompatible, retrieveEdgeIteratorByVertexId, retrieveEdgeIteratorByVertexId, retrieveEdgeIteratorByVertexId, retrieveEdgeIteratorByVertexIdForAlgo, retrieveEdgeIteratorByVertexIdNoProps, retrieveLocalEdges, retrieveLocalEdges, retrieveLocalVertexes, retrieveLocalVertexes, retrieveNeighborIdIterator, retrieveOrInsertEdge, retrieveOrInsertVertex, retrieveVertex, retrieveVertexByPk, retrieveVertexByPkCompatible, retrieveVertexCompatible, searchEdgeProperty, searchEdgesByIndex, searchVertexesByIndex, searchVertexProperty, traversalDescription, updateEdge, updateEdge, updateVertex, updateVertex, upsertEdge, upsertEdge, upsertVertex, upsertVertex, vertexIteratorFast, vertexIteratorFast, vertexIteratorFast, vertexTypeIndex
-
-
-
-
Method Detail
-
hasEngineGraph
boolean hasEngineGraph()
判断图引擎是否存在。- Returns:
- true表示已经存在。
-
getIfAbsentPutEngineGraph
@Deprecated default com.graphdbapi.engine.safe.EngineGraph getIfAbsentPutEngineGraph(boolean memory)
Deprecated.
-
getIfAbsentPutEngineGraph
@Deprecated default com.graphdbapi.engine.safe.EngineGraph getIfAbsentPutEngineGraph(java.lang.String engineName, boolean memory)
Deprecated.
-
getIfAbsentPutEngineGraph
com.graphdbapi.engine.safe.EngineGraph getIfAbsentPutEngineGraph(java.lang.String engineName, boolean memory, IdsMap idsMap)
初始化图引擎对象,内部接口,该方法配合手动移除相关对象,不允许单独使用。- Parameters:
engineName
- 图引擎名,指定需要使用的图引擎。memory
- true表示图引擎内存模式,false表示图引擎磁盘模式。idsMap
- TODO:测试,memory=false时需要传入IdsMap对象。- Returns:
- 图引擎对象。
- Since:
- 3.4.4
-
removeEngineGraph
void removeEngineGraph()
移除图引擎对象,内部接口,该方法配合初始化图引擎对象一起使用,不允许单独使用。- Since:
- 3.4.4
-
sendFile
void sendFile(java.io.File file, int affinity)
发送文件至指定机器号。- Parameters:
file
- 待发送的文件。affinity
- 指定机器号。- Since:
- 3.4.4
-
getFastEngineGraph
FastEngineGraph getFastEngineGraph(java.lang.String engineName)
获取快速图引擎。- Parameters:
engineName
- 图引擎名,指定需要使用的图引擎。- Returns:
- 快速图引擎对象。
- Since:
- 3.4.4
-
getUserId
java.lang.String getUserId()
获取当前用户ID。- Returns:
- 用户ID。
-
getCypherProcedure
java.util.List<CypherProcedure> getCypherProcedure()
获取CYPHER注册的所有PROCEDURE信息。- Returns:
- PROCEDURE信息。
-
getUserName
java.lang.String getUserName()
获取当前用户名。- Returns:
- 用户名。
-
-