public class OrientGraph extends OrientTransactionalGraph
OrientConfigurableGraph.Settings, OrientConfigurableGraph.THREAD_MODE
Modifier and Type | Field and Description |
---|---|
protected com.tinkerpop.blueprints.Features |
features |
ADMIN, CLASS_PREFIX, CLUSTER_PREFIX, CONNECTION_IN, CONNECTION_OUT, database
AUTO_SCALE_EDGE_TYPE_DEFAULT, AUTO_START_TX_DEFAULT, EDGE_CONTAINER_EMBEDDED_2_TREE_THRESHOLD_DEFAULT, EDGE_CONTAINER_TREE_2_EMBEDDED_THRESHOLD_DEFAULT, KEEP_IN_MEMORY_REFERENCES_DEFAULT, REQUIRE_TRANSACTION_DEFAULT, SAVE_ORIGINAL_IDS_DEFAULT, settings, STANDARD_ELEMENT_CONSTRAINTS_DEFAULT, STANDARD_EXCEPTIONS, STANDARD_MAX_RETRIES, STANDARD_TX_REQUIRE_FOR_SQL_OPERATIONS, THREAD_MODE_DEFAULT, USE_CLASS_FOR_EDGE_LABEL_DEFAULT, USE_CLASS_FOR_VERTEX_LABEL_DEFAULT, USE_LIGHTWEIGHT_EDGES_DEFAULT, USE_LOG_DEFAULT, USE_VERTEX_FIELDS_FOR_EDGE_LABELS, WARN_ON_FORCE_CLOSING_TX_DEFAULT
Constructor and Description |
---|
OrientGraph(org.apache.commons.configuration.Configuration iConfiguration)
Builds a OrientGraph instance passing a configuration.
|
OrientGraph(ODatabaseDocumentInternal iDatabase)
Creates a new Transactional Graph using an existent database instance.
|
OrientGraph(ODatabaseDocumentInternal iDatabase,
boolean iAutoStartTx)
Creates a new Transactional Graph using an existent database instance and the auto-start
setting to determine if auto start a transaction.
|
OrientGraph(ODatabaseDocumentInternal iDatabase,
String iUserName,
String iUserPasswd)
Creates a new Transactional Graph using an existent database instance.
|
OrientGraph(ODatabaseDocumentInternal iDatabase,
String iUser,
String iPassword,
OrientConfigurableGraph.Settings iConfiguration)
Creates a new Transactional Graph using an existent database instance.
|
OrientGraph(OPartitionedDatabasePool pool)
Creates a new Transactional Graph from a pool.
|
OrientGraph(OPartitionedDatabasePool pool,
OrientConfigurableGraph.Settings configuration) |
OrientGraph(String url)
Creates a new Transactional Graph from an URL using default user (admin) and password (admin).
|
OrientGraph(String url,
boolean iAutoStartTx)
Creates a new Transactional Graph from an URL using default user (admin) and password (admin).
|
OrientGraph(String url,
String username,
String password)
Creates a new Transactional Graph from an URL using a username and a password.
|
OrientGraph(String url,
String username,
String password,
boolean iAutoStartTx)
Creates a new Transactional Graph from an URL using a username and a password.
|
Modifier and Type | Method and Description |
---|---|
com.tinkerpop.blueprints.Features |
getFeatures()
Returns the current Graph settings.
|
void |
removeEdgeInternal(OrientEdge edge)
Removes the Edge from the Graph.
|
autoStartTransaction, begin, commit, isUseLog, rollback, setAutoStartTx, setUseLog, stopTransaction
addEdge, addTemporaryVertex, addVertex, addVertex, addVertex, attach, clearInitStack, command, configure, convertKey, convertKeys, countEdges, countEdges, countVertices, countVertices, createEdgeType, createEdgeType, createEdgeType, createEdgeType, createEdgeType, createEdgeType, createIndex, createKeyIndex, createVertexType, createVertexType, createVertexType, createVertexType, createVertexType, createVertexType, declareIntent, decodeClassName, deleteEdgeIfAny, detach, drop, dropEdgeType, dropIndex, dropKeyIndex, dropVertexType, encodeClassName, encodeClassNames, executeOutsideTx, getActiveGraph, getActiveIntent, getClassName, getConflictStrategy, getDatabase, getDocument, getEdge, getEdgeBaseType, getEdgeClassNames, getEdgeInstance, getEdgeInstance, getEdgeInstance, getEdges, getEdges, getEdges, getEdgesOfClass, getEdgesOfClass, getEdgeType, getElement, getIndex, getIndexedKeys, getIndexedKeys, getIndices, getProperties, getProperty, getRawGraph, getVertex, getVertexBaseType, getVertexByKey, getVertexInstance, getVertexInstance, getVertexType, getVertices, getVertices, getVertices, getVertices, getVerticesOfClass, getVerticesOfClass, isClosed, makeActive, onStorageRecover, query, removeEdge, removeEdges, removeVertex, reuse, saveIndexConfiguration, setConflictStrategy, setConflictStrategy, setCurrentGraphInThreadLocal, setProperty, setUseLightweightEdges, shutdown, shutdown, shutdown, toString, traverse
getConnectionStrategy, getEdgeContainerEmbedded2TreeThreshold, getEdgeContainerTree2EmbeddedThreshold, getMaxRetries, getThreadMode, init, isAutoScaleEdgeType, isAutoStartTx, isKeepInMemoryReferences, isRequireTransaction, isSaveOriginalIds, isStandardElementConstraints, isStandardExceptions, isTxRequiredForSQLGraphOperations, isUseClassForEdgeLabel, isUseClassForVertexLabel, isUseLightweightEdges, isUseVertexFieldsForEdgeLabels, isWarnOnForceClosingTx, setAutoScaleEdgeType, setConnectionStrategy, setEdgeContainerEmbedded2TreeThreshold, setEdgeContainerTree2EmbeddedThreshold, setKeepInMemoryReferences, setMaxRetries, setRequireTransaction, setSaveOriginalIds, setStandardElementConstraints, setStandardExceptions, setThreadMode, setTxRequiredForSQLGraphOperations, setUseClassForEdgeLabel, setUseClassForVertexLabel, setUseVertexFieldsForEdgeLabels, setWarnOnForceClosingTx
public OrientGraph(ODatabaseDocumentInternal iDatabase, String iUserName, String iUserPasswd)
iDatabase
- Underlying database object to attachpublic OrientGraph(ODatabaseDocumentInternal iDatabase, boolean iAutoStartTx)
iDatabase
- Underlying database object to attachiAutoStartTx
- True to auto start a transaction at the beginning and after each
commit/rollbackpublic OrientGraph(String url)
url
- OrientDB URLpublic OrientGraph(String url, boolean iAutoStartTx)
url
- OrientDB URLiAutoStartTx
- True to auto start a transaction at the beginning and after each
commit/rollbackpublic OrientGraph(String url, String username, String password)
url
- OrientDB URLusername
- Database user namepassword
- Database user passwordpublic OrientGraph(String url, String username, String password, boolean iAutoStartTx)
url
- OrientDB URLusername
- Database user namepassword
- Database user passwordiAutoStartTx
- True to auto start a transaction at the beginning and after each
commit/rollbackpublic OrientGraph(OPartitionedDatabasePool pool)
pool
- Database pool where to acquire a database instancepublic OrientGraph(OPartitionedDatabasePool pool, OrientConfigurableGraph.Settings configuration)
public OrientGraph(org.apache.commons.configuration.Configuration iConfiguration)
Name | Description | Default value |
blueprints.orientdb.url | Database URL | - |
blueprints.orientdb.username | User name | admin |
blueprints.orientdb.password | User password | admin |
blueprints.orientdb.saveOriginalIds | Saves the original element IDs by using the property _id. This could be useful on import of graph to preserve original ids | false |
blueprints.orientdb.keepInMemoryReferences | Avoid to keep records in memory but only RIDs | false |
blueprints.orientdb.useCustomClassesForEdges | Use Edge's label as OrientDB class. If doesn't exist create it under the hood | true |
blueprints.orientdb.useCustomClassesForVertex | Use Vertex's label as OrientDB class. If doesn't exist create it under the hood | true |
blueprints.orientdb.useVertexFieldsForEdgeLabels | 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) | true |
blueprints.orientdb.lightweightEdges | Uses lightweight edges. This avoid to create a physical document per edge. Documents are created only when they have properties | true |
blueprints.orientdb.autoStartTx | Auto start a transaction as soon the graph is changed by adding/remote vertices and edges and properties | true |
iConfiguration
- graph settings see the details above.public OrientGraph(ODatabaseDocumentInternal iDatabase)
iDatabase
- Underlying database object to attachpublic OrientGraph(ODatabaseDocumentInternal iDatabase, String iUser, String iPassword, OrientConfigurableGraph.Settings iConfiguration)
iDatabase
- Underlying database object to attachpublic com.tinkerpop.blueprints.Features getFeatures()
public void removeEdgeInternal(OrientEdge edge)
Copyright © 2009–2020 OrientDB. All rights reserved.