Klasse RotatingLogIndex
java.lang.Object
org.teamapps.universaldb.index.log.RotatingLogIndex
- Alle implementierten Schnittstellen:
LogIndex
-
Feldübersicht
Felder -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungRotatingLogIndex(File basePath, String name) RotatingLogIndex(File basePath, String name, int maxLogFileSize) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic longcalculatePosition(int fileIndex, int filePos) voidclose()voiddrop()voidflush()static intgetFileIndex(long storePosition) static intgetFilePos(long storePosition) longlongbooleanisEmpty()byte[]readLog(long storePosition) long[]readLogs()readLogs(long pos) voidreadLogs(List<PositionIndexedMessage> messages) longwriteLog(byte[] bytes, boolean committed) Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden org.teamapps.universaldb.index.log.LogIndex
readAllLogs, readLogs, writeLog
-
Felddetails
-
EXTENSION
- Siehe auch:
-
-
Konstruktordetails
-
RotatingLogIndex
-
RotatingLogIndex
-
-
Methodendetails
-
writeLog
public long writeLog(byte[] bytes, boolean committed) -
readLog
public byte[] readLog(long storePosition) -
readLogs
-
readLogs
-
readLogs
-
readLogPositions
public long[] readLogPositions()- Angegeben von:
readLogPositionsin SchnittstelleLogIndex
-
getPosition
public long getPosition()- Angegeben von:
getPositionin SchnittstelleLogIndex
-
isEmpty
public boolean isEmpty() -
getStoreSize
public long getStoreSize()- Angegeben von:
getStoreSizein SchnittstelleLogIndex
-
flush
public void flush() -
close
public void close() -
drop
public void drop() -
calculatePosition
public static long calculatePosition(int fileIndex, int filePos) -
getFileIndex
public static int getFileIndex(long storePosition) -
getFilePos
public static int getFilePos(long storePosition)
-