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
SVNException
public abstract long getRevision()
public abstract FSRevisionNode getRootRevisionNode() throws SVNException
SVNException
public abstract java.util.Map getChangedPaths() throws SVNException
SVNException
public abstract FSCopyInheritance getCopyInheritance(FSParentPath child) throws SVNException
SVNException
public FSParentPath openPath(java.lang.String path, boolean lastEntryMustExist, boolean storeParents) throws SVNException
SVNException
public SVNNodeKind checkNodeKind(java.lang.String path) throws SVNException
SVNException
public void putRevNodeToCache(java.lang.String path, FSRevisionNode node) throws SVNException
SVNException
public void removeRevNodeFromCache(java.lang.String path) throws SVNException
SVNException
protected FSRevisionNode fetchRevNodeFromCache(java.lang.String path) throws SVNException
SVNException
private void foldChange(java.util.Map mapChanges, FSPathChange change) throws SVNException
SVNException
protected java.util.Map fetchAllChanges(FSFile changesFile, boolean prefolded) throws SVNException
SVNException
public java.util.Map detectChanged() throws SVNException
SVNException
private FSPathChange readChange(FSFile raReader) throws SVNException
SVNException
public java.io.InputStream getFileStreamForPath(SVNDeltaCombiner combiner, java.lang.String path) throws SVNException
SVNException
public long getFileSize(java.lang.String path) throws SVNException
SVNException
public boolean isUseLogAddressing()
public void writeIndexData(CountingOutputStream protoFile, long newRevision, java.lang.String txnId) throws SVNException
SVNException
private java.lang.String writeL2PIndex(CountingOutputStream protoFile, long revision, java.lang.String txnId) throws SVNException
SVNException
private java.lang.String writeP2LIndex(CountingOutputStream protoFile, long revision, java.lang.String txnId) throws SVNException
SVNException
private void encodeL2PPage(byte[] encoded, java.util.List<java.lang.Long> entries, int start, int end, SVNSpillBuffer spillBuffer) throws SVNException
SVNException
private static void writeEncoded(java.io.OutputStream outputStream, byte[] bytes, long value) throws java.io.IOException
java.io.IOException