public interface Revision extends java.lang.Comparable<Revision>
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.String version)
Compares the revision to the given version string.
|
java.util.Map<java.lang.String,java.util.List<RevisionFile>> |
getSourceFiles()
Returns the files that comprise this revision, as a mapping from a source
to a list of files.
|
java.lang.String |
getVersion()
Returns a string representation of the version of this revision.
|
java.io.InputStream |
open(java.lang.String source,
java.lang.String fileName)
Returns an
IndexInput for the given fileName and source. |
void |
release()
Called when this revision can be safely released, i.e.
|
int compareTo(java.lang.String version)
Comparable.compareTo(Object)
.java.lang.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.java.util.Map<java.lang.String,java.util.List<RevisionFile>> getSourceFiles()
java.io.InputStream open(java.lang.String source, java.lang.String fileName) throws java.io.IOException
IndexInput
for the given fileName and source. It is the
caller's respnsibility to close the IndexInput
when it has been
consumed.java.io.IOException
void release() throws java.io.IOException
java.io.IOException
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.