Package one.microstream.storage.types
Class StorageFileWriterBackupping.Default
- java.lang.Object
-
- one.microstream.storage.types.StorageFileWriterBackupping.Default
-
- All Implemented Interfaces:
StorageFileWriter
- Enclosing interface:
- StorageFileWriterBackupping
public static final class StorageFileWriterBackupping.Default extends Object implements StorageFileWriter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface one.microstream.storage.types.StorageFileWriter
StorageFileWriter.Default, StorageFileWriter.Provider
-
-
Constructor Summary
Constructors Constructor Description Default()
-
Method Summary
Modifier and Type Method Description voiddelete(StorageInventoryFile file, StorageFileProvider storageFileProvider)voidtruncate(StorageInventoryFile file, long newLength, StorageFileProvider storageFileProvider)longwriteImport(StorageLockedFile sourceFile, long sourceOffset, long copyLength, StorageDataFile<?> targetFile)Logically the same as a store, but technically the same as a transfer with an external source file.longwriteStore(StorageDataFile<?> targetFile, ByteBuffer[] byteBuffers)longwriteTransactionEntryCreate(StorageInventoryFile transactionFile, ByteBuffer[] byteBuffers, StorageDataFile<?> dataFile)longwriteTransactionEntryDelete(StorageInventoryFile transactionFile, ByteBuffer[] byteBuffers, StorageDataFile<?> dataFile)longwriteTransactionEntryStore(StorageInventoryFile transactionFile, ByteBuffer[] byteBuffers, StorageDataFile<?> dataFile, long dataFileOffset, long storeLength)longwriteTransactionEntryTransfer(StorageInventoryFile transactionFile, ByteBuffer[] byteBuffers, StorageDataFile<?> dataFile, long dataFileOffset, long storeLength)longwriteTransactionEntryTruncate(StorageInventoryFile transactionFile, ByteBuffer[] byteBuffers, StorageInventoryFile file, long newFileLength)longwriteTransfer(StorageDataFile<?> sourceFile, long sourceOffset, long length, StorageDataFile<?> targetFile)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface one.microstream.storage.types.StorageFileWriter
copy, copyFilePart, flush, write
-
-
-
-
Method Detail
-
writeStore
public final long writeStore(StorageDataFile<?> targetFile, ByteBuffer[] byteBuffers)
- Specified by:
writeStorein interfaceStorageFileWriter
-
writeImport
public final long writeImport(StorageLockedFile sourceFile, long sourceOffset, long copyLength, StorageDataFile<?> targetFile)
Description copied from interface:StorageFileWriterLogically the same as a store, but technically the same as a transfer with an external source file.- Specified by:
writeImportin interfaceStorageFileWriter
-
writeTransfer
public final long writeTransfer(StorageDataFile<?> sourceFile, long sourceOffset, long length, StorageDataFile<?> targetFile)
- Specified by:
writeTransferin interfaceStorageFileWriter
-
writeTransactionEntryCreate
public final long writeTransactionEntryCreate(StorageInventoryFile transactionFile, ByteBuffer[] byteBuffers, StorageDataFile<?> dataFile)
- Specified by:
writeTransactionEntryCreatein interfaceStorageFileWriter
-
writeTransactionEntryStore
public final long writeTransactionEntryStore(StorageInventoryFile transactionFile, ByteBuffer[] byteBuffers, StorageDataFile<?> dataFile, long dataFileOffset, long storeLength)
- Specified by:
writeTransactionEntryStorein interfaceStorageFileWriter
-
writeTransactionEntryTransfer
public final long writeTransactionEntryTransfer(StorageInventoryFile transactionFile, ByteBuffer[] byteBuffers, StorageDataFile<?> dataFile, long dataFileOffset, long storeLength)
- Specified by:
writeTransactionEntryTransferin interfaceStorageFileWriter
-
writeTransactionEntryDelete
public final long writeTransactionEntryDelete(StorageInventoryFile transactionFile, ByteBuffer[] byteBuffers, StorageDataFile<?> dataFile)
- Specified by:
writeTransactionEntryDeletein interfaceStorageFileWriter
-
writeTransactionEntryTruncate
public final long writeTransactionEntryTruncate(StorageInventoryFile transactionFile, ByteBuffer[] byteBuffers, StorageInventoryFile file, long newFileLength)
- Specified by:
writeTransactionEntryTruncatein interfaceStorageFileWriter
-
truncate
public final void truncate(StorageInventoryFile file, long newLength, StorageFileProvider storageFileProvider)
- Specified by:
truncatein interfaceStorageFileWriter
-
delete
public void delete(StorageInventoryFile file, StorageFileProvider storageFileProvider)
- Specified by:
deletein interfaceStorageFileWriter
-
-