mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-27 15:39:49 +00:00
Validation of the reducer factories is now called from within the AggregatorFactories
This commit is contained in:
parent
0f22d7e65e
commit
18c2cb64b7
@ -106,6 +106,9 @@ public class AggregatorFactories {
|
||||
for (AggregatorFactory factory : factories) {
|
||||
factory.validate();
|
||||
}
|
||||
for (ReducerFactory factory : reducerFactories) {
|
||||
factory.validate();
|
||||
}
|
||||
}
|
||||
|
||||
private final static class Empty extends AggregatorFactories {
|
||||
|
@ -49,7 +49,7 @@ public abstract class ReducerFactory {
|
||||
/**
|
||||
* Validates the state of this factory (makes sure the factory is properly configured)
|
||||
*/
|
||||
public final void validate() { // NOCOMMIT hook in validation
|
||||
public final void validate() {
|
||||
doValidate();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user