
public class OAtomicOperation extends Object
| Constructor and Description |
|---|
OAtomicOperation(OLogSequenceNumber startLSN,
OOperationUnitId operationUnitId,
OReadCache readCache,
OWriteCache writeCache,
int storageId,
OPerformanceStatisticManager performanceStatisticManager) |
| Modifier and Type | Method and Description |
|---|---|
long |
addFile(String fileName) |
void |
addMetadata(OAtomicOperationMetadata<?> metadata)
Add metadata with given key inside of atomic operation.
|
OCacheEntry |
addPage(long fileId) |
void |
commitChanges(OWriteAheadLog writeAheadLog) |
protected OPageCache |
createPageCache(OReadCache readCache) |
void |
deleteFile(long fileId) |
boolean |
equals(Object o) |
String |
fileNameById(long fileId) |
long |
filledUpTo(long fileId) |
OWALChanges |
getChanges(long fileId,
long pageIndex) |
Map<String,OAtomicOperationMetadata<?>> |
getMetadata() |
OAtomicOperationMetadata<?> |
getMetadata(String key) |
OOperationUnitId |
getOperationUnitId() |
OLogSequenceNumber |
getStartLSN() |
int |
hashCode() |
boolean |
isFileExists(long fileId) |
boolean |
isFileExists(String fileName) |
long |
loadFile(String fileName) |
OCacheEntry |
loadPage(long fileId,
long pageIndex,
boolean checkPinnedPages,
int pageCount) |
void |
pinPage(OCacheEntry cacheEntry) |
void |
releasePage(OCacheEntry cacheEntry) |
void |
truncateFile(long fileId) |
public OAtomicOperation(OLogSequenceNumber startLSN, OOperationUnitId operationUnitId, OReadCache readCache, OWriteCache writeCache, int storageId, OPerformanceStatisticManager performanceStatisticManager)
public OLogSequenceNumber getStartLSN()
public OOperationUnitId getOperationUnitId()
public OCacheEntry loadPage(long fileId, long pageIndex, boolean checkPinnedPages, int pageCount) throws IOException
IOExceptionpublic void addMetadata(OAtomicOperationMetadata<?> metadata)
metadata - Metadata to add.OAtomicOperationMetadatapublic OAtomicOperationMetadata<?> getMetadata(String key)
key - Key of metadata which is looking for.null if such metadata is absent.public Map<String,OAtomicOperationMetadata<?>> getMetadata()
public void pinPage(OCacheEntry cacheEntry) throws IOException
IOExceptionpublic OCacheEntry addPage(long fileId) throws IOException
IOExceptionpublic void releasePage(OCacheEntry cacheEntry)
public OWALChanges getChanges(long fileId, long pageIndex)
public long filledUpTo(long fileId)
throws IOException
IOExceptionpublic long addFile(String fileName) throws IOException
IOExceptionpublic long loadFile(String fileName) throws IOException
IOExceptionpublic void deleteFile(long fileId)
public boolean isFileExists(String fileName)
public boolean isFileExists(long fileId)
public String fileNameById(long fileId)
public void truncateFile(long fileId)
public void commitChanges(OWriteAheadLog writeAheadLog) throws IOException
IOExceptionprotected OPageCache createPageCache(OReadCache readCache)
Copyright © 2009–2025 OrientDB. All rights reserved.