Class LogFunction
- java.lang.Object
-
- org.apache.solr.analytics.function.mapping.LogFunction
-
public class LogFunction extends Object
A logarithm mapping function.Uses:
- If one numeric Value or ValueStream is passed in, a
DoubleValueorDoubleValueStreamrepresenting the natural logarithm is returned. - If two numeric Values are passed in, a
DoubleValuerepresenting the logarithm of the first with the second as the base is returned. - If a numeric ValueStream and a numeric Value are passed in, a
DoubleValueStreamrepresenting the logarithm of the Value with each of the values of the ValueStream for a document as the base is returned. (Or the other way, since the Value and ValueStream can be used in either order)
- If one numeric Value or ValueStream is passed in, a
-
-
Field Summary
Fields Modifier and Type Field Description static ExpressionFactory.CreatorFunctioncreatorFunctionstatic Stringname
-
Constructor Summary
Constructors Constructor Description LogFunction()
-
-
-
Field Detail
-
name
public static final String name
- See Also:
- Constant Field Values
-
creatorFunction
public static final ExpressionFactory.CreatorFunction creatorFunction
-
-