Class OVersionPositionMapV0
java.lang.Object
com.orientechnologies.common.concur.resource.OSharedResourceAbstract
com.orientechnologies.orient.core.storage.impl.local.paginated.base.ODurableComponent
com.orientechnologies.orient.core.storage.index.versionmap.OVersionPositionMap
com.orientechnologies.orient.core.storage.index.versionmap.OVersionPositionMapV0
The version position map in version 0 stores a version of type int for all change operations on
the `OAbstractPaginatedStorage` storage. It creates one file with extension `vpm` (i.e. w/o meta
data) and expected number of elements OBaseIndexEngine.DEFAULT_VERSION_ARRAY_SIZE.
-
Field Summary
FieldsFields inherited from class com.orientechnologies.orient.core.storage.index.versionmap.OVersionPositionMap
DEF_EXTENSION, DEFAULT_VERSION_ARRAY_SIZE, MAGIC_SAFETY_FILL_FACTOR, MAX_CONCURRENT_DISTRIBUTED_TRANSACTIONSFields inherited from class com.orientechnologies.orient.core.storage.impl.local.paginated.base.ODurableComponent
atomicOperationsManager, readCache, storage, writeCacheFields inherited from class com.orientechnologies.common.concur.resource.OSharedResourceAbstract
lock -
Constructor Summary
ConstructorsConstructorDescriptionOVersionPositionMapV0(OAbstractPaginatedStorage storage, String name, String lockName, String extension) -
Method Summary
Modifier and TypeMethodDescriptionvoidcreate(OAtomicOperation atomicOperation) voiddelete(OAtomicOperation atomicOperation) intgetKeyHash(Object key) intgetVersion(int hash) voidopen()voidupdateVersion(int hash) Methods inherited from class com.orientechnologies.orient.core.storage.impl.local.paginated.base.ODurableComponent
addFile, addPage, calculateInsideComponentOperation, deleteFile, executeInsideComponentOperation, getExtension, getFilledUpTo, getFullName, getLockName, getName, isFileExists, loadOrAddPageForWrite, loadPageForRead, loadPageForWrite, openFile, releasePageFromRead, releasePageFromWrite, setName, truncateFile, tryExecuteInsideComponentOperationMethods inherited from class com.orientechnologies.common.concur.resource.OSharedResourceAbstract
acquireExclusiveLock, acquireSharedLock, releaseExclusiveLock, releaseSharedLock
-
Field Details
-
PAGE_SIZE
public static final int PAGE_SIZE
-
-
Constructor Details
-
OVersionPositionMapV0
public OVersionPositionMapV0(OAbstractPaginatedStorage storage, String name, String lockName, String extension)
-
-
Method Details
-
create
- Specified by:
createin classOVersionPositionMap
-
delete
- Specified by:
deletein classOVersionPositionMap
-
open
- Specified by:
openin classOVersionPositionMap- Throws:
IOException
-
updateVersion
public void updateVersion(int hash) - Specified by:
updateVersionin classOVersionPositionMap
-
getVersion
public int getVersion(int hash) - Specified by:
getVersionin classOVersionPositionMap
-
getKeyHash
- Specified by:
getKeyHashin classOVersionPositionMap
-