public class ContentAgnosticRuleKeyFactory extends Object implements RuleKeyFactory<RuleKey>
RuleKey
s that only take into the account the path of a file and
not the contents(hash) of the file.Modifier and Type | Class and Description |
---|---|
class |
ContentAgnosticRuleKeyFactory.Builder<RULE_KEY> |
Constructor and Description |
---|
ContentAgnosticRuleKeyFactory(RuleKeyFieldLoader ruleKeyFieldLoader,
SourcePathRuleFinder ruleFinder,
Optional<ThriftRuleKeyLogger> ruleKeyLogger) |
Modifier and Type | Method and Description |
---|---|
RuleKey |
build(BuildEngineAction action)
Creates a new
RULE_KEY for the given BuildEngineAction . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFromCache, getInputSizeLimit
public ContentAgnosticRuleKeyFactory(RuleKeyFieldLoader ruleKeyFieldLoader, SourcePathRuleFinder ruleFinder, Optional<ThriftRuleKeyLogger> ruleKeyLogger)
public RuleKey build(BuildEngineAction action)
RuleKeyFactory
RULE_KEY
for the given BuildEngineAction
. In most cases RULE_KEY
is going to be RuleKey
, but it can be anything really.build
in interface RuleKeyFactory<RuleKey>
action
- The build rule to create the key for.