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
SVNExceptionpublic static java.io.File getIndexPath(FSFS fsfs, java.lang.String txnId)
public void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablepublic long getOffsetByItemIndex(long itemIndex)
throws SVNException
SVNExceptionpublic FSL2PEntry readEntry() throws SVNException
SVNExceptionprivate void readEntry(long[] entryOffset,
long[] entryItemIndex)
throws SVNException
SVNExceptionpublic void addEntry(long offset,
long itemIndex)
throws SVNException
SVNException