Klasse RotatingLogIndex

java.lang.Object
org.teamapps.universaldb.index.log.RotatingLogIndex
Alle implementierten Schnittstellen:
LogIndex

public class RotatingLogIndex extends Object implements LogIndex
  • Felddetails

  • Konstruktordetails

    • RotatingLogIndex

      public RotatingLogIndex(File basePath, String name)
    • RotatingLogIndex

      public RotatingLogIndex(File basePath, String name, int maxLogFileSize)
  • Methodendetails

    • writeLog

      public long writeLog(byte[] bytes, boolean committed)
      Angegeben von:
      writeLog in Schnittstelle LogIndex
    • readLog

      public byte[] readLog(long storePosition)
      Angegeben von:
      readLog in Schnittstelle LogIndex
    • readLogs

      public LogIterator readLogs()
      Angegeben von:
      readLogs in Schnittstelle LogIndex
    • readLogs

      public LogIterator readLogs(long pos)
      Angegeben von:
      readLogs in Schnittstelle LogIndex
    • readLogs

      public void readLogs(List<PositionIndexedMessage> messages)
      Angegeben von:
      readLogs in Schnittstelle LogIndex
    • readLogPositions

      public long[] readLogPositions()
      Angegeben von:
      readLogPositions in Schnittstelle LogIndex
    • getPosition

      public long getPosition()
      Angegeben von:
      getPosition in Schnittstelle LogIndex
    • isEmpty

      public boolean isEmpty()
      Angegeben von:
      isEmpty in Schnittstelle LogIndex
    • getStoreSize

      public long getStoreSize()
      Angegeben von:
      getStoreSize in Schnittstelle LogIndex
    • flush

      public void flush()
      Angegeben von:
      flush in Schnittstelle LogIndex
    • close

      public void close()
      Angegeben von:
      close in Schnittstelle LogIndex
    • drop

      public void drop()
      Angegeben von:
      drop in Schnittstelle LogIndex
    • calculatePosition

      public static long calculatePosition(int fileIndex, int filePos)
    • getFileIndex

      public static int getFileIndex(long storePosition)
    • getFilePos

      public static int getFilePos(long storePosition)