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.Static
Nested classes/interfaces inherited from interface one.microstream.storage.types.StorageFileReader
StorageFileReader.Provider
Nested classes/interfaces inherited from interface one.microstream.storage.types.StorageFileWriter
StorageFileWriter.Provider
Nested 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, wait
Methods inherited from interface one.microstream.persistence.types.PersistenceTypeDictionaryIoHandler.Provider
provideTypeDictionaryIoHandler
Methods inherited from interface one.microstream.storage.types.StorageFileWriter
copy, writeImport, writeStore, writeTransactionEntryCreate, writeTransactionEntryDelete, writeTransactionEntryStore, writeTransactionEntryTransfer, writeTransactionEntryTruncate, writeTransfer
Methods inherited from interface one.microstream.storage.types.StorageIoHandler
copyData, copyTransactions
-
Constructor Details
-
Method Details
-
getStorageLocationIdentifier
Description copied from interface:StorageFileProvider
Returns a String that uniquely identifies the storage location.- Specified by:
getStorageLocationIdentifier
in interfaceStorageFileProvider
- Returns:
- a String that uniquely identifies the storage location.
-
provideTypeDictionaryIoHandler
public PersistenceTypeDictionaryIoHandler provideTypeDictionaryIoHandler(PersistenceTypeDictionaryStorer writeListener)- Specified by:
provideTypeDictionaryIoHandler
in interfacePersistenceTypeDictionaryIoHandler.Provider
- Specified by:
provideTypeDictionaryIoHandler
in interfaceStorageFileProvider
-
provideDataFile
- Specified by:
provideDataFile
in interfaceStorageFileProvider
-
provideTransactionsFile
- Specified by:
provideTransactionsFile
in interfaceStorageFileProvider
-
provideLockFile
- Specified by:
provideLockFile
in interfaceStorageFileProvider
-
provideDeletionTargetFile
- Specified by:
provideDeletionTargetFile
in interfaceStorageFileProvider
-
provideTruncationBackupTargetFile
public StorageNumberedFile provideTruncationBackupTargetFile(StorageNumberedFile fileToBeTruncated, long newLength)- Specified by:
provideTruncationBackupTargetFile
in interfaceStorageFileProvider
-
collectDataFiles
- Specified by:
collectDataFiles
in interfaceStorageFileProvider
-
write
- Specified by:
write
in interfaceStorageFileWriter
-
copyFilePart
public long copyFilePart(StorageLockedFile sourceFile, long sourceOffset, long length, StorageLockedFile targetfile)- Specified by:
copyFilePart
in interfaceStorageFileWriter
-
flush
- Specified by:
flush
in interfaceStorageFileWriter
-
truncate
public void truncate(StorageInventoryFile file, long newLength, StorageFileProvider storageFileProvider)- Specified by:
truncate
in interfaceStorageFileWriter
-
delete
- Specified by:
delete
in interfaceStorageFileWriter
-