public class Manifest extends Object
Constructor and Description |
---|
Manifest(InputStream rawInput)
Deserialize an existing manifest from the given
InputStream . |
Manifest(RuleKey key)
Create an empty manifest.
|
Modifier and Type | Method and Description |
---|---|
void |
addEntry(FileHashLoader fileHashLoader,
RuleKey key,
SourcePathResolverAdapter resolver,
com.google.common.collect.ImmutableSet<SourcePath> universe,
com.google.common.collect.ImmutableSet<SourcePath> inputs)
Adds a new output file to the manifest.
|
RuleKey |
getKey() |
ManifestStats |
getStats() |
Optional<RuleKey> |
lookup(FileHashLoader fileHashLoader,
SourcePathResolverAdapter resolver,
com.google.common.collect.ImmutableSet<SourcePath> universe) |
void |
serialize(OutputStream rawOutput)
Serializes the manifest to the given
OutputStream . |
int |
size() |
public Manifest(RuleKey key)
public Manifest(InputStream rawInput) throws IOException
InputStream
.IOException
public RuleKey getKey()
public Optional<RuleKey> lookup(FileHashLoader fileHashLoader, SourcePathResolverAdapter resolver, com.google.common.collect.ImmutableSet<SourcePath> universe) throws IOException
RuleKey
of the entry that matches the on disk hashes provided by fileHashLoader
.IOException
public void addEntry(FileHashLoader fileHashLoader, RuleKey key, SourcePathResolverAdapter resolver, com.google.common.collect.ImmutableSet<SourcePath> universe, com.google.common.collect.ImmutableSet<SourcePath> inputs) throws IOException
IOException
public void serialize(OutputStream rawOutput) throws IOException
OutputStream
.IOException
public int size()
public ManifestStats getStats()