public abstract class FSRoot
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
private static class |
FSRoot.RevisionCache |
| Modifier and Type | Field and Description |
|---|---|
private FSFS |
myFSFS |
private FSRoot.RevisionCache |
myRevNodesCache |
protected FSRevisionNode |
myRootRevisionNode |
| Modifier and Type | Method and Description |
|---|---|
SVNNodeKind |
checkNodeKind(java.lang.String path) |
java.util.Map |
detectChanged() |
private void |
encodeL2PPage(byte[] encoded,
java.util.List<java.lang.Long> entries,
int start,
int end,
SVNSpillBuffer spillBuffer) |
protected java.util.Map |
fetchAllChanges(FSFile changesFile,
boolean prefolded) |
protected FSRevisionNode |
fetchRevNodeFromCache(java.lang.String path) |
private void |
foldChange(java.util.Map mapChanges,
FSPathChange change) |
abstract java.util.Map |
getChangedPaths() |
abstract FSCopyInheritance |
getCopyInheritance(FSParentPath child) |
long |
getFileSize(java.lang.String path) |
java.io.InputStream |
getFileStreamForPath(SVNDeltaCombiner combiner,
java.lang.String path) |
FSFS |
getOwner() |
abstract long |
getRevision() |
FSRevisionNode |
getRevisionNode(java.lang.String path) |
abstract FSRevisionNode |
getRootRevisionNode() |
boolean |
isUseLogAddressing() |
FSParentPath |
openPath(java.lang.String path,
boolean lastEntryMustExist,
boolean storeParents) |
void |
putRevNodeToCache(java.lang.String path,
FSRevisionNode node) |
private FSPathChange |
readChange(FSFile raReader) |
void |
removeRevNodeFromCache(java.lang.String path) |
private static void |
writeEncoded(java.io.OutputStream outputStream,
byte[] bytes,
long value) |
void |
writeIndexData(CountingOutputStream protoFile,
long newRevision,
java.lang.String txnId) |
private java.lang.String |
writeL2PIndex(CountingOutputStream protoFile,
long revision,
java.lang.String txnId) |
private java.lang.String |
writeP2LIndex(CountingOutputStream protoFile,
long revision,
java.lang.String txnId) |
private FSRoot.RevisionCache myRevNodesCache
private FSFS myFSFS
protected FSRevisionNode myRootRevisionNode
protected FSRoot(FSFS owner)
public FSFS getOwner()
public FSRevisionNode getRevisionNode(java.lang.String path) throws SVNException
SVNExceptionpublic abstract long getRevision()
public abstract FSRevisionNode getRootRevisionNode() throws SVNException
SVNExceptionpublic abstract java.util.Map getChangedPaths()
throws SVNException
SVNExceptionpublic abstract FSCopyInheritance getCopyInheritance(FSParentPath child) throws SVNException
SVNExceptionpublic FSParentPath openPath(java.lang.String path, boolean lastEntryMustExist, boolean storeParents) throws SVNException
SVNExceptionpublic SVNNodeKind checkNodeKind(java.lang.String path) throws SVNException
SVNExceptionpublic void putRevNodeToCache(java.lang.String path,
FSRevisionNode node)
throws SVNException
SVNExceptionpublic void removeRevNodeFromCache(java.lang.String path)
throws SVNException
SVNExceptionprotected FSRevisionNode fetchRevNodeFromCache(java.lang.String path) throws SVNException
SVNExceptionprivate void foldChange(java.util.Map mapChanges,
FSPathChange change)
throws SVNException
SVNExceptionprotected java.util.Map fetchAllChanges(FSFile changesFile, boolean prefolded) throws SVNException
SVNExceptionpublic java.util.Map detectChanged()
throws SVNException
SVNExceptionprivate FSPathChange readChange(FSFile raReader) throws SVNException
SVNExceptionpublic java.io.InputStream getFileStreamForPath(SVNDeltaCombiner combiner, java.lang.String path) throws SVNException
SVNExceptionpublic long getFileSize(java.lang.String path)
throws SVNException
SVNExceptionpublic boolean isUseLogAddressing()
public void writeIndexData(CountingOutputStream protoFile, long newRevision, java.lang.String txnId) throws SVNException
SVNExceptionprivate java.lang.String writeL2PIndex(CountingOutputStream protoFile, long revision, java.lang.String txnId) throws SVNException
SVNExceptionprivate java.lang.String writeP2LIndex(CountingOutputStream protoFile, long revision, java.lang.String txnId) throws SVNException
SVNExceptionprivate void encodeL2PPage(byte[] encoded,
java.util.List<java.lang.Long> entries,
int start,
int end,
SVNSpillBuffer spillBuffer)
throws SVNException
SVNExceptionprivate static void writeEncoded(java.io.OutputStream outputStream,
byte[] bytes,
long value)
throws java.io.IOException
java.io.IOException