Package one.microstream.storage.types
Class StorageEntity.Default
java.lang.Object
one.microstream.storage.types.StorageEntity.Default
- All Implemented Interfaces:
StorageEntity,StorageEntityCacheItem<StorageEntity.Default>
- Enclosing interface:
- StorageEntity
public static final class StorageEntity.Default extends Object implements StorageEntityCacheItem<StorageEntity.Default>, StorageEntity
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.storage.types.StorageEntity
StorageEntity.Default, StorageEntity.MaxObjectId, StorageEntity.MinObjectId -
Constructor Summary
Constructors Constructor Description Default() -
Method Summary
Modifier and Type Method Description longcachedDataLength()The length this entity occupies in the cache.longclearCache()voidcopyCachedData(MemoryRangeReader entityDataCollector)longdataLength()the entity's data length, meaning the pure content length without any header or meta data.longexportTo(StorageLockedFile file)booleanhasReferences()The information if this entity's type has reference fields (regardless of a particular entity's actual data).booleaniterateReferenceIds(PersistenceObjectIdAcceptor referenceIdIterator)longlastTouched()The approximate system time that this particular entity has been last touched.longobjectId()The entity's biunique identifying id number.StorageDataFile<StorageEntity.Default>storageFile()longstoragePosition()StringtoString()longtypeId()The entity's type id.
-
Constructor Details
-
Default
public Default()
-
-
Method Details
-
dataLength
public final long dataLength()Description copied from interface:StorageEntitythe entity's data length, meaning the pure content length without any header or meta data.- Specified by:
dataLengthin interfaceStorageEntity- Specified by:
dataLengthin interfaceStorageEntityCacheItem<StorageEntity.Default>
-
typeId
public long typeId()Description copied from interface:StorageEntityThe entity's type id.- Specified by:
typeIdin interfaceStorageEntity
-
storagePosition
public final long storagePosition()- Specified by:
storagePositionin interfaceStorageEntityCacheItem<StorageEntity.Default>
-
cachedDataLength
public final long cachedDataLength()Description copied from interface:StorageEntityThe length this entity occupies in the cache. This might be vary, even for fixed length typed, from the values returned byStorageEntity.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.- Specified by:
cachedDataLengthin interfaceStorageEntity
-
hasReferences
public final boolean hasReferences()Description copied from interface:StorageEntityThe information if this entity's type has reference fields (regardless of a particular entity's actual data).- Specified by:
hasReferencesin interfaceStorageEntity
-
objectId
public final long objectId()Description copied from interface:StorageEntityThe entity's biunique identifying id number.- Specified by:
objectIdin interfaceStorageEntity- Specified by:
objectIdin interfaceStorageEntityCacheItem<StorageEntity.Default>
-
lastTouched
public final long lastTouched()Description copied from interface:StorageEntityThe approximate system time that this particular entity has been last touched. The returned value is compatible to the value returned bySystem.currentTimeMillis().- Specified by:
lastTouchedin interfaceStorageEntity
-
storageFile
- Specified by:
storageFilein interfaceStorageEntityCacheItem<StorageEntity.Default>
-
iterateReferenceIds
- Specified by:
iterateReferenceIdsin interfaceStorageEntityCacheItem<StorageEntity.Default>
-
exportTo
- Specified by:
exportToin interfaceStorageEntityCacheItem<StorageEntity.Default>
-
copyCachedData
- Specified by:
copyCachedDatain interfaceStorageEntityCacheItem<StorageEntity.Default>
-
clearCache
public final long clearCache()- Specified by:
clearCachein interfaceStorageEntityCacheItem<StorageEntity.Default>
-
toString
-