Class ODatabaseDocumentRemote
- All Implemented Interfaces:
ODatabaseDocument,ODatabase<ORecord>,ODatabaseDocumentInternal,ODatabaseInternal<ORecord>,ODatabaseSession,OBackupable,Closeable,AutoCloseable
- Direct Known Subclasses:
ODatabaseDocumentRemotePooled
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.orientechnologies.orient.core.db.ODatabase
ODatabase.ATTRIBUTES, ODatabase.STATUS -
Field Summary
FieldsFields inherited from class com.orientechnologies.orient.core.db.document.ODatabaseDocumentAbstract
activeQueries, componentsFactory, currentTx, databaseOwner, hooks, hooksByScope, inHook, initialized, loadedRecordsCount, localCache, maxRecordLoadMs, maxRidbagPrefetchMs, metadata, minRecordLoadMs, minRidbagPrefetchMs, properties, queryState, recordType, retainRecords, ridbagPrefetchCount, serializer, sharedContext, status, totalRecordLoadMs, totalRidbagPrefetchMs, unmodifiableHooks, url, userFields inherited from interface com.orientechnologies.orient.core.db.document.ODatabaseDocument
TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintaddBlobCluster(String iClusterName, Object... iParameters) Add a cluster for blob records.intaddCluster(String iClusterName, int iRequestedId) Adds a new cluster.intaddCluster(String iClusterName, Object... iParameters) Adds a new cluster.voidvoidvoidafterReadOperations(OIdentifiable identifiable) voidbackup(OutputStream out, Map<String, Object> options, Callable<Object> callable, OCommandOutputListener iListener, int compressionLevel, int bufferSize) Executes a backup of the database.beforeCreateOperations(OIdentifiable id, String iClusterName) voidbeforeDeleteOperations(OIdentifiable id, String iClusterName) booleanbeforeReadOperations(OIdentifiable identifiable) beforeUpdateOperations(OIdentifiable id, String iClusterName) begin(OTransaction.TXTYPE iType) Begins a new transaction specifying the transaction type.ceilingPhysicalPositions(int clusterId, OPhysicalPosition physicalPosition) <DB extends ODatabaseDocument>
DBcheckSecurity(ORule.ResourceGeneric iResourceGeneric, int iOperation, Object iResourceSpecific) Checks if the operation on a resource is allowed for the current user.<DB extends ODatabaseDocument>
DBcheckSecurity(ORule.ResourceGeneric iResourceGeneric, int iOperation, Object... iResourcesSpecific) Checks if the operation against multiple resources is allowed for the current user.<DB extends ODatabaseDocument>
DBcheckSecurity(ORule.ResourceGeneric resourceGeneric, String resourceSpecific, int iOperation) Checks if the operation on a resource is allowed for the current user.voidcloseQuery(String queryId) Executes a generic (idempotent or non idempotent) command.Executes a generic (idempotent or non idempotent) command.voidcopy()longcountClusterElements(int iClusterId) Counts all the entities in the specified cluster id.longcountClusterElements(int[] iClusterIds) Counts all the entities in the specified cluster ids.longcountClusterElements(String iClusterName) Counts all the entities in the specified cluster name.longcreateSBTree(int clusterId, UUID ownerUUID) Deletes an entity from the database in synchronous mode.directRead(ORecordId rid, String fetchPlan, boolean ignoreCache, int recordVersion) booleandropCluster(int clusterId) Drops a cluster by its id.booleandropCluster(String iClusterName) Drops a cluster by its name.booleandropClusterInternal(int clusterId) Execute a script in a specified query language.Execute a script of a specified query language The result set has to be closed after usage
Sample usage:voidexecuteDeleteRecord(OIdentifiable record, int iVersion, boolean iRequired) <RET extends ORecord>
RETexecuteReadRecord(ORecordId rid, ORecord iRecord, int recordVersion, String fetchPlan, boolean ignoreCache, boolean iUpdateCache, RecordReader recordReader) This method is internal, it can be subject to signature change or be removed, do not use.voidfloorPhysicalPositions(int clusterId, OPhysicalPosition physicalPosition) voidfreeze()Flush all indexes and cached storage content to the disk.voidfreeze(boolean throwException) Flush all indexes and cached storage content to the disk.long[]getClusterDataRange(int currentClusterId) getClusterName(ORecord record) getClusterRecordConflictStrategy(int clusterId) longgetClusterRecordSizeById(int clusterId) Returns the total size of records contained in the cluster defined by its id.longgetClusterRecordSizeByName(String clusterName) Returns the total size of records contained in the cluster defined by its name.int[]getClustersIds(Set<String> filterClusters) Returns the current record conflict strategy.longgetLastClusterPosition(int clusterId) getRecordMetadata(ORID rid) Internal.longgetSize()Returns the total size of the records in the database.Returns the underlying storage implementation.higherPhysicalPositions(int clusterId, OPhysicalPosition physicalPosition) incrementalBackup(String path) Performs incremental backup of database content to the selected folder.indexQuery(String indexName, String query, Object... args) voidinitPush(OMetadataPushListener handler) voidinternalClose(boolean recycle) voidinternalCommit(OTransactionInternal transaction) Executed the commit on the storage hiding away storage concepts from the transactionvoidinternalCommitPreallocate(OTransactionOptimistic oTransactionOptimistic) voidinternalLockRecord(OIdentifiable iRecord, OStorage.LOCKING_STRATEGY lockingStrategy) voidinternalOpen(String user, String password, OrientDBConfig config) voidinternalUnlockRecord(OIdentifiable iRecord) booleanisClosed()Checks if the database is closed.booleanisRemote()booleanlive(String query, OLiveQueryResultListener listener, Object... args) Subscribe a query as a live query for future create/update event with the referred conditionslive(String query, OLiveQueryResultListener listener, Map<String, ?> args) Subscribe a query as a live query for future create/update event with the referred conditionsprotected void<RET extends ORecord>
RETPessimistic lock a record.<RET extends ORecord>
RETPessimistic lock a record.lowerPhysicalPositions(int clusterId, OPhysicalPosition physicalPosition) Executes an SQL query.Executes an SQL query (idempotent).readIfVersionIsNotLatest(ORecordId rid, String fetchPlan, boolean ignoreCache, int recordVersion) voidrelease()Allows to execute write-related commands on DB.voidreload()Reloads the database information like the cluster list.voidremoteRollback(OTransactionOptimistic oTransactionOptimistic) voidreplaceStorage(OStorage iNewStorage) Internal only: replace the storage with a new one.voidrestore(InputStream in, Map<String, Object> options, Callable<Object> callable, OCommandOutputListener iListener) Executes a restore of a database backup.<T> TsendSequenceAction(OSequenceAction action) <DB extends ODatabase>
DBset(ODatabase.ATTRIBUTES iAttribute, Object iValue) Sets a database attribute valuesetConflictStrategy(ORecordConflictStrategy iResolver) Overrides record conflict strategy.setConflictStrategy(String iStrategyName) Overrides record conflict strategy selecting the strategy by name.<DB extends ODatabase>
DBvoidsetDefaultClusterId(int addCluster) voidsetSessionMetadata(ORemoteClientSession sessionMetadata) voidtruncateClass(String name) longtruncateClass(String name, boolean polimorfic) voidtruncateCluster(String clusterName) Removes all data in the cluster with given name.longvoidPessimistic unlockMethods inherited from class com.orientechnologies.orient.core.db.document.ODatabaseDocumentAbstract
activateOnCurrentThread, afterCommitOperations, afterRollbackOperations, assignAndCheckCluster, beforeCommitOperations, beforeRollbackOperations, begin, browseClass, browseClass, browseCluster, browseCluster, browseCluster, callbackHookFailure, callbackHookFinalize, callbackHooks, callbackHookSuccess, callOnCloseListeners, callOnDropListeners, callOnOpenListeners, checkForClusterPermissions, checkIfActive, checkOpenness, checkRecordClass, checkSecurity, cleanOutRecord, clearDocumentTracking, close, closeActiveQueries, commit, commit, countClass, countClass, countClass, countView, delete, delete, executeWithRetries, executeWithRetries, executeWithRetries, existsCluster, get, getActiveQueries, getActiveQuery, getBlobClusterIds, getClusterIdByName, getClusterNameById, getClusterNames, getClusters, getCollectionsChanges, getConfiguration, getDatabaseOwner, getDefaultClusterId, getDefaultSerializer, getDictionary, getHooks, getListeners, getLocalCache, getMetadata, getName, getProperties, getProperty, getRecord, getRecordType, getSerializer, getSerializerFactory, getSharedContext, getStatus, getStorageVersions, getTransaction, getType, getUnderlying, getURL, getUser, getViewFromCluster, init, isActiveOnCurrentThread, isClusterEdge, isClusterVertex, isClusterView, isPooled, isPrefetchRecords, isUseLightweightEdges, isValidationEnabled, load, load, load, load, load, load, loadIfVersionIsNotLatest, newBlob, newBlob, newEdge, newEdge, newElement, newElement, newElement, newEmbeddedElement, newEmbeddedElement, newInstance, newInstance, newLightweightEdge, newRegularEdge, newVertex, newVertex, pessimisticLockChecks, queryClosed, queryStarted, rawBegin, registerHook, registerHook, reload, reload, reload, reload, reloadUser, resetInitialization, rollback, rollback, save, save, save, setCurrentDatabaseInThreadLocal, setDatabaseOwner, setDefaultSerializer, setDefaultTransactionMode, setInternal, setPrefetchRecords, setProperty, setSerializer, setStatus, setStatusInternal, setUseLightweightEdges, setUser, setValidationEnabled, swapTx, unregisterHookMethods inherited from class com.orientechnologies.common.listener.OListenerManger
browseListeners, getListenersCopy, registerListener, resetListeners, unregisterListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.orientechnologies.orient.core.db.ODatabase
createClass, executeWithRetry, getClass, registerListener, unregisterListenerMethods inherited from interface com.orientechnologies.orient.core.db.document.ODatabaseDocument
createClassIfNotExist, createEdgeClass, createVertexClass, newEdge, newVertex, reloadMethods inherited from interface com.orientechnologies.orient.core.db.ODatabaseDocumentInternal
commandLikeLegacy, endEsclusiveMetadataChange, executeLikeLegacy, getHaStatus, getStorageId, isDistributed, isLocalEnv, queryLikeLegacy, queryOnNode, queryStartUsingViewCluster, queryStartUsingViewIndex, realClose, removeHaServer, reuse, startEsclusiveMetadataChange, sync, syncCommitMethods inherited from interface com.orientechnologies.orient.core.db.ODatabaseInternal
addRidbagPrefetchStats, createInterruptTimerTask, getActiveDataCenterMap, getEnterpriseEndpoint, getLocalNodeName, getStats, isSharded, resetRecordLoadStats
-
Field Details
-
session
-
-
Constructor Details
-
Method Details
-
set
Description copied from interface:ODatabaseSets a database attribute value- Parameters:
iAttribute- Attributes between #ATTRIBUTES enumiValue- Value to set- Returns:
- underlying
-
setCustom
-
copy
-
internalOpen
-
initPush
-
loadMetadata
protected void loadMetadata()- Specified by:
loadMetadatain classODatabaseDocumentAbstract
-
begin
Description copied from interface:ODatabaseBegins a new transaction specifying the transaction type. If a previous transaction is running a nested call counter is incremented. A transaction once begun has to be closed by calling theODatabase.commit()orODatabase.rollback().- Specified by:
beginin interfaceODatabase<ORecord>- Overrides:
beginin classODatabaseDocumentAbstract- Returns:
- The Database instance itself giving a "fluent interface". Useful to call multiple methods in chain.
-
getSession
-
setSessionMetadata
-
getStorage
Description copied from interface:ODatabaseInternalReturns the underlying storage implementation.- Returns:
- The underlying storage implementation
- See Also:
-
getRemoteClient
-
getStorageInfo
-
replaceStorage
Description copied from interface:ODatabaseInternalInternal only: replace the storage with a new one.- Parameters:
iNewStorage- The new storage to use. Usually it's a wrapped instance of the current cluster.
-
query
Description copied from interface:ODatabaseExecutes an SQL query. The result set has to be closed after usage
Sample usage:OResultSet rs = db.query("SELECT FROM V where name = ?", "John"); while(rs.hasNext()){ OResult item = rs.next(); ... } rs.close();- Parameters:
query- the query stringargs- query parameters (positional)- Returns:
- the query result set
-
query
Description copied from interface:ODatabaseExecutes an SQL query (idempotent). The result set has to be closed after usage
Sample usage:Map<String, Object> params = new HashMapMap<>(); params.put("name", "John"); OResultSet rs = db.query("SELECT FROM V where name = :name", params); while(rs.hasNext()){ OResult item = rs.next(); ... } rs.close();- Parameters:
query- the query stringargs- query parameters (named)- Returns:
-
indexQuery
-
command
Description copied from interface:ODatabaseExecutes a generic (idempotent or non idempotent) command. The result set has to be closed after usage
Sample usage:OResultSet rs = db.command("INSERT INTO Person SET name = ?", "John"); ... rs.close();args- query arguments- Returns:
-
command
Description copied from interface:ODatabaseExecutes a generic (idempotent or non idempotent) command. The result set has to be closed after usage
Sample usage:Map<String, Object> params = new HashMapMap<>(); params.put("name", "John"); OResultSet rs = db.query("INSERT INTO Person SET name = :name", params); ... rs.close();- Returns:
-
execute
public OResultSet execute(String language, String script, Object... args) throws OCommandExecutionException, OCommandScriptException Description copied from interface:ODatabaseExecute a script in a specified query language. The result set has to be closed after usage
Sample usage:String script = "INSERT INTO Person SET name = 'foo', surname = ?;"+ "INSERT INTO Person SET name = 'bar', surname = ?;"+ "INSERT INTO Person SET name = 'baz', surname = ?;";OResultSet rs = db.execute("sql", script, "Surname1", "Surname2", "Surname3"); ... rs.close();
- Returns:
- Throws:
OCommandExecutionExceptionOCommandScriptException
-
execute
public OResultSet execute(String language, String script, Map<String, ?> args) throws OCommandExecutionException, OCommandScriptExceptionDescription copied from interface:ODatabaseExecute a script of a specified query language The result set has to be closed after usage
Sample usage:Map<String, Object> params = new HashMapMap<>(); params.put("surname1", "Jones"); params.put("surname2", "May"); params.put("surname3", "Ali");String script = "INSERT INTO Person SET name = 'foo', surname = :surname1;"+ "INSERT INTO Person SET name = 'bar', surname = :surname2;"+ "INSERT INTO Person SET name = 'baz', surname = :surname3;";
OResultSet rs = db.execute("sql", script, params); ... rs.close();
- Returns:
- Throws:
OCommandExecutionExceptionOCommandScriptException
-
closeQuery
-
fetchNextPage
-
live
Description copied from interface:ODatabaseSubscribe a query as a live query for future create/update event with the referred conditions- Parameters:
query- live querylistener- the listener that receive the query resultsargs- the live query args
-
live
Description copied from interface:ODatabaseSubscribe a query as a live query for future create/update event with the referred conditions- Parameters:
query- live querylistener- the listener that receive the query resultsargs- the live query args
-
addBlobCluster
Description copied from interface:ODatabaseDocumentAdd a cluster for blob records.- Parameters:
iClusterName- Cluster nameiParameters- Additional parameters to pass to the factories- Returns:
- Cluster id
-
executeDeleteRecord
-
beforeCreateOperations
- Returns:
- null if nothing changed the instance if has been modified or replaced
-
beforeUpdateOperations
- Returns:
- null if nothing changed the instance if has been modified or replaced
-
beforeDeleteOperations
-
afterUpdateOperations
-
afterCreateOperations
-
afterDeleteOperations
-
beforeReadOperations
- Returns:
- true if the record should be skipped
-
afterReadOperations
-
saveAll
-
executeReadRecord
public <RET extends ORecord> RET executeReadRecord(ORecordId rid, ORecord iRecord, int recordVersion, String fetchPlan, boolean ignoreCache, boolean iUpdateCache, RecordReader recordReader) This method is internal, it can be subject to signature change or be removed, do not use. @Internal- Specified by:
executeReadRecordin interfaceODatabaseDocumentInternal- Specified by:
executeReadRecordin classODatabaseDocumentAbstract
-
getClusterName
-
internalLockRecord
-
internalUnlockRecord
-
lock
Description copied from interface:ODatabasePessimistic lock a record.In case of lock inside the transaction the lock will be release by the commit operation, In case of lock outside a transaction unlock need to be call manually.
- Parameters:
recordId- the id of the record that need to be locked- Returns:
- the record updated to the last state after the lock.
- Throws:
OLockException- In case of deadlock detected
-
lock
public <RET extends ORecord> RET lock(ORID recordId, long timeout, TimeUnit timeoutUnit) throws OLockException Description copied from interface:ODatabasePessimistic lock a record.- Parameters:
recordId- the id of the record that need to be lockedtimeout- for the record lockingtimeoutUnit- relative for the timeout- Returns:
- the record updated to the last state after the lock.
- Throws:
OLockException- In case of deadlock detected
-
unlock
Description copied from interface:ODatabasePessimistic unlock- Parameters:
recordId- the id of the record to unlock- Throws:
OLockException- if the record is not locked.
-
sendSequenceAction
public <T> T sendSequenceAction(OSequenceAction action) throws ExecutionException, InterruptedException -
delete
Description copied from interface:ODatabaseDeletes an entity from the database in synchronous mode.- Parameters:
record- The entity to delete.- Returns:
- The Database instance itself giving a "fluent interface". Useful to call multiple methods in chain.
-
addCluster
Description copied from interface:ODatabaseAdds a new cluster.- Parameters:
iClusterName- Cluster nameiParameters- Additional parameters to pass to the factories- Returns:
- Cluster id
-
addCluster
Description copied from interface:ODatabaseAdds a new cluster.- Parameters:
iClusterName- Cluster nameiRequestedId- requested id of the cluster- Returns:
- Cluster id
-
getConflictStrategy
Description copied from interface:ODatabaseReturns the current record conflict strategy. -
setConflictStrategy
Description copied from interface:ODatabaseOverrides record conflict strategy selecting the strategy by name.- Parameters:
iStrategyName- ORecordConflictStrategy strategy name- Returns:
- The Database instance itself giving a "fluent interface". Useful to call multiple methods in chain.
-
setConflictStrategy
Description copied from interface:ODatabaseOverrides record conflict strategy.- Parameters:
iResolver- ORecordConflictStrategy implementation- Returns:
- The Database instance itself giving a "fluent interface". Useful to call multiple methods in chain.
-
countClusterElements
public long countClusterElements(int iClusterId) Counts all the entities in the specified cluster id.- Parameters:
iClusterId- Cluster id- Returns:
- Total number of entities contained in the specified cluster
-
countClusterElements
public long countClusterElements(int[] iClusterIds) Counts all the entities in the specified cluster ids.- Parameters:
iClusterIds- Array of cluster ids Cluster id- Returns:
- Total number of entities contained in the specified clusters
-
countClusterElements
Counts all the entities in the specified cluster name.- Parameters:
iClusterName- Cluster name- Returns:
- Total number of entities contained in the specified cluster
-
getClusterRecordSizeByName
Description copied from interface:ODatabaseReturns the total size of records contained in the cluster defined by its name.- Parameters:
clusterName- Cluster name- Returns:
- Total size of records contained.
-
dropCluster
Description copied from interface:ODatabaseDrops a cluster by its name. Physical clusters will be completely deleted- Parameters:
iClusterName- the name of the cluster- Returns:
- true if has been removed, otherwise false
-
dropCluster
public boolean dropCluster(int clusterId) Description copied from interface:ODatabaseDrops a cluster by its id. Physical clusters will be completely deleted.- Parameters:
clusterId- id of cluster to delete- Returns:
- true if has been removed, otherwise false
-
dropClusterInternal
public boolean dropClusterInternal(int clusterId) -
getClusterRecordSizeById
public long getClusterRecordSizeById(int clusterId) Description copied from interface:ODatabaseReturns the total size of records contained in the cluster defined by its id.- Parameters:
clusterId- Cluster id- Returns:
- The name of searched cluster.
-
getSize
public long getSize()Description copied from interface:ODatabaseReturns the total size of the records in the database. -
checkSecurity
public <DB extends ODatabaseDocument> DB checkSecurity(ORule.ResourceGeneric resourceGeneric, String resourceSpecific, int iOperation) Description copied from interface:ODatabaseDocumentChecks if the operation on a resource is allowed for the current user.- Parameters:
resourceGeneric- Generic Resource where to execute the operationiOperation- Operation to execute against the resource- Returns:
- The Database instance itself giving a "fluent interface". Useful to call multiple methods in chain.
-
checkSecurity
public <DB extends ODatabaseDocument> DB checkSecurity(ORule.ResourceGeneric iResourceGeneric, int iOperation, Object iResourceSpecific) Description copied from interface:ODatabaseDocumentChecks if the operation on a resource is allowed for the current user. The check is made in two steps:- Access to all the resource as *
- Access to the specific target resource
- Parameters:
iResourceGeneric- Resource where to execute the operation, i.e.: database.clustersiOperation- Operation to execute against the resourceiResourceSpecific- Target resource, i.e.: "employee" to specify the cluster name.- Returns:
- The Database instance itself giving a "fluent interface". Useful to call multiple methods in chain.
-
checkSecurity
public <DB extends ODatabaseDocument> DB checkSecurity(ORule.ResourceGeneric iResourceGeneric, int iOperation, Object... iResourcesSpecific) Description copied from interface:ODatabaseDocumentChecks if the operation against multiple resources is allowed for the current user. The check is made in two steps:- Access to all the resource as *
- Access to the specific target resources
- Parameters:
iResourceGeneric- Resource where to execute the operation, i.e.: database.clustersiOperation- Operation to execute against the resourceiResourcesSpecific- Target resources as an array of Objects, i.e.: ["employee", 2] to specify cluster name and id.- Returns:
- The Database instance itself giving a "fluent interface". Useful to call multiple methods in chain.
-
isRemote
public boolean isRemote() -
incrementalBackup
Description copied from interface:ODatabasePerforms incremental backup of database content to the selected folder. This is thread safe operation and can be done in normal operational mode.If it will be first backup of data full content of database will be copied into folder otherwise only changes after last backup in the same folder will be copied.
- Parameters:
path- Path to backup folder.- Returns:
- File name of the backup
- Throws:
UnsupportedOperationException
-
getRecordMetadata
-
freeze
public void freeze(boolean throwException) Flush all indexes and cached storage content to the disk.After this call users can perform only select queries. All write-related commands will queued till
ODatabaseDocument.release()command will be called or exception will be thrown on attempt to modify DB data. Concrete behaviour depends onthrowExceptionparameter.IMPORTANT: This command is not reentrant.
- Parameters:
throwException- IftrueOModificationOperationProhibitedExceptionexception will be thrown in case of write command will be performed.
-
freeze
public void freeze()Flush all indexes and cached storage content to the disk.After this call users can perform only select queries. All write-related commands will queued till
ODatabaseDocument.release()command will be called.Given command waits till all on going modifications in indexes or DB will be finished.
IMPORTANT: This command is not reentrant.
- See Also:
-
release
public void release()Allows to execute write-related commands on DB. Called afterODatabaseDocument.freeze()command.- See Also:
-
backup
public List<String> backup(OutputStream out, Map<String, Object> options, Callable<Object> callable, OCommandOutputListener iListener, int compressionLevel, int bufferSize) throws IOExceptionDescription copied from interface:OBackupableExecutes a backup of the database. During the backup the database will be frozen in read-only mode.- Parameters:
out- OutputStream used to write the backup content. Use a FileOutputStream to make the backup persistent on diskoptions- Backup options as Map<String, Object> objectcallable- Callback to execute when the database is lockediListener- Listener called for backup messagescompressionLevel- ZIP Compression level between 1 (the minimum) and 9 (maximum). The bigger is the compression, the smaller will be the final backup content, but will consume more CPU and time to executebufferSize- Buffer size in bytes, the bigger is the buffer, the more efficient will be the compression- Throws:
IOException- See Also:
-
restore
public void restore(InputStream in, Map<String, Object> options, Callable<Object> callable, OCommandOutputListener iListener) throws IOExceptionDescription copied from interface:OBackupableExecutes a restore of a database backup. During the restore the database will be frozen in read-only mode.- Parameters:
in- InputStream used to read the backup content. Use a FileInputStream to read a backup on a diskoptions- Backup options as Map<String, Object> objectcallable- Callback to execute when the database is lockediListener- Listener called for backup messages- Throws:
IOException- See Also:
-
getSbTreeCollectionManager
Internal. Gets an instance of sb-tree collection manager for current database. -
reload
public void reload()Description copied from interface:ODatabaseReloads the database information like the cluster list. -
internalCommit
Description copied from interface:ODatabaseDocumentInternalExecuted the commit on the storage hiding away storage concepts from the transaction -
isClosed
public boolean isClosed()Description copied from interface:ODatabaseChecks if the database is closed.- Returns:
- true if is closed, otherwise false.
-
internalClose
public void internalClose(boolean recycle) -
getClusterDataRange
public long[] getClusterDataRange(int currentClusterId) -
setDefaultClusterId
public void setDefaultClusterId(int addCluster) -
getLastClusterPosition
public long getLastClusterPosition(int clusterId) -
getClusterRecordConflictStrategy
-
getActiveTx
-
getClustersIds
-
truncateCluster
Removes all data in the cluster with given name. As result indexes for this class will be rebuilt.- Parameters:
clusterName- Name of cluster to be truncated.
-
truncateClass
-
truncateClusterInternal
-
truncateClass
-
commitPreallocate
public void commitPreallocate() -
internalCommitPreallocate
-
remoteRollback
-
higherPhysicalPositions
public OPhysicalPosition[] higherPhysicalPositions(int clusterId, OPhysicalPosition physicalPosition) -
lowerPhysicalPositions
public OPhysicalPosition[] lowerPhysicalPositions(int clusterId, OPhysicalPosition physicalPosition) -
ceilingPhysicalPositions
public OPhysicalPosition[] ceilingPhysicalPositions(int clusterId, OPhysicalPosition physicalPosition) -
floorPhysicalPositions
public OPhysicalPosition[] floorPhysicalPositions(int clusterId, OPhysicalPosition physicalPosition) -
countRecords
public long countRecords() -
isReusable
public boolean isReusable() -
createSBTree
-
directRead
public ORawBuffer directRead(ORecordId rid, String fetchPlan, boolean ignoreCache, int recordVersion) -
readIfVersionIsNotLatest
public ORawBuffer readIfVersionIsNotLatest(ORecordId rid, String fetchPlan, boolean ignoreCache, int recordVersion)
-