blob: 44fa3e82f96f4a1c6bb59b076ea2a40f239cd9a4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Copyright Yahoo. 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);
}
|