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 byte
entryLengthFileCreation()
static byte
entryLengthFileDeletion()
static byte
entryLengthFileTruncation()
static byte
entryLengthStore()
static byte
entryLengthTransfer()
static byte
getEntryLength(long address)
static long
getEntryTimestamp(long address)
static byte
getEntryType(long address)
static long
getFileLength(long address)
static long
getFileNumber(long address)
static long
getSpecialOffset(long address)
static void
initializeEntry(long address, byte length, byte type)
static void
initializeEntryFileCreation(long address)
static void
initializeEntryFileDeletion(long address)
static void
initializeEntryFileTruncation(long address)
static void
initializeEntryStore(long address)
static void
initializeEntryTransfer(long address)
static VarString
parseFile(FileChannel fileChannel, VarString vs)
static VarString
parseFile(Path file)
static VarString
parseFile(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 void
setEntryCommon(long address, long fileLength, long timestamp)
static void
setEntryFileCreation(long address, long fileLength, long timestamp, long fileNumber)
static void
setEntryFileDeletion(long address, long fileLength, long timestamp, long fileNumber)
static void
setEntryFileTruncation(long address, long fileLength, long timestamp, long fileNumber, long oldLength)
static void
setEntryStore(long address, long fileLength, long timestamp)
static void
setEntryTransfer(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
-
-