public static class StorageLiveDataFile.Default extends StorageLiveFile.Abstract<StorageLiveDataFile> implements StorageLiveDataFile
StorageLiveDataFile.DefaultStorageDataFile.Abstract, StorageDataFile.Creator<F extends StorageDataFile>| Modifier | Constructor and Description |
|---|---|
protected |
Default(StorageFileManager.Default parent,
one.microstream.afs.types.AFile file,
int channelIndex,
long number) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendEntry(StorageEntity.Default entry) |
int |
channelIndex() |
double |
dataFillRatio() |
long |
dataLength() |
boolean |
executeIfUnsuedData(Consumer<? super StorageLiveDataFile.Default> action) |
boolean |
hasSingleEntity()
Querying method to check if a storage file consists of only one singular live entity.
|
protected boolean |
internalOpenWriting() |
boolean |
isHeadFile() |
void |
loadEntityData(StorageEntity.Default entity,
long length,
long cacheChange) |
long |
number() |
void |
prependEntry(StorageEntity.Default entry) |
void |
remove(StorageEntity.Default entity) |
String |
toString() |
long |
totalLength() |
boolean |
unregisterUsageClosingData(StorageFileUser fileUser,
Consumer<? super StorageLiveDataFile.Default> closingAction) |
$, clearUsages, executeIfUnsued, hasUsers, registerUsage, unregisterUsage, unregisterUsageClosingclose, copyFrom, copyFrom, copyFrom, copyTo, copyTo, copyTo, copyTo, copyTo, copyTo, delete, ensureReadable, ensureWritable, exists, file, internalOpenReading, isOpen, moveTo, readBytes, readBytes, readBytes, readBytes, readBytes, readBytes, size, truncate, writeBytesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitensureBackupFile, NeworderByNumberclearUsages, executeIfUnsued, hasUsers, registerUsage, unregisterUsage, unregisterUsageClosingclose, close, isOpentruncateassembleNameAndSize, copyFrom, copyFrom, copyFrom, copyTo, copyTo, copyTo, copyTo, copyTo, copyTo, delete, exists, file, identifier, moveTo, readBytes, readBytes, readBytes, readBytes, readBytes, readBytes, size, writeBytesensureprotected Default(StorageFileManager.Default parent, one.microstream.afs.types.AFile file, int channelIndex, long number)
public final int channelIndex()
channelIndex in interface StorageChannelFilechannelIndex in interface StorageDataFilechannelIndex in interface StorageHashChannelPartpublic final long number()
number in interface StorageDataFilepublic long dataLength()
dataLength in interface StorageLiveDataFilepublic long totalLength()
totalLength in interface StorageLiveDataFilepublic boolean executeIfUnsuedData(Consumer<? super StorageLiveDataFile.Default> action)
public final boolean unregisterUsageClosingData(StorageFileUser fileUser, Consumer<? super StorageLiveDataFile.Default> closingAction)
protected boolean internalOpenWriting()
internalOpenWriting in class StorageFile.Abstractpublic final double dataFillRatio()
dataFillRatio in interface StorageLiveDataFilepublic final boolean hasSingleEntity()
StorageLiveDataFilehasSingleEntity in interface StorageLiveDataFilepublic final void remove(StorageEntity.Default entity)
public final void prependEntry(StorageEntity.Default entry)
public final void appendEntry(StorageEntity.Default entry)
public final void loadEntityData(StorageEntity.Default entity, long length, long cacheChange)
public boolean isHeadFile()
isHeadFile in interface StorageLiveDataFilepublic final String toString()
toString in class StorageFile.AbstractCopyright © 2022 MicroStream Software. All rights reserved.