public class OGraphEngineForDB extends Object
Constructor and Description |
---|
OGraphEngineForDB(OER2GraphMapper mapper,
ODBMSDataTypeHandler handler) |
Modifier and Type | Method and Description |
---|---|
boolean |
alreadyFullImportedInOrient(com.orientechnologies.orient.core.db.document.ODatabaseDocument orientGraph,
ResultSet record,
OVertexType vertexType,
Set<String> propertiesOfIndex)
Return true if the record is "full-imported" in OrientDB: the correspondent vertex is visited (all properties are set).
|
void |
connectVertexToRelatedVertices(com.orientechnologies.orient.core.db.document.ODatabaseDocument orientGraph,
OLogicalRelationship relation,
com.orientechnologies.orient.core.record.OVertex currentOutVertex,
OVertexType currentOutVertexType,
OVertexType currentInVertexType,
String edgeTypeName)
Dead!
|
void |
extractPropertiesFromRecordIntoEdge(ResultSet record,
Map<String,Object> properties,
String currentPropertyType,
String currentPropertyName,
String currentOriginalType,
OEdgeType edgeType) |
void |
extractPropertiesFromRecordIntoVertex(ResultSet record,
Map<String,Object> properties,
String currentPropertyType,
String currentPropertyName,
String currentOriginalType,
OVertexType vertexType) |
void |
insertEdge(com.orientechnologies.orient.core.db.document.ODatabaseDocument orientGraph,
com.orientechnologies.orient.core.record.OVertex currentOutVertex,
com.orientechnologies.orient.core.record.OVertex currentInVertex,
String edgeType,
Map<String,Object> properties,
String direction)
Dead!
|
void |
updateVertexAccordingToLogicalRelationship(com.orientechnologies.orient.core.record.OVertex currentOutVertex,
OVertexType currentInVertexType,
List<String> fromPropertiesToUpdate) |
void |
upsertAggregatorEdge(com.orientechnologies.orient.core.db.document.ODatabaseDocument orientGraph,
ResultSet jointTableRecord,
OEntity joinTable,
OAggregatorEdge aggregatorEdge) |
void |
upsertEdge(com.orientechnologies.orient.core.db.document.ODatabaseDocument orientGraph,
com.orientechnologies.orient.core.record.OVertex currentOutVertex,
com.orientechnologies.orient.core.record.OVertex currentInVertex,
String edgeType,
Map<String,Object> properties,
String direction) |
com.orientechnologies.orient.core.record.OVertex |
upsertReachedVertexWithEdge(com.orientechnologies.orient.core.db.document.ODatabaseDocument orientGraph,
ResultSet foreignRecord,
OCanonicalRelationship relation,
com.orientechnologies.orient.core.record.OVertex currentOutVertex,
OVertexType currentInVertexType,
String edgeTypeName) |
com.orientechnologies.orient.core.record.OVertex |
upsertVisitedVertex(com.orientechnologies.orient.core.db.document.ODatabaseDocument orientGraph,
ResultSet record,
OVertexType vertexType,
Set<String> propertiesOfIndex) |
public OGraphEngineForDB(OER2GraphMapper mapper, ODBMSDataTypeHandler handler)
public boolean alreadyFullImportedInOrient(com.orientechnologies.orient.core.db.document.ODatabaseDocument orientGraph, ResultSet record, OVertexType vertexType, Set<String> propertiesOfIndex) throws SQLException
record
- SQLException
public com.orientechnologies.orient.core.record.OVertex upsertVisitedVertex(com.orientechnologies.orient.core.db.document.ODatabaseDocument orientGraph, ResultSet record, OVertexType vertexType, Set<String> propertiesOfIndex)
record
- public void extractPropertiesFromRecordIntoVertex(ResultSet record, Map<String,Object> properties, String currentPropertyType, String currentPropertyName, String currentOriginalType, OVertexType vertexType) throws SQLException
SQLException
public void extractPropertiesFromRecordIntoEdge(ResultSet record, Map<String,Object> properties, String currentPropertyType, String currentPropertyName, String currentOriginalType, OEdgeType edgeType) throws SQLException
SQLException
public com.orientechnologies.orient.core.record.OVertex upsertReachedVertexWithEdge(com.orientechnologies.orient.core.db.document.ODatabaseDocument orientGraph, ResultSet foreignRecord, OCanonicalRelationship relation, com.orientechnologies.orient.core.record.OVertex currentOutVertex, OVertexType currentInVertexType, String edgeTypeName) throws SQLException
foreignRecord
- the record correspondent to the current-out-vertexrelation
- the relation between two entitiescurrentOutVertex
- the current-out-vertexcurrentInVertexType
- the type correspondent to the current-in-vertexedgeTypeName
- type of the OEdgeType present between the two OVertexType, used as label during the insert of the
edge in the graph
The method executes insert on reached vertex: - if the vertex is not already reached, it's inserted in the graph and an edge between the out-visited-vertex and the in-reached-vertex is added - if the vertex is already present in the graph no update is performed, neither on reached-vertex neither on the relative edge
SQLException
public void connectVertexToRelatedVertices(com.orientechnologies.orient.core.db.document.ODatabaseDocument orientGraph, OLogicalRelationship relation, com.orientechnologies.orient.core.record.OVertex currentOutVertex, OVertexType currentOutVertexType, OVertexType currentInVertexType, String edgeTypeName)
orientGraph
- relation
- currentOutVertex
- currentOutVertexType
- currentInVertexType
- edgeTypeName
- public void upsertEdge(com.orientechnologies.orient.core.db.document.ODatabaseDocument orientGraph, com.orientechnologies.orient.core.record.OVertex currentOutVertex, com.orientechnologies.orient.core.record.OVertex currentInVertex, String edgeType, Map<String,Object> properties, String direction)
public void insertEdge(com.orientechnologies.orient.core.db.document.ODatabaseDocument orientGraph, com.orientechnologies.orient.core.record.OVertex currentOutVertex, com.orientechnologies.orient.core.record.OVertex currentInVertex, String edgeType, Map<String,Object> properties, String direction)
orientGraph
- currentOutVertex
- currentInVertex
- edgeType
- properties
- direction
- public void upsertAggregatorEdge(com.orientechnologies.orient.core.db.document.ODatabaseDocument orientGraph, ResultSet jointTableRecord, OEntity joinTable, OAggregatorEdge aggregatorEdge) throws SQLException
SQLException
public void updateVertexAccordingToLogicalRelationship(com.orientechnologies.orient.core.record.OVertex currentOutVertex, OVertexType currentInVertexType, List<String> fromPropertiesToUpdate)
Copyright © 2015–2022 OrientDB. All rights reserved.