Class FSL2PProtoIndex

java.lang.Object
org.tmatesoft.svn.core.internal.io.fs.index.FSL2PProtoIndex
All Implemented Interfaces:
java.io.Closeable, java.lang.AutoCloseable

public class FSL2PProtoIndex extends java.lang.Object implements java.io.Closeable
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final java.io.RandomAccessFile
     
    private static final java.lang.String
     
    private static final long
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    FSL2PProtoIndex(java.io.RandomAccessFile file)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addEntry(long offset, long itemIndex)
     
    void
     
    static java.io.File
    getIndexPath(FSFS fsfs, java.lang.String txnId)
     
    long
    getOffsetByItemIndex(long itemIndex)
     
    open(FSFS fsfs, java.lang.String txnId, boolean append)
     
     
    private void
    readEntry(long[] entryOffset, long[] entryItemIndex)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • MAX_OFFSET

      private static final long MAX_OFFSET
      See Also:
    • FILENAME

      private static final java.lang.String FILENAME
      See Also:
    • file

      private final java.io.RandomAccessFile file
  • Constructor Details

    • FSL2PProtoIndex

      public FSL2PProtoIndex(java.io.RandomAccessFile file)
  • Method Details

    • open

      public static FSL2PProtoIndex open(FSFS fsfs, java.lang.String txnId, boolean append) throws SVNException
      Throws:
      SVNException
    • getIndexPath

      public static java.io.File getIndexPath(FSFS fsfs, java.lang.String txnId)
    • close

      public void close()
      Specified by:
      close in interface java.lang.AutoCloseable
      Specified by:
      close in interface java.io.Closeable
    • getOffsetByItemIndex

      public long getOffsetByItemIndex(long itemIndex) throws SVNException
      Throws:
      SVNException
    • readEntry

      public FSL2PEntry readEntry() throws SVNException
      Throws:
      SVNException
    • readEntry

      private void readEntry(long[] entryOffset, long[] entryItemIndex) throws SVNException
      Throws:
      SVNException
    • addEntry

      public void addEntry(long offset, long itemIndex) throws SVNException
      Throws:
      SVNException