public class FSL2PProtoIndex
extends java.lang.Object
implements java.io.Closeable
Modifier and Type | Field and Description |
---|---|
private java.io.RandomAccessFile |
file |
private static java.lang.String |
FILENAME |
private static long |
MAX_OFFSET |
Constructor and Description |
---|
FSL2PProtoIndex(java.io.RandomAccessFile file) |
Modifier and Type | Method and Description |
---|---|
void |
addEntry(long offset,
long itemIndex) |
void |
close() |
static java.io.File |
getIndexPath(FSFS fsfs,
java.lang.String txnId) |
long |
getOffsetByItemIndex(long itemIndex) |
static FSL2PProtoIndex |
open(FSFS fsfs,
java.lang.String txnId,
boolean append) |
FSL2PEntry |
readEntry() |
private void |
readEntry(long[] entryOffset,
long[] entryItemIndex) |
private static final long MAX_OFFSET
private static final java.lang.String FILENAME
private final java.io.RandomAccessFile file
public static FSL2PProtoIndex open(FSFS fsfs, java.lang.String txnId, boolean append) throws SVNException
SVNException
public static java.io.File getIndexPath(FSFS fsfs, java.lang.String txnId)
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
public long getOffsetByItemIndex(long itemIndex) throws SVNException
SVNException
public FSL2PEntry readEntry() throws SVNException
SVNException
private void readEntry(long[] entryOffset, long[] entryItemIndex) throws SVNException
SVNException
public void addEntry(long offset, long itemIndex) throws SVNException
SVNException