Class FSRoot
- java.lang.Object
-
- org.tmatesoft.svn.core.internal.io.fs.FSRoot
-
- Direct Known Subclasses:
FSRevisionRoot,FSTransactionRoot
public abstract class FSRoot extends java.lang.Object- Version:
- 1.3
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classFSRoot.RevisionCache
-
Field Summary
Fields Modifier and Type Field Description private FSFSmyFSFSprivate FSRoot.RevisionCachemyRevNodesCacheprotected FSRevisionNodemyRootRevisionNode
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description SVNNodeKindcheckNodeKind(java.lang.String path)java.util.MapdetectChanged()private voidencodeL2PPage(byte[] encoded, java.util.List<java.lang.Long> entries, int start, int end, SVNSpillBuffer spillBuffer)protected java.util.MapfetchAllChanges(FSFile changesFile, boolean prefolded)protected FSRevisionNodefetchRevNodeFromCache(java.lang.String path)private voidfoldChange(java.util.Map mapChanges, FSPathChange change)abstract java.util.MapgetChangedPaths()abstract FSCopyInheritancegetCopyInheritance(FSParentPath child)longgetFileSize(java.lang.String path)java.io.InputStreamgetFileStreamForPath(SVNDeltaCombiner combiner, java.lang.String path)FSFSgetOwner()abstract longgetRevision()FSRevisionNodegetRevisionNode(java.lang.String path)abstract FSRevisionNodegetRootRevisionNode()booleanisUseLogAddressing()FSParentPathopenPath(java.lang.String path, boolean lastEntryMustExist, boolean storeParents)voidputRevNodeToCache(java.lang.String path, FSRevisionNode node)private FSPathChangereadChange(FSFile raReader)voidremoveRevNodeFromCache(java.lang.String path)private static voidwriteEncoded(java.io.OutputStream outputStream, byte[] bytes, long value)voidwriteIndexData(CountingOutputStream protoFile, long newRevision, java.lang.String txnId)private java.lang.StringwriteL2PIndex(CountingOutputStream protoFile, long revision, java.lang.String txnId)private java.lang.StringwriteP2LIndex(CountingOutputStream protoFile, long revision, java.lang.String txnId)
-
-
-
Field Detail
-
myRevNodesCache
private FSRoot.RevisionCache myRevNodesCache
-
myFSFS
private FSFS myFSFS
-
myRootRevisionNode
protected FSRevisionNode myRootRevisionNode
-
-
Constructor Detail
-
FSRoot
protected FSRoot(FSFS owner)
-
-
Method Detail
-
getOwner
public FSFS getOwner()
-
getRevisionNode
public FSRevisionNode getRevisionNode(java.lang.String path) throws SVNException
- Throws:
SVNException
-
getRevision
public abstract long getRevision()
-
getRootRevisionNode
public abstract FSRevisionNode getRootRevisionNode() throws SVNException
- Throws:
SVNException
-
getChangedPaths
public abstract java.util.Map getChangedPaths() throws SVNException- Throws:
SVNException
-
getCopyInheritance
public abstract FSCopyInheritance getCopyInheritance(FSParentPath child) throws SVNException
- Throws:
SVNException
-
openPath
public FSParentPath openPath(java.lang.String path, boolean lastEntryMustExist, boolean storeParents) throws SVNException
- Throws:
SVNException
-
checkNodeKind
public SVNNodeKind checkNodeKind(java.lang.String path) throws SVNException
- Throws:
SVNException
-
putRevNodeToCache
public void putRevNodeToCache(java.lang.String path, FSRevisionNode node) throws SVNException- Throws:
SVNException
-
removeRevNodeFromCache
public void removeRevNodeFromCache(java.lang.String path) throws SVNException- Throws:
SVNException
-
fetchRevNodeFromCache
protected FSRevisionNode fetchRevNodeFromCache(java.lang.String path) throws SVNException
- Throws:
SVNException
-
foldChange
private void foldChange(java.util.Map mapChanges, FSPathChange change) throws SVNException- Throws:
SVNException
-
fetchAllChanges
protected java.util.Map fetchAllChanges(FSFile changesFile, boolean prefolded) throws SVNException
- Throws:
SVNException
-
detectChanged
public java.util.Map detectChanged() throws SVNException- Throws:
SVNException
-
readChange
private FSPathChange readChange(FSFile raReader) throws SVNException
- Throws:
SVNException
-
getFileStreamForPath
public java.io.InputStream getFileStreamForPath(SVNDeltaCombiner combiner, java.lang.String path) throws SVNException
- Throws:
SVNException
-
getFileSize
public long getFileSize(java.lang.String path) throws SVNException- Throws:
SVNException
-
isUseLogAddressing
public boolean isUseLogAddressing()
-
writeIndexData
public void writeIndexData(CountingOutputStream protoFile, long newRevision, java.lang.String txnId) throws SVNException
- Throws:
SVNException
-
writeL2PIndex
private java.lang.String writeL2PIndex(CountingOutputStream protoFile, long revision, java.lang.String txnId) throws SVNException
- Throws:
SVNException
-
writeP2LIndex
private java.lang.String writeP2LIndex(CountingOutputStream protoFile, long revision, java.lang.String txnId) throws SVNException
- Throws:
SVNException
-
encodeL2PPage
private void encodeL2PPage(byte[] encoded, java.util.List<java.lang.Long> entries, int start, int end, SVNSpillBuffer spillBuffer) throws SVNException- Throws:
SVNException
-
writeEncoded
private static void writeEncoded(java.io.OutputStream outputStream, byte[] bytes, long value) throws java.io.IOException- Throws:
java.io.IOException
-
-