public static final class StorageEntity.Default extends Object implements StorageEntity
StorageEntity.Default, StorageEntity.MaxObjectId, StorageEntity.MinObjectId| Modifier and Type | Method and Description |
|---|---|
long |
cachedDataLength()
The length this entity occupies in the cache.
|
long |
clearCache() |
void |
copyCachedData(MemoryRangeReader entityDataCollector) |
long |
dataLength() |
long |
exportTo(one.microstream.afs.types.AWritableFile file) |
boolean |
hasReferences() |
boolean |
iterateReferenceIds(one.microstream.persistence.types.PersistenceObjectIdAcceptor referenceIdIterator) |
long |
lastTouched()
The approximate system time that this particular entity has been last touched.
|
long |
objectId() |
StorageLiveDataFile |
storageFile() |
long |
storagePosition() |
String |
toString() |
long |
typeId() |
public final long dataLength()
dataLength in interface StorageEntitypublic long typeId()
typeId in interface StorageEntitypublic final long storagePosition()
storagePosition in interface StorageEntitypublic final long cachedDataLength()
StorageEntityStorageEntity.dataLength() as only parts of an entity (e.g. only references) might be loaded into cache
and because the cache might hold the header/meta data of an entity as well.cachedDataLength in interface StorageEntitypublic final boolean hasReferences()
hasReferences in interface StorageEntitypublic final long objectId()
objectId in interface StorageEntitypublic final long lastTouched()
StorageEntitySystem.currentTimeMillis().lastTouched in interface StorageEntitypublic final StorageLiveDataFile storageFile()
storageFile in interface StorageEntitypublic final boolean iterateReferenceIds(one.microstream.persistence.types.PersistenceObjectIdAcceptor referenceIdIterator)
iterateReferenceIds in interface StorageEntitypublic final long exportTo(one.microstream.afs.types.AWritableFile file)
exportTo in interface StorageEntitypublic final void copyCachedData(MemoryRangeReader entityDataCollector)
copyCachedData in interface StorageEntitypublic final long clearCache()
clearCache in interface StorageEntityCopyright © 2022 MicroStream Software. All rights reserved.