Class FSLogicalAddressingIndex
java.lang.Object
org.tmatesoft.svn.core.internal.io.fs.index.FSLogicalAddressingIndex
public class FSLogicalAddressingIndex
extends java.lang.Object
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
private static class
private static class
private static class
private static class
private static class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
appendP2LEntries
(java.util.List<FSP2LEntry> entries, java.util.List<FSP2LEntry> pageEntries, long blockStart, long blockEnd) private FSPackedNumbersStream
private FSPackedNumbersStream
static int
compareEntryOffset
(FSP2LEntry entry, long offset) createPageInfo
(FSLogicalAddressingIndex.L2PIndexHeader header, long revision, long itemIndex) createPageInfo
(FSLogicalAddressingIndex.P2LIndexHeader header, long revision, long offset) long
getItemIndexByOffset
(long offset) getL2PHeaderBody
(long revision) private FSLogicalAddressingIndex.Page
getL2PPage
(FSLogicalAddressingIndex.PageTableEntry tableEntry) private long
getL2PPageEntry
(FSLogicalAddressingIndex.Page page, long pageOffset, long itemIndex, long revision) getL2PPageInfo
(long revision, long itemIndex) long
getOffsetByItemIndex
(long revision, long itemIndex) protected FSLogicalAddressingIndex.P2LPageInfo
getP2LKeys
(long revision, long offset) private java.util.List<FSP2LEntry>
getP2LPage
(long startRevision, long startOffset, long nextOffset, long pageStart, long pageSize) getP2LPageInfo
(long revision, long offset) long
getStartRevision
(long revision) java.util.List<FSP2LEntry>
lookupP2LEntries
(long revision, long blockStart, long blockEnd) private FSPackedNumbersStream
packedStreamOpen
(java.lang.String prefix) private void
readEntryToList
(FSPackedNumbersStream packedNumbersStream, long[] itemOffset, long[] lastRevision, long[] lastCompound, java.util.List<FSP2LEntry> result) static int
searchLowerBound
(java.util.List<FSP2LEntry> list, long key) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
L2P_STREAM_PREFIX
public static final java.lang.String L2P_STREAM_PREFIX- See Also:
-
P2L_STREAM_PREFIX
public static final java.lang.String P2L_STREAM_PREFIX- See Also:
-
myFile
-
startRevision
private long startRevision -
fsfs
-
-
Constructor Details
-
FSLogicalAddressingIndex
-
-
Method Details
-
getStartRevision
public long getStartRevision(long revision) -
getOffsetByItemIndex
- Throws:
SVNException
-
getItemIndexByOffset
public long getItemIndexByOffset(long offset) -
lookupP2LEntries
public java.util.List<FSP2LEntry> lookupP2LEntries(long revision, long blockStart, long blockEnd) throws SVNException - Throws:
SVNException
-
getP2LKeys
protected FSLogicalAddressingIndex.P2LPageInfo getP2LKeys(long revision, long offset) throws SVNException - Throws:
SVNException
-
getP2LPageInfo
private FSLogicalAddressingIndex.P2LPageInfo getP2LPageInfo(long revision, long offset) throws SVNException - Throws:
SVNException
-
getP2LHeader
- Throws:
SVNException
-
createPageInfo
private FSLogicalAddressingIndex.P2LPageInfo createPageInfo(FSLogicalAddressingIndex.P2LIndexHeader header, long revision, long offset) -
appendP2LEntries
private void appendP2LEntries(java.util.List<FSP2LEntry> entries, java.util.List<FSP2LEntry> pageEntries, long blockStart, long blockEnd) -
searchLowerBound
-
compareEntryOffset
-
getP2LPage
private java.util.List<FSP2LEntry> getP2LPage(long startRevision, long startOffset, long nextOffset, long pageStart, long pageSize) throws SVNException - Throws:
SVNException
-
readEntryToList
private void readEntryToList(FSPackedNumbersStream packedNumbersStream, long[] itemOffset, long[] lastRevision, long[] lastCompound, java.util.List<FSP2LEntry> result) throws SVNException - Throws:
SVNException
-
getL2PPageEntry
private long getL2PPageEntry(FSLogicalAddressingIndex.Page page, long pageOffset, long itemIndex, long revision) throws SVNException - Throws:
SVNException
-
getL2PPage
private FSLogicalAddressingIndex.Page getL2PPage(FSLogicalAddressingIndex.PageTableEntry tableEntry) throws SVNException - Throws:
SVNException
-
getL2PPageInfo
private FSLogicalAddressingIndex.L2PPageInfo getL2PPageInfo(long revision, long itemIndex) throws SVNException - Throws:
SVNException
-
createPageInfo
private FSLogicalAddressingIndex.L2PPageInfo createPageInfo(FSLogicalAddressingIndex.L2PIndexHeader header, long revision, long itemIndex) throws SVNException - Throws:
SVNException
-
getL2PHeaderBody
- Throws:
SVNException
-
autoOpenP2LIndex
- Throws:
SVNException
-
autoOpenL2PIndex
- Throws:
SVNException
-
packedStreamOpen
- Throws:
SVNException
-