blob: 89d698694a87b03baf80d56fec5cdf750ee48ed6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.search.grouping.request;
/**
* This interface defines the necessary callback to recursively visit all {@link GroupingExpression} objects in a {@link
* GroupingOperation}. It is used by the {@link com.yahoo.search.grouping.GroupingValidator} to ensure that all
* referenced attributes are valid for the cluster being queried.
*
* @author Simon Thoresen Hult
*/
public interface ExpressionVisitor {
/**
* This method is called for every {@link GroupingExpression} object in the targeted {@link GroupingOperation}.
*
* @param exp the expression being visited.
*/
void visitExpression(GroupingExpression exp);
}
|