Package one.microstream.storage.types
Interface StorageDataFile<I extends StorageEntityCacheItem<I>>
- All Superinterfaces:
StorageChannelFile
,StorageFile
,StorageHashChannelPart
,StorageInventoryFile
,StorageLockedFile
,StorageNumberedFile
- All Known Implementing Classes:
StorageDataFile.Default
public interface StorageDataFile<I extends StorageEntityCacheItem<I>> extends StorageInventoryFile
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
StorageDataFile.Default
-
Method Summary
Modifier and Type Method Description void
appendEntry(I entry)
double
dataFillRatio()
long
dataLength()
long
exportTo(StorageLockedFile file)
long
exportTo(StorageLockedFile file, long sourceOffset, long length)
boolean
hasSingleEntity()
Querying method to check if a storage file consists of only one singular live entity.boolean
isHeadFile()
void
loadEntityData(I entity, long length, long cacheChange)
void
prependEntry(I entry)
void
remove(StorageEntity.Default entity)
long
totalLength()
Methods inherited from interface one.microstream.storage.types.StorageFile
delete, exists, fileChannel, flush, identifier, isEmpty, isOpen, name, qualifier
Methods inherited from interface one.microstream.storage.types.StorageLockedFile
clearUsages, close, executeIfUnsued, hasUsers, length, registerUsage, tryClose, unregisterUsage, unregisterUsageClosing
-
Method Details
-
prependEntry
-
appendEntry
-
remove
-
loadEntityData
-
totalLength
long totalLength() -
dataLength
long dataLength() -
dataFillRatio
double dataFillRatio() -
exportTo
-
exportTo
-
isHeadFile
boolean isHeadFile() -
hasSingleEntity
boolean hasSingleEntity()Querying method to check if a storage file consists of only one singular live entity. This is necessary to avoid dissolving files that are oversized because of one single oversized entity.- Returns:
- true if the file containts exactely one live entity.
-