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.StorageFileReader
readStorage
-
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 Detail
-
Default
public Default(StorageFileProvider fileProvider, StorageFileWriter fileWriter)
-
-
Method Detail
-
provideTypeDictionaryIoHandler
public PersistenceTypeDictionaryIoHandler provideTypeDictionaryIoHandler(PersistenceTypeDictionaryStorer writeListener)
- Specified by:
provideTypeDictionaryIoHandler
in interfacePersistenceTypeDictionaryIoHandler.Provider
- Specified by:
provideTypeDictionaryIoHandler
in interfaceStorageFileProvider
-
provideDataFile
public StorageNumberedFile provideDataFile(int channelIndex, long fileNumber)
- Specified by:
provideDataFile
in interfaceStorageFileProvider
-
provideTransactionsFile
public StorageNumberedFile provideTransactionsFile(int channelIndex)
- Specified by:
provideTransactionsFile
in interfaceStorageFileProvider
-
provideLockFile
public StorageLockedFile provideLockFile()
- Specified by:
provideLockFile
in interfaceStorageFileProvider
-
provideDeletionTargetFile
public StorageNumberedFile provideDeletionTargetFile(StorageNumberedFile fileToBeDeleted)
- Specified by:
provideDeletionTargetFile
in interfaceStorageFileProvider
-
provideTruncationBackupTargetFile
public StorageNumberedFile provideTruncationBackupTargetFile(StorageNumberedFile fileToBeTruncated, long newLength)
- Specified by:
provideTruncationBackupTargetFile
in interfaceStorageFileProvider
-
collectDataFiles
public <P extends Consumer<StorageNumberedFile>> P collectDataFiles(P collector, int channelIndex)
- Specified by:
collectDataFiles
in interfaceStorageFileProvider
-
write
public long write(StorageLockedFile file, ByteBuffer[] byteBuffers)
- Specified by:
write
in interfaceStorageFileWriter
-
copyFilePart
public long copyFilePart(StorageLockedFile sourceFile, long sourceOffset, long length, StorageLockedFile targetfile)
- Specified by:
copyFilePart
in interfaceStorageFileWriter
-
flush
public void flush(StorageLockedFile targetfile)
- Specified by:
flush
in interfaceStorageFileWriter
-
truncate
public void truncate(StorageInventoryFile file, long newLength, StorageFileProvider storageFileProvider)
- Specified by:
truncate
in interfaceStorageFileWriter
-
delete
public void delete(StorageInventoryFile file, StorageFileProvider storageFileProvider)
- Specified by:
delete
in interfaceStorageFileWriter
-
-