Package one.microstream.storage.types
Class StorageTransactionsFileAnalysis.Logic
- java.lang.Object
-
- one.microstream.storage.types.StorageTransactionsFileAnalysis.Logic
-
- Enclosing interface:
- StorageTransactionsFileAnalysis
public static final class StorageTransactionsFileAnalysis.Logic extends Object
-
-
Constructor Summary
Constructors Constructor Description Logic()
-
Method Summary
Modifier and Type Method Description static byteentryLengthFileCreation()static byteentryLengthFileDeletion()static byteentryLengthFileTruncation()static byteentryLengthStore()static byteentryLengthTransfer()static bytegetEntryLength(long address)static longgetEntryTimestamp(long address)static bytegetEntryType(long address)static longgetFileLength(long address)static longgetFileNumber(long address)static longgetSpecialOffset(long address)static voidinitializeEntry(long address, byte length, byte type)static voidinitializeEntryFileCreation(long address)static voidinitializeEntryFileDeletion(long address)static voidinitializeEntryFileTruncation(long address)static voidinitializeEntryStore(long address)static voidinitializeEntryTransfer(long address)static VarStringparseFile(FileChannel fileChannel, VarString vs)static VarStringparseFile(Path file)static VarStringparseFile(Path file, VarString vs)static <P extends StorageTransactionsFileAnalysis.EntryIterator>
PprocessInputFile(FileChannel fileChannel, long startPosition, long length, P entryProcessor)static <P extends StorageTransactionsFileAnalysis.EntryIterator>
PprocessInputFile(FileChannel fileChannel, P entryProcessor)static voidsetEntryCommon(long address, long fileLength, long timestamp)static voidsetEntryFileCreation(long address, long fileLength, long timestamp, long fileNumber)static voidsetEntryFileDeletion(long address, long fileLength, long timestamp, long fileNumber)static voidsetEntryFileTruncation(long address, long fileLength, long timestamp, long fileNumber, long oldLength)static voidsetEntryStore(long address, long fileLength, long timestamp)static voidsetEntryTransfer(long address, long fileLength, long timestamp, long sourcefileNumber, long sourcefileOffset)
-
-
-
Method Detail
-
entryLengthFileCreation
public static byte entryLengthFileCreation()
-
entryLengthStore
public static byte entryLengthStore()
-
entryLengthTransfer
public static byte entryLengthTransfer()
-
entryLengthFileTruncation
public static byte entryLengthFileTruncation()
-
entryLengthFileDeletion
public static byte entryLengthFileDeletion()
-
initializeEntry
public static void initializeEntry(long address, byte length, byte type)
-
initializeEntryFileCreation
public static void initializeEntryFileCreation(long address)
-
initializeEntryStore
public static void initializeEntryStore(long address)
-
initializeEntryTransfer
public static void initializeEntryTransfer(long address)
-
initializeEntryFileDeletion
public static void initializeEntryFileDeletion(long address)
-
initializeEntryFileTruncation
public static void initializeEntryFileTruncation(long address)
-
setEntryCommon
public static void setEntryCommon(long address, long fileLength, long timestamp)
-
setEntryFileCreation
public static void setEntryFileCreation(long address, long fileLength, long timestamp, long fileNumber)
-
getEntryLength
public static byte getEntryLength(long address)
-
getEntryType
public static byte getEntryType(long address)
-
getEntryTimestamp
public static long getEntryTimestamp(long address)
-
getFileLength
public static long getFileLength(long address)
-
getFileNumber
public static long getFileNumber(long address)
-
getSpecialOffset
public static long getSpecialOffset(long address)
-
setEntryStore
public static void setEntryStore(long address, long fileLength, long timestamp)
-
setEntryTransfer
public static void setEntryTransfer(long address, long fileLength, long timestamp, long sourcefileNumber, long sourcefileOffset)
-
setEntryFileDeletion
public static void setEntryFileDeletion(long address, long fileLength, long timestamp, long fileNumber)
-
setEntryFileTruncation
public static void setEntryFileTruncation(long address, long fileLength, long timestamp, long fileNumber, long oldLength)
-
processInputFile
public static <P extends StorageTransactionsFileAnalysis.EntryIterator> P processInputFile(FileChannel fileChannel, P entryProcessor) throws IOException
- Throws:
IOException
-
processInputFile
public static <P extends StorageTransactionsFileAnalysis.EntryIterator> P processInputFile(FileChannel fileChannel, long startPosition, long length, P entryProcessor) throws IOException
- Throws:
IOException
-
parseFile
public static VarString parseFile(FileChannel fileChannel, VarString vs) throws IOException
- Throws:
IOException
-
-