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 void
delete(StorageLiveDataFile file, StorageWriteController writeController, StorageFileProvider fileProvider)
void
truncate(StorageLiveChannelFile<?> file, long newLength, StorageFileProvider fileProvider)
long
writeImport(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.long
writeStore(StorageLiveDataFile targetFile, Iterable<? extends ByteBuffer> byteBuffers)
long
writeTransactionEntryCreate(StorageLiveTransactionsFile transactionFile, Iterable<? extends ByteBuffer> byteBuffers, StorageLiveDataFile dataFile)
long
writeTransactionEntryDelete(StorageLiveTransactionsFile transactionFile, Iterable<? extends ByteBuffer> byteBuffers, StorageLiveDataFile dataFile)
long
writeTransactionEntryStore(StorageLiveTransactionsFile transactionFile, Iterable<? extends ByteBuffer> byteBuffers, StorageLiveDataFile dataFile, long dataFileOffset, long storeLength)
long
writeTransactionEntryTransfer(StorageLiveTransactionsFile transactionFile, Iterable<? extends ByteBuffer> byteBuffers, StorageLiveDataFile dataFile, long dataFileOffset, long storeLength)
long
writeTransactionEntryTruncate(StorageLiveTransactionsFile transactionFile, Iterable<? extends ByteBuffer> byteBuffers, StorageLiveDataFile file, long newFileLength)
long
writeTransfer(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:
writeStore
in interfaceStorageFileWriter
-
writeImport
public final long writeImport(StorageFile sourceFile, long sourceOffset, long copyLength, StorageLiveDataFile targetFile)Description copied from interface:StorageFileWriter
Logically the same as a store, but technically the same as a transfer with an external source file.- Specified by:
writeImport
in interfaceStorageFileWriter
-
writeTransfer
public final long writeTransfer(StorageLiveDataFile sourceFile, long sourceOffset, long length, StorageLiveDataFile targetFile)- Specified by:
writeTransfer
in interfaceStorageFileWriter
-
writeTransactionEntryCreate
public final long writeTransactionEntryCreate(StorageLiveTransactionsFile transactionFile, Iterable<? extends ByteBuffer> byteBuffers, StorageLiveDataFile dataFile)- Specified by:
writeTransactionEntryCreate
in interfaceStorageFileWriter
-
writeTransactionEntryStore
public final long writeTransactionEntryStore(StorageLiveTransactionsFile transactionFile, Iterable<? extends ByteBuffer> byteBuffers, StorageLiveDataFile dataFile, long dataFileOffset, long storeLength)- Specified by:
writeTransactionEntryStore
in interfaceStorageFileWriter
-
writeTransactionEntryTransfer
public final long writeTransactionEntryTransfer(StorageLiveTransactionsFile transactionFile, Iterable<? extends ByteBuffer> byteBuffers, StorageLiveDataFile dataFile, long dataFileOffset, long storeLength)- Specified by:
writeTransactionEntryTransfer
in interfaceStorageFileWriter
-
writeTransactionEntryDelete
public final long writeTransactionEntryDelete(StorageLiveTransactionsFile transactionFile, Iterable<? extends ByteBuffer> byteBuffers, StorageLiveDataFile dataFile)- Specified by:
writeTransactionEntryDelete
in interfaceStorageFileWriter
-
writeTransactionEntryTruncate
public final long writeTransactionEntryTruncate(StorageLiveTransactionsFile transactionFile, Iterable<? extends ByteBuffer> byteBuffers, StorageLiveDataFile file, long newFileLength)- Specified by:
writeTransactionEntryTruncate
in interfaceStorageFileWriter
-
truncate
public final void truncate(StorageLiveChannelFile<?> file, long newLength, StorageFileProvider fileProvider)- Specified by:
truncate
in interfaceStorageFileWriter
-
delete
public void delete(StorageLiveDataFile file, StorageWriteController writeController, StorageFileProvider fileProvider)- Specified by:
delete
in interfaceStorageFileWriter
-