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 classStorageDataFile.Default -
Method Summary
Modifier and Type Method Description voidappendEntry(I entry)doubledataFillRatio()longdataLength()longexportTo(StorageLockedFile file)longexportTo(StorageLockedFile file, long sourceOffset, long length)booleanhasSingleEntity()Querying method to check if a storage file consists of only one singular live entity.booleanisHeadFile()voidloadEntityData(I entity, long length, long cacheChange)voidprependEntry(I entry)voidremove(StorageEntity.Default entity)longtotalLength()Methods inherited from interface one.microstream.storage.types.StorageFile
delete, exists, fileChannel, flush, identifier, isEmpty, isOpen, name, qualifierMethods 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.
-