Package org.apache.druid.metadata
Interface MetadataRuleManager
-
- All Known Implementing Classes:
SQLMetadataRuleManager
public interface MetadataRuleManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,List<Rule>>getAllRules()List<Rule>getRules(String dataSource)List<Rule>getRulesWithDefault(String dataSource)booleanoverrideRule(String dataSource, List<Rule> rulesConfig, org.apache.druid.audit.AuditInfo auditInfo)voidpoll()intremoveRulesForEmptyDatasourcesOlderThan(long timestamp)Remove rules for non-existence datasource (datasource with no segment) created older than the given timestamp.voidstart()voidstop()
-
-
-
Method Detail
-
start
void start()
-
stop
void stop()
-
poll
void poll()
-
overrideRule
boolean overrideRule(String dataSource, List<Rule> rulesConfig, org.apache.druid.audit.AuditInfo auditInfo)
-
removeRulesForEmptyDatasourcesOlderThan
int removeRulesForEmptyDatasourcesOlderThan(long timestamp)
Remove rules for non-existence datasource (datasource with no segment) created older than the given timestamp.- Parameters:
timestamp- timestamp in milliseconds- Returns:
- number of rules removed
-
-