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, qualifier
-
Methods inherited from interface one.microstream.storage.types.StorageHashChannelPart
channelIndex
-
Methods inherited from interface one.microstream.storage.types.StorageInventoryFile
inventorize
-
Methods inherited from interface one.microstream.storage.types.StorageLockedFile
clearUsages, close, executeIfUnsued, hasUsers, length, registerUsage, tryClose, unregisterUsage, unregisterUsageClosing
-
Methods inherited from interface one.microstream.storage.types.StorageNumberedFile
number
-
-
-
-
Method Detail
-
prependEntry
void prependEntry(I entry)
-
appendEntry
void appendEntry(I entry)
-
remove
void remove(StorageEntity.Default entity)
-
loadEntityData
void loadEntityData(I entity, long length, long cacheChange)
-
totalLength
long totalLength()
-
dataLength
long dataLength()
-
dataFillRatio
double dataFillRatio()
-
exportTo
long exportTo(StorageLockedFile file)
-
exportTo
long exportTo(StorageLockedFile file, long sourceOffset, long length)
-
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.
-
-