Package one.microstream.storage.types
Interface StorageLiveDataFile
- All Superinterfaces:
StorageBackupableFile,StorageChannelFile,StorageClosableFile,StorageCreatableFile,StorageDataFile,StorageFile,StorageHashChannelPart,StorageLiveChannelFile<StorageLiveDataFile>,StorageLiveFile<StorageLiveDataFile>,StorageTruncatableChannelFile
- All Known Implementing Classes:
StorageLiveDataFile.Default
public interface StorageLiveDataFile extends StorageDataFile, StorageLiveChannelFile<StorageLiveDataFile>, StorageCreatableFile
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classStorageLiveDataFile.DefaultNested classes/interfaces inherited from interface one.microstream.storage.types.StorageChannelFile
StorageChannelFile.AbstractNested classes/interfaces inherited from interface one.microstream.storage.types.StorageDataFile
StorageDataFile.Abstract, StorageDataFile.Creator<F extends StorageDataFile>Nested classes/interfaces inherited from interface one.microstream.storage.types.StorageFile
StorageFile.AbstractNested classes/interfaces inherited from interface one.microstream.storage.types.StorageLiveFile
StorageLiveFile.Abstract<S extends StorageLiveFile<S>> -
Method Summary
Modifier and Type Method Description doubledataFillRatio()longdataLength()default StorageBackupDataFileensureBackupFile(StorageBackupInventory backupInventory)booleanhasSingleEntity()Querying method to check if a storage file consists of only one singular live entity.booleanisHeadFile()static StorageLiveDataFile.DefaultNew(StorageFileManager.Default parent, StorageDataInventoryFile inventoryFile)longtotalLength()Methods inherited from interface one.microstream.storage.types.StorageFile
copyFrom, copyFrom, copyFrom, copyTo, copyTo, copyTo, copyTo, copyTo, copyTo, delete, exists, file, identifier, moveTo, readBytes, readBytes, readBytes, readBytes, readBytes, readBytes, size, writeBytesMethods inherited from interface one.microstream.storage.types.StorageLiveFile
clearUsages, executeIfUnsued, hasUsers, registerUsage, unregisterUsage, unregisterUsageClosingMethods inherited from interface one.microstream.storage.types.StorageTruncatableChannelFile
truncate
-
Method Details
-
totalLength
long totalLength() -
dataLength
long dataLength() -
dataFillRatio
double dataFillRatio() -
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.
-
ensureBackupFile
- Specified by:
ensureBackupFilein interfaceStorageBackupableFile- Specified by:
ensureBackupFilein interfaceStorageDataFile- Specified by:
ensureBackupFilein interfaceStorageLiveChannelFile<StorageLiveDataFile>
-
New
static StorageLiveDataFile.Default New(StorageFileManager.Default parent, StorageDataInventoryFile inventoryFile)
-