Class OVersionPositionMap
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
- Direct Known Subclasses:
OVersionPositionMapV0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final intstatic final intstatic final intFields 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
ConstructorsConstructorDescriptionOVersionPositionMap(OAbstractPaginatedStorage storage, String name, String extension, String lockName) -
Method Summary
Modifier and TypeMethodDescriptionabstract voidcreate(OAtomicOperation atomicOperation) abstract voiddelete(OAtomicOperation atomicOperation) abstract intgetKeyHash(Object key) abstract intgetVersion(int versionHash) abstract voidopen()abstract voidupdateVersion(int versionHash) 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
-
DEF_EXTENSION
- See Also:
-
MAX_CONCURRENT_DISTRIBUTED_TRANSACTIONS
public static final int MAX_CONCURRENT_DISTRIBUTED_TRANSACTIONS- See Also:
-
MAGIC_SAFETY_FILL_FACTOR
public static final int MAGIC_SAFETY_FILL_FACTOR- See Also:
-
DEFAULT_VERSION_ARRAY_SIZE
public static final int DEFAULT_VERSION_ARRAY_SIZE- See Also:
-
-
Constructor Details
-
OVersionPositionMap
public OVersionPositionMap(OAbstractPaginatedStorage storage, String name, String extension, String lockName)
-
-
Method Details
-
create
-
open
- Throws:
IOException
-
delete
- Throws:
IOException
-
updateVersion
public abstract void updateVersion(int versionHash) -
getVersion
public abstract int getVersion(int versionHash) -
getKeyHash
-