
public class ONeo4jImporterUtils extends Object
| Constructor and Description |
|---|
ONeo4jImporterUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
checkVertexClassCreation(String neo4jLabel,
com.orientechnologies.orient.core.db.document.ODatabaseDocument odb)
It's used during the schema migration to import constraints and indices defined in neo4j on an
empty set of nodes.
|
static boolean |
createOrientDBProperty(org.neo4j.driver.v1.Session session,
String neo4jLabel,
String orientDBIndexClass,
String neo4jPropKey,
com.orientechnologies.orient.core.db.document.ODatabaseDocument oDb,
String myNeo4jConstraintType) |
static String |
getNeo4jPropType(Object myPropertyValue) |
static com.orientechnologies.orient.core.metadata.schema.OType |
mapNeo4JToOrientDBPropertyType(String myNeo4jPropType) |
public static String checkVertexClassCreation(String neo4jLabel, com.orientechnologies.orient.core.db.document.ODatabaseDocument odb)
It checks if the nodes with label passed as parameter have been imported in the MultipleLabelNeo4jConversion class. If no vertices were imported with the passed label (among the other labels) the correspondent class does not exist, and so: 1. the vertex class is created as part of the schema migration 2. its indices (and corresponding properties) are created
public static boolean createOrientDBProperty(org.neo4j.driver.v1.Session session,
String neo4jLabel,
String orientDBIndexClass,
String neo4jPropKey,
com.orientechnologies.orient.core.db.document.ODatabaseDocument oDb,
String myNeo4jConstraintType)
public static com.orientechnologies.orient.core.metadata.schema.OType mapNeo4JToOrientDBPropertyType(String myNeo4jPropType)
Copyright © 2009–2021 OrientDB. All rights reserved.