Package one.microstream.storage.types
Interface StorageEntity
-
- All Known Implementing Classes:
StorageEntity.Default
public interface StorageEntity
Public API level type of a storage entity. Used for custom evaluators, filters, etc. Does intentionally not provide any means to load/access the entity's data or change any if its state. This is purely a querying interface, not a means to manipulate data via bypassing normal channels to do so.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
StorageEntity.Default
static class
StorageEntity.MaxObjectId
static class
StorageEntity.MinObjectId
-
Method Summary
Modifier and Type Method Description long
cachedDataLength()
The length this entity occupies in the cache.long
dataLength()
the entity's data length, meaning the pure content length without any header or meta data.boolean
hasReferences()
The information if this entity's type has reference fields (regardless of a particular entity's actual data).long
lastTouched()
The approximate system time that this particular entity has been last touched.long
objectId()
The entity's biunique identifying id number.long
typeId()
The entity's type id.
-
-
-
Method Detail
-
dataLength
long dataLength()
the entity's data length, meaning the pure content length without any header or meta data.
-
typeId
long typeId()
The entity's type id.
-
objectId
long objectId()
The entity's biunique identifying id number.
-
hasReferences
boolean hasReferences()
The information if this entity's type has reference fields (regardless of a particular entity's actual data).
-
cachedDataLength
long cachedDataLength()
The length this entity occupies in the cache. This might be vary, even for fixed length typed, from the values returned bydataLength()
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.
-
lastTouched
long lastTouched()
The approximate system time that this particular entity has been last touched. The returned value is compatible to the value returned bySystem.currentTimeMillis()
.
-
-