Class LogicFunction
- java.lang.Object
-
- org.apache.solr.analytics.function.mapping.LogicFunction
-
public class LogicFunction extends Object
Contains all logical mapping functions.Logical mapping functions can be used in the following ways:
- If a single
BooleanValueStreamis passed in, aBooleanValuerepresenting the logical operation on all of the values for each document is returned. - If a
BooleanValueStreamand aBooleanValueare passed in, aBooleanValuerepresenting the logical operation on theBooleanValueand each of the values of theBooleanValueStreamfor a document is returned. (Or the other way, since the Value and ValueStream can be used in either order) - If multiple
BooleanValues are passed in, aBooleanValuerepresenting the logical operation on all values is returned.
- If a single
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLogicFunction.AndFunctionA mapping function for the logical operation AND.static classLogicFunction.OrFunctionA mapping function for the logical operation OR.
-
Constructor Summary
Constructors Constructor Description LogicFunction()
-