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(StorageInventoryFile file, StorageFileProvider storageFileProvider)
void
truncate(StorageInventoryFile file, long newLength, StorageFileProvider storageFileProvider)
long
writeImport(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.long
writeStore(StorageDataFile<?> targetFile, ByteBuffer[] byteBuffers)
long
writeTransactionEntryCreate(StorageInventoryFile transactionFile, ByteBuffer[] byteBuffers, StorageDataFile<?> dataFile)
long
writeTransactionEntryDelete(StorageInventoryFile transactionFile, ByteBuffer[] byteBuffers, StorageDataFile<?> dataFile)
long
writeTransactionEntryStore(StorageInventoryFile transactionFile, ByteBuffer[] byteBuffers, StorageDataFile<?> dataFile, long dataFileOffset, long storeLength)
long
writeTransactionEntryTransfer(StorageInventoryFile transactionFile, ByteBuffer[] byteBuffers, StorageDataFile<?> dataFile, long dataFileOffset, long storeLength)
long
writeTransactionEntryTruncate(StorageInventoryFile transactionFile, ByteBuffer[] byteBuffers, StorageInventoryFile file, long newFileLength)
long
writeTransfer(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
-
Constructor Details
-
Default
public Default()
-
-
Method Details
-
writeStore
- Specified by:
writeStore
in interfaceStorageFileWriter
-
writeImport
public final long writeImport(StorageLockedFile sourceFile, long sourceOffset, long copyLength, StorageDataFile<?> 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(StorageDataFile<?> sourceFile, long sourceOffset, long length, StorageDataFile<?> targetFile)- Specified by:
writeTransfer
in interfaceStorageFileWriter
-
writeTransactionEntryCreate
public final long writeTransactionEntryCreate(StorageInventoryFile transactionFile, ByteBuffer[] byteBuffers, StorageDataFile<?> dataFile)- Specified by:
writeTransactionEntryCreate
in interfaceStorageFileWriter
-
writeTransactionEntryStore
public final long writeTransactionEntryStore(StorageInventoryFile transactionFile, ByteBuffer[] byteBuffers, StorageDataFile<?> dataFile, long dataFileOffset, long storeLength)- Specified by:
writeTransactionEntryStore
in interfaceStorageFileWriter
-
writeTransactionEntryTransfer
public final long writeTransactionEntryTransfer(StorageInventoryFile transactionFile, ByteBuffer[] byteBuffers, StorageDataFile<?> dataFile, long dataFileOffset, long storeLength)- Specified by:
writeTransactionEntryTransfer
in interfaceStorageFileWriter
-
writeTransactionEntryDelete
public final long writeTransactionEntryDelete(StorageInventoryFile transactionFile, ByteBuffer[] byteBuffers, StorageDataFile<?> dataFile)- Specified by:
writeTransactionEntryDelete
in interfaceStorageFileWriter
-
writeTransactionEntryTruncate
public final long writeTransactionEntryTruncate(StorageInventoryFile transactionFile, ByteBuffer[] byteBuffers, StorageInventoryFile file, long newFileLength)- Specified by:
writeTransactionEntryTruncate
in interfaceStorageFileWriter
-
truncate
public final void truncate(StorageInventoryFile file, long newLength, StorageFileProvider storageFileProvider)- Specified by:
truncate
in interfaceStorageFileWriter
-
delete
- Specified by:
delete
in interfaceStorageFileWriter
-