protected void init(final Configuration configuration) {
    final Boolean saveOriginalIds = configuration.getBoolean("blueprints.orientdb.saveOriginalIds", null);
    if (saveOriginalIds != null)
      setSaveOriginalIds(saveOriginalIds);

    final Boolean keepInMemoryReferences = configuration.getBoolean("blueprints.orientdb.keepInMemoryReferences", null);
    if (keepInMemoryReferences != null)
      setKeepInMemoryReferences(keepInMemoryReferences);

    final Boolean useCustomClassesForEdges = configuration.getBoolean("blueprints.orientdb.useCustomClassesForEdges", null);
    if (useCustomClassesForEdges != null)
      setUseClassForEdgeLabel(useCustomClassesForEdges);

    final Boolean useCustomClassesForVertex = configuration.getBoolean("blueprints.orientdb.useCustomClassesForVertex", null);
    if (useCustomClassesForVertex != null)
      setUseClassForVertexLabel(useCustomClassesForVertex);

    final Boolean useVertexFieldsForEdgeLabels = configuration.getBoolean("blueprints.orientdb.useVertexFieldsForEdgeLabels", null);
    if (useVertexFieldsForEdgeLabels != null)
      setUseVertexFieldsForEdgeLabels(useVertexFieldsForEdgeLabels);

    final Boolean lightweightEdges = configuration.getBoolean("blueprints.orientdb.lightweightEdges", null);
    if (lightweightEdges != null)
      setUseLightweightEdges(lightweightEdges);

    final Boolean autoScaleEdgeType = configuration.getBoolean("blueprints.orientdb.autoScaleEdgeType", null);
    if (autoScaleEdgeType != null)
      setAutoScaleEdgeType(autoScaleEdgeType);

    final Boolean requireTransaction = configuration.getBoolean("blueprints.orientdb.requireTransaction", null);
    if (requireTransaction != null)
      setRequireTransaction(requireTransaction);

    final Boolean txRequiredForSQLGraphOperations = configuration
        .getBoolean("blueprints.orientdb.txRequiredForSQLGraphOperations", null);
    if (txRequiredForSQLGraphOperations != null)
      setTxRequiredForSQLGraphOperations(txRequiredForSQLGraphOperations);

    final Integer maxRetries = configuration.getInt("blueprints.orientdb.maxRetries", 50);
    if (maxRetries != null)
      setMaxRetries(maxRetries);
  }
protected void init ( final Configuration configuration ) { final Boolean saveOriginalIds = configuration . getBoolean ( "blueprints.orientdb.saveOriginalIds" , null ) ; if ( saveOriginalIds != null ) setSaveOriginalIds ( saveOriginalIds ) ; final Boolean keepInMemoryReferences = configuration . getBoolean ( "blueprints.orientdb.keepInMemoryReferences" , null ) ; if ( keepInMemoryReferences != null ) setKeepInMemoryReferences ( keepInMemoryReferences ) ; final Boolean useCustomClassesForEdges = configuration . getBoolean ( "blueprints.orientdb.useCustomClassesForEdges" , null ) ; if ( useCustomClassesForEdges != null ) setUseClassForEdgeLabel ( useCustomClassesForEdges ) ; final Boolean useCustomClassesForVertex = configuration . getBoolean ( "blueprints.orientdb.useCustomClassesForVertex" , null ) ; if ( useCustomClassesForVertex != null ) setUseClassForVertexLabel ( useCustomClassesForVertex ) ; final Boolean useVertexFieldsForEdgeLabels = configuration . getBoolean ( "blueprints.orientdb.useVertexFieldsForEdgeLabels" , null ) ; if ( useVertexFieldsForEdgeLabels != null ) setUseVertexFieldsForEdgeLabels ( useVertexFieldsForEdgeLabels ) ; final Boolean lightweightEdges = configuration . getBoolean ( "blueprints.orientdb.lightweightEdges" , null ) ; if ( lightweightEdges != null ) setUseLightweightEdges ( lightweightEdges ) ; final Boolean autoScaleEdgeType = configuration . getBoolean ( "blueprints.orientdb.autoScaleEdgeType" , null ) ; if ( autoScaleEdgeType != null ) setAutoScaleEdgeType ( autoScaleEdgeType ) ; final Boolean requireTransaction = configuration . getBoolean ( "blueprints.orientdb.requireTransaction" , null ) ; if ( requireTransaction != null ) setRequireTransaction ( requireTransaction ) ; final Boolean txRequiredForSQLGraphOperations = configuration . getBoolean ( "blueprints.orientdb.txRequiredForSQLGraphOperations" , null ) ; if ( txRequiredForSQLGraphOperations != null ) setTxRequiredForSQLGraphOperations ( txRequiredForSQLGraphOperations ) ; final Integer maxRetries = configuration . getInt ( "blueprints.orientdb.maxRetries" , 50 ) ; if ( maxRetries != null ) setMaxRetries ( maxRetries ) ; }
Builds a OrientGraph instance passing a configuration. Supported configuration settings are:
<table>
<tr>
<td><b>Name</b></td>
<td><b>Description</b></td>
<td><b>Default value</b></td>
</tr>
<tr>
<td>blueprints.orientdb.url</td>
<td>Database URL</td>
<td>-</td>
</tr>
<tr>
<td>blueprints.orientdb.username</td>
<td>User name</td>
<td>admin</td>
</tr>
<tr>
<td>blueprints.orientdb.password</td>
<td>User password</td>
<td>admin</td>
</tr>
<tr>
<td>blueprints.orientdb.saveOriginalIds</td>
<td>Saves the original element IDs by using the property origId. This could be useful on import of graph to preserve original
ids</td>
<td>false</td>
</tr>
<tr>
<td>blueprints.orientdb.keepInMemoryReferences</td>
<td>Avoid to keep records in memory but only RIDs</td>
<td>false</td>
</tr>
<tr>
<td>blueprints.orientdb.useCustomClassesForEdges</td>
<td>Use Edge's label as OrientDB class. If doesn't exist create it under the hood</td>
<td>true</td>
</tr>
<tr>
<td>blueprints.orientdb.useCustomClassesForVertex</td>
<td>Use Vertex's label as OrientDB class. If doesn't exist create it under the hood</td>
<td>true</td>
</tr>
<tr>
<td>blueprints.orientdb.useVertexFieldsForEdgeLabels</td>
<td>Store the edge relationships in vertex by using the Edge's class. This allow to use multiple fields and make faster
traversal by edge's label (class)</td>
<td>true</td>
</tr>
<tr>
<td>blueprints.orientdb.lightweightEdges</td>
<td>Uses lightweight edges. This avoid to create a physical document per edge. Documents are created only when they have
properties</td>
<td>true</td>
</tr>
<tr>
<td>blueprints.orientdb.autoScaleEdgeType</td>
<td>Set auto scale of edge type. True means one edge is managed as LINK, 2 or more are managed with a LINKBAG</td>
<td>false</td>
</tr>
<tr>
<td>blueprints.orientdb.edgeContainerEmbedded2TreeThreshold</td>
<td>Changes the minimum number of edges for edge containers to transform the underlying structure from embedded to tree. Use -1
to disable transformation</td>
<td>-1</td>
</tr>
<tr>
<td>blueprints.orientdb.edgeContainerTree2EmbeddedThreshold</td>
<td>Changes the minimum number of edges for edge containers to transform the underlying structure from tree to embedded. Use -1
to disable transformation</td>
<td>-1</td>
</tr>
</table>

@param configuration of graph