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 java.io.RandomAccessFilefileprivate static java.lang.StringFILENAMEprivate static longMAX_OFFSET
-
Constructor Summary
Constructors Constructor Description FSL2PProtoIndex(java.io.RandomAccessFile file)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEntry(long offset, long itemIndex)voidclose()static java.io.FilegetIndexPath(FSFS fsfs, java.lang.String txnId)longgetOffsetByItemIndex(long itemIndex)static FSL2PProtoIndexopen(FSFS fsfs, java.lang.String txnId, boolean append)FSL2PEntryreadEntry()private voidreadEntry(long[] entryOffset, long[] entryItemIndex)
-
-
-
Field Detail
-
MAX_OFFSET
private static final long MAX_OFFSET
- See Also:
- Constant Field Values
-
FILENAME
private static final java.lang.String FILENAME
- See Also:
- Constant Field Values
-
file
private final java.io.RandomAccessFile file
-
-
Method Detail
-
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:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.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
-
-