
public interface OStorage extends OBackupable, OSharedContainer
ODirectMemoryStorage| Modifier and Type | Interface and Description |
|---|---|
static class |
OStorage.LOCKING_STRATEGY |
static class |
OStorage.SIZE |
static class |
OStorage.STATUS |
| Modifier and Type | Field and Description |
|---|---|
static String |
CLUSTER_DEFAULT_NAME |
| Modifier and Type | Method and Description |
|---|---|
int |
addCluster(String iClusterName,
boolean forceListBased,
Object... iParameters)
Add a new cluster into the storage.
|
int |
addCluster(String iClusterName,
int iRequestedId,
boolean forceListBased,
Object... iParameters)
Add a new cluster into the storage.
|
<V> V |
callInLock(Callable<V> iCallable,
boolean iExclusiveLock) |
OPhysicalPosition[] |
ceilingPhysicalPositions(int clusterId,
OPhysicalPosition physicalPosition) |
void |
checkForClusterPermissions(String iClusterName) |
boolean |
checkForRecordValidity(OPhysicalPosition ppos) |
boolean |
cleanOutRecord(ORecordId recordId,
int recordVersion,
int iMode,
ORecordCallback<Boolean> callback) |
void |
clearProperties() |
void |
close() |
void |
close(boolean iForce,
boolean onDelete) |
Object |
command(OCommandRequestText iCommand)
Execute the command request and return the result back.
|
List<ORecordOperation> |
commit(OTransaction iTx,
Runnable callback) |
long |
count(int iClusterId) |
long |
count(int[] iClusterIds) |
long |
count(int[] iClusterIds,
boolean countTombstones) |
long |
count(int iClusterId,
boolean countTombstones) |
long |
countRecords()
Returns the total number of records.
|
void |
create(Map<String,Object> iProperties) |
OStorageOperationResult<OPhysicalPosition> |
createRecord(ORecordId iRecordId,
byte[] iContent,
int iRecordVersion,
byte iRecordType,
int iMode,
ORecordCallback<Long> iCallback) |
void |
delete() |
OStorageOperationResult<Boolean> |
deleteRecord(ORecordId iRecordId,
int iVersion,
int iMode,
ORecordCallback<Boolean> iCallback) |
boolean |
dropCluster(int iId,
boolean iTruncate)
Drops a cluster.
|
boolean |
dropCluster(String iClusterName,
boolean iTruncate) |
boolean |
exists() |
OPhysicalPosition[] |
floorPhysicalPositions(int clusterId,
OPhysicalPosition physicalPosition) |
OCluster |
getClusterById(int iId) |
OCluster |
getClusterByName(String clusterName) |
long[] |
getClusterDataRange(int currentClusterId)
Returns a pair of long values telling the begin and end positions of data in the requested cluster.
|
int |
getClusterIdByName(String iClusterName) |
Collection<? extends OCluster> |
getClusterInstances() |
Set<String> |
getClusterNames() |
int |
getClusters() |
OCurrentStorageComponentsFactory |
getComponentsFactory() |
OStorageConfiguration |
getConfiguration() |
ORecordConflictStrategy |
getConflictStrategy() |
int |
getDefaultClusterId() |
String |
getName() |
String |
getPhysicalClusterNameById(int iClusterId) |
ORecordMetadata |
getRecordMetadata(ORID rid) |
OSBTreeCollectionManager |
getSBtreeCollectionManager() |
long |
getSize()
Returns the size of the database.
|
OStorage.STATUS |
getStatus()
Returns the current storage's status
|
String |
getType()
Returns the storage's type.
|
OStorage |
getUnderlying() |
String |
getURL() |
long |
getVersion() |
OStorageOperationResult<Boolean> |
hideRecord(ORecordId recordId,
int mode,
ORecordCallback<Boolean> callback) |
OPhysicalPosition[] |
higherPhysicalPositions(int clusterId,
OPhysicalPosition physicalPosition) |
String |
incrementalBackup(String backupDirectory) |
boolean |
isAssigningClusterIds() |
boolean |
isClosed() |
boolean |
isDistributed() |
boolean |
isRemote() |
OPhysicalPosition[] |
lowerPhysicalPositions(int clusterId,
OPhysicalPosition physicalPosition) |
void |
open(String iUserName,
String iUserPassword,
Map<String,Object> iProperties) |
OStorageOperationResult<ORawBuffer> |
readRecord(ORecordId iRid,
String iFetchPlan,
boolean iIgnoreCache,
boolean prefetchRecords,
ORecordCallback<ORawBuffer> iCallback) |
OStorageOperationResult<ORawBuffer> |
readRecordIfVersionIsNotLatest(ORecordId rid,
String fetchPlan,
boolean ignoreCache,
int recordVersion) |
void |
recyclePosition(ORecordId record,
byte[] content,
int recordVersion,
byte recordType)
Resurrects a record that was previously deleted.
|
void |
reload() |
void |
removeProperty(String property) |
void |
restoreFromIncrementalBackup(String filePath) |
void |
rollback(OTransaction iTx) |
void |
setCharset(String charset) |
void |
setClusterSelection(String clusterSelection) |
void |
setConflictStrategy(ORecordConflictStrategy iResolver) |
void |
setDateFormat(String dateFormat) |
void |
setDateTimeFormat(String dateTimeFormat) |
void |
setDefaultClusterId(int defaultClusterId) |
void |
setIndexMgrRecordId(String indexMgrRecordId) |
void |
setLocaleCountry(String localeCountry) |
void |
setLocaleLanguage(String localeLanguage) |
void |
setMinimumClusters(int minimumClusters) |
void |
setProperty(String property,
String value) |
void |
setRecordSerializer(String recordSerializer,
int version) |
void |
setSchemaRecordId(String schemaRecordId) |
void |
setTimeZone(TimeZone timeZone) |
void |
setValidation(boolean validation) |
void |
shutdown()
This method is called in
Orient.shutdown() method. |
void |
synch() |
void |
updateConfiguration() |
OStorageOperationResult<Integer> |
updateRecord(ORecordId iRecordId,
boolean updateContent,
byte[] iContent,
int iVersion,
byte iRecordType,
int iMode,
ORecordCallback<Integer> iCallback) |
backup, restoreexistsResource, getResource, removeResourcestatic final String CLUSTER_DEFAULT_NAME
boolean exists()
void reload()
void delete()
void close()
void close(boolean iForce,
boolean onDelete)
boolean isClosed()
OStorageOperationResult<OPhysicalPosition> createRecord(ORecordId iRecordId, byte[] iContent, int iRecordVersion, byte iRecordType, int iMode, ORecordCallback<Long> iCallback)
OStorageOperationResult<ORawBuffer> readRecord(ORecordId iRid, String iFetchPlan, boolean iIgnoreCache, boolean prefetchRecords, ORecordCallback<ORawBuffer> iCallback)
OStorageOperationResult<ORawBuffer> readRecordIfVersionIsNotLatest(ORecordId rid, String fetchPlan, boolean ignoreCache, int recordVersion) throws ORecordNotFoundException
ORecordNotFoundExceptionOStorageOperationResult<Integer> updateRecord(ORecordId iRecordId, boolean updateContent, byte[] iContent, int iVersion, byte iRecordType, int iMode, ORecordCallback<Integer> iCallback)
void recyclePosition(ORecordId record, byte[] content, int recordVersion, byte recordType)
OStorageOperationResult<Boolean> deleteRecord(ORecordId iRecordId, int iVersion, int iMode, ORecordCallback<Boolean> iCallback)
ORecordMetadata getRecordMetadata(ORID rid)
boolean cleanOutRecord(ORecordId recordId, int recordVersion, int iMode, ORecordCallback<Boolean> callback)
List<ORecordOperation> commit(OTransaction iTx, Runnable callback)
void rollback(OTransaction iTx)
OStorageConfiguration getConfiguration()
int getClusters()
OCluster getClusterById(int iId)
Collection<? extends OCluster> getClusterInstances()
int addCluster(String iClusterName, boolean forceListBased, Object... iParameters)
iClusterName - name of the clusterint addCluster(String iClusterName, int iRequestedId, boolean forceListBased, Object... iParameters)
iClusterName - name of the clusteriRequestedId - requested id of the clusterboolean dropCluster(String iClusterName, boolean iTruncate)
boolean dropCluster(int iId,
boolean iTruncate)
iId - id of the cluster to deletelong count(int iClusterId)
long count(int iClusterId,
boolean countTombstones)
long count(int[] iClusterIds)
long count(int[] iClusterIds,
boolean countTombstones)
long getSize()
long countRecords()
int getDefaultClusterId()
void setDefaultClusterId(int defaultClusterId)
int getClusterIdByName(String iClusterName)
String getPhysicalClusterNameById(int iClusterId)
boolean checkForRecordValidity(OPhysicalPosition ppos)
String getName()
String getURL()
long getVersion()
void synch()
Object command(OCommandRequestText iCommand)
long[] getClusterDataRange(int currentClusterId)
currentClusterId - Cluster id<V> V callInLock(Callable<V> iCallable, boolean iExclusiveLock)
OPhysicalPosition[] higherPhysicalPositions(int clusterId, OPhysicalPosition physicalPosition)
OPhysicalPosition[] lowerPhysicalPositions(int clusterId, OPhysicalPosition physicalPosition)
OPhysicalPosition[] ceilingPhysicalPositions(int clusterId, OPhysicalPosition physicalPosition)
OPhysicalPosition[] floorPhysicalPositions(int clusterId, OPhysicalPosition physicalPosition)
OStorage.STATUS getStatus()
String getType()
void checkForClusterPermissions(String iClusterName)
OStorage getUnderlying()
boolean isRemote()
boolean isDistributed()
boolean isAssigningClusterIds()
OSBTreeCollectionManager getSBtreeCollectionManager()
OCurrentStorageComponentsFactory getComponentsFactory()
OStorageOperationResult<Boolean> hideRecord(ORecordId recordId, int mode, ORecordCallback<Boolean> callback)
ORecordConflictStrategy getConflictStrategy()
void setConflictStrategy(ORecordConflictStrategy iResolver)
void restoreFromIncrementalBackup(String filePath)
void shutdown()
Orient.shutdown() method. For most of the storages it means
that storage will be merely closed, but sometimes additional operations are need to be taken in account.void updateConfiguration()
void setRecordSerializer(String recordSerializer, int version)
void setDateFormat(String dateFormat)
void setDateTimeFormat(String dateTimeFormat)
void setTimeZone(TimeZone timeZone)
void setLocaleCountry(String localeCountry)
void setLocaleLanguage(String localeLanguage)
void setCharset(String charset)
void setClusterSelection(String clusterSelection)
void setMinimumClusters(int minimumClusters)
void setValidation(boolean validation)
void clearProperties()
void removeProperty(String property)
void setSchemaRecordId(String schemaRecordId)
void setIndexMgrRecordId(String indexMgrRecordId)
Copyright © 2009–2025 OrientDB. All rights reserved.