public class NegateDoubleFunction extends SingleDoubleFunction
NegateDoubleFunction
negates the double value of the source it contains.Modifier and Type | Field and Description |
---|---|
static String |
NAME |
source
Constructor and Description |
---|
NegateDoubleFunction(ValueSource source) |
Modifier and Type | Method and Description |
---|---|
String |
description() |
boolean |
equals(Object o) |
protected double |
func(int doc,
FunctionValues vals) |
protected String |
name() |
getValues, hashCode
createWeight, getSortField, newContext, toString
public static final String NAME
public NegateDoubleFunction(ValueSource source)
protected String name()
public String description()
description
in class SingleDoubleFunction
protected double func(int doc, FunctionValues vals)
public boolean equals(Object o)
equals
in class SingleDoubleFunction
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.