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.IOExceptionpublic 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.IOExceptionpublic void addEntry(FileHashLoader fileHashLoader, RuleKey key, SourcePathResolverAdapter resolver, com.google.common.collect.ImmutableSet<SourcePath> universe, com.google.common.collect.ImmutableSet<SourcePath> inputs) throws IOException
IOExceptionpublic void serialize(OutputStream rawOutput) throws IOException
OutputStream.IOExceptionpublic int size()
public ManifestStats getStats()