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(StorageLiveDataFile file, StorageWriteController writeController, StorageFileProvider fileProvider)voidtruncate(StorageLiveChannelFile<?> file, long newLength, StorageFileProvider fileProvider)longwriteImport(StorageFile sourceFile, long sourceOffset, long copyLength, StorageLiveDataFile targetFile)Logically the same as a store, but technically the same as a transfer with an external source file.longwriteStore(StorageLiveDataFile targetFile, Iterable<? extends ByteBuffer> byteBuffers)longwriteTransactionEntryCreate(StorageLiveTransactionsFile transactionFile, Iterable<? extends ByteBuffer> byteBuffers, StorageLiveDataFile dataFile)longwriteTransactionEntryDelete(StorageLiveTransactionsFile transactionFile, Iterable<? extends ByteBuffer> byteBuffers, StorageLiveDataFile dataFile)longwriteTransactionEntryStore(StorageLiveTransactionsFile transactionFile, Iterable<? extends ByteBuffer> byteBuffers, StorageLiveDataFile dataFile, long dataFileOffset, long storeLength)longwriteTransactionEntryTransfer(StorageLiveTransactionsFile transactionFile, Iterable<? extends ByteBuffer> byteBuffers, StorageLiveDataFile dataFile, long dataFileOffset, long storeLength)longwriteTransactionEntryTruncate(StorageLiveTransactionsFile transactionFile, Iterable<? extends ByteBuffer> byteBuffers, StorageLiveDataFile file, long newFileLength)longwriteTransfer(StorageLiveDataFile sourceFile, long sourceOffset, long length, StorageLiveDataFile targetFile)
-
Constructor Details
-
Default
public Default()
-
-
Method Details
-
writeStore
public final long writeStore(StorageLiveDataFile targetFile, Iterable<? extends ByteBuffer> byteBuffers)- Specified by:
writeStorein interfaceStorageFileWriter
-
writeImport
public final long writeImport(StorageFile sourceFile, long sourceOffset, long copyLength, StorageLiveDataFile 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(StorageLiveDataFile sourceFile, long sourceOffset, long length, StorageLiveDataFile targetFile)- Specified by:
writeTransferin interfaceStorageFileWriter
-
writeTransactionEntryCreate
public final long writeTransactionEntryCreate(StorageLiveTransactionsFile transactionFile, Iterable<? extends ByteBuffer> byteBuffers, StorageLiveDataFile dataFile)- Specified by:
writeTransactionEntryCreatein interfaceStorageFileWriter
-
writeTransactionEntryStore
public final long writeTransactionEntryStore(StorageLiveTransactionsFile transactionFile, Iterable<? extends ByteBuffer> byteBuffers, StorageLiveDataFile dataFile, long dataFileOffset, long storeLength)- Specified by:
writeTransactionEntryStorein interfaceStorageFileWriter
-
writeTransactionEntryTransfer
public final long writeTransactionEntryTransfer(StorageLiveTransactionsFile transactionFile, Iterable<? extends ByteBuffer> byteBuffers, StorageLiveDataFile dataFile, long dataFileOffset, long storeLength)- Specified by:
writeTransactionEntryTransferin interfaceStorageFileWriter
-
writeTransactionEntryDelete
public final long writeTransactionEntryDelete(StorageLiveTransactionsFile transactionFile, Iterable<? extends ByteBuffer> byteBuffers, StorageLiveDataFile dataFile)- Specified by:
writeTransactionEntryDeletein interfaceStorageFileWriter
-
writeTransactionEntryTruncate
public final long writeTransactionEntryTruncate(StorageLiveTransactionsFile transactionFile, Iterable<? extends ByteBuffer> byteBuffers, StorageLiveDataFile file, long newFileLength)- Specified by:
writeTransactionEntryTruncatein interfaceStorageFileWriter
-
truncate
public final void truncate(StorageLiveChannelFile<?> file, long newLength, StorageFileProvider fileProvider)- Specified by:
truncatein interfaceStorageFileWriter
-
delete
public void delete(StorageLiveDataFile file, StorageWriteController writeController, StorageFileProvider fileProvider)- Specified by:
deletein interfaceStorageFileWriter
-