public interface Revision extends Comparable<Revision>
Modifier and Type | Method and Description |
---|---|
int |
compareTo(String version)
Compares the revision to the given version string.
|
Map<String,List<RevisionFile>> |
getSourceFiles()
Returns the files that comprise this revision, as a mapping from a source
to a list of files.
|
String |
getVersion()
Returns a string representation of the version of this revision.
|
InputStream |
open(String source,
String fileName)
Returns an
IndexInput for the given fileName and source. |
void |
release()
Called when this revision can be safely released, i.e.
|
compareTo
int compareTo(String version)
Comparable.compareTo(Object)
.String getVersion()
compareTo(String)
as well as to
serialize/deserialize revision information. Therefore it must be self
descriptive as well as be able to identify one revision from another.Map<String,List<RevisionFile>> getSourceFiles()
InputStream open(String source, String fileName) throws IOException
IndexInput
for the given fileName and source. It is the
caller's respnsibility to close the IndexInput
when it has been
consumed.IOException
void release() throws IOException
IOException
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.