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
close, 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
decrementUserCount, hasNoUsers, incrementUserCount, length
-
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.
-
-