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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(StorageLiveDataFile file, StorageWriteController writeController, StorageFileProvider fileProvider)voidtruncate(StorageLiveChannelFile<?> file, long newLength, StorageFileProvider fileProvider)longwriteImport(StorageImportSource source, 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)-
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
write
-
-
-
-
Method Detail
-
writeStore
public final long writeStore(StorageLiveDataFile targetFile, Iterable<? extends ByteBuffer> byteBuffers)
- Specified by:
writeStorein interfaceStorageFileWriter
-
writeImport
public final long writeImport(StorageImportSource source, 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- Parameters:
source- the import sourcesourceOffset- the source offsetcopyLength- the copy lengthtargetFile- the target file- Returns:
- the amount of bytes written
-
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
-
-