Package one.microstream.storage.types
Class StorageIoHandler.Default
java.lang.Object
one.microstream.storage.types.StorageIoHandler.Default
- All Implemented Interfaces:
PersistenceTypeDictionaryIoHandler.Provider,StorageFileProvider,StorageFileReader,StorageFileWriter,StorageIoHandler
- Enclosing interface:
- StorageIoHandler
public static final class StorageIoHandler.Default extends Object implements StorageIoHandler
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.storage.types.StorageFileProvider
StorageFileProvider.Builder<B extends StorageFileProvider.Builder<?>>, StorageFileProvider.Defaults, StorageFileProvider.StaticNested classes/interfaces inherited from interface one.microstream.storage.types.StorageFileReader
StorageFileReader.ProviderNested classes/interfaces inherited from interface one.microstream.storage.types.StorageFileWriter
StorageFileWriter.ProviderNested classes/interfaces inherited from interface one.microstream.storage.types.StorageIoHandler
StorageIoHandler.Default -
Constructor Summary
Constructors Constructor Description Default(StorageFileProvider fileProvider, StorageFileWriter fileWriter) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface one.microstream.persistence.types.PersistenceTypeDictionaryIoHandler.Provider
provideTypeDictionaryIoHandlerMethods inherited from interface one.microstream.storage.types.StorageFileWriter
copy, writeImport, writeStore, writeTransactionEntryCreate, writeTransactionEntryDelete, writeTransactionEntryStore, writeTransactionEntryTransfer, writeTransactionEntryTruncate, writeTransferMethods inherited from interface one.microstream.storage.types.StorageIoHandler
copyData, copyTransactions
-
Constructor Details
-
Method Details
-
getStorageLocationIdentifier
Description copied from interface:StorageFileProviderReturns a String that uniquely identifies the storage location.- Specified by:
getStorageLocationIdentifierin interfaceStorageFileProvider- Returns:
- a String that uniquely identifies the storage location.
-
provideTypeDictionaryIoHandler
public PersistenceTypeDictionaryIoHandler provideTypeDictionaryIoHandler(PersistenceTypeDictionaryStorer writeListener)- Specified by:
provideTypeDictionaryIoHandlerin interfacePersistenceTypeDictionaryIoHandler.Provider- Specified by:
provideTypeDictionaryIoHandlerin interfaceStorageFileProvider
-
provideDataFile
- Specified by:
provideDataFilein interfaceStorageFileProvider
-
provideTransactionsFile
- Specified by:
provideTransactionsFilein interfaceStorageFileProvider
-
provideLockFile
- Specified by:
provideLockFilein interfaceStorageFileProvider
-
provideDeletionTargetFile
- Specified by:
provideDeletionTargetFilein interfaceStorageFileProvider
-
provideTruncationBackupTargetFile
public StorageNumberedFile provideTruncationBackupTargetFile(StorageNumberedFile fileToBeTruncated, long newLength)- Specified by:
provideTruncationBackupTargetFilein interfaceStorageFileProvider
-
collectDataFiles
- Specified by:
collectDataFilesin interfaceStorageFileProvider
-
write
- Specified by:
writein interfaceStorageFileWriter
-
copyFilePart
public long copyFilePart(StorageLockedFile sourceFile, long sourceOffset, long length, StorageLockedFile targetfile)- Specified by:
copyFilePartin interfaceStorageFileWriter
-
flush
- Specified by:
flushin interfaceStorageFileWriter
-
truncate
public void truncate(StorageInventoryFile file, long newLength, StorageFileProvider storageFileProvider)- Specified by:
truncatein interfaceStorageFileWriter
-
delete
- Specified by:
deletein interfaceStorageFileWriter
-