public class ConstDoubleSource
extends org.apache.lucene.queries.function.valuesource.ConstNumberSource
ConstDoubleSource returns a constant double for all documents| Constructor and Description |
|---|
ConstDoubleSource(double constant) |
| Modifier and Type | Method and Description |
|---|---|
String |
description() |
boolean |
equals(Object o) |
boolean |
getBool() |
double |
getDouble() |
float |
getFloat() |
int |
getInt() |
long |
getLong() |
Number |
getNumber() |
org.apache.lucene.queries.function.FunctionValues |
getValues(Map context,
org.apache.lucene.index.LeafReaderContext readerContext) |
int |
hashCode() |
protected String |
name() |
public static final String NAME
public String description()
description in class org.apache.lucene.queries.function.ValueSourceprotected String name()
public org.apache.lucene.queries.function.FunctionValues getValues(Map context, org.apache.lucene.index.LeafReaderContext readerContext) throws IOException
getValues in class org.apache.lucene.queries.function.ValueSourceIOExceptionpublic int hashCode()
hashCode in class org.apache.lucene.queries.function.ValueSourcepublic boolean equals(Object o)
equals in class org.apache.lucene.queries.function.ValueSourcepublic int getInt()
getInt in class org.apache.lucene.queries.function.valuesource.ConstNumberSourcepublic long getLong()
getLong in class org.apache.lucene.queries.function.valuesource.ConstNumberSourcepublic float getFloat()
getFloat in class org.apache.lucene.queries.function.valuesource.ConstNumberSourcepublic double getDouble()
getDouble in class org.apache.lucene.queries.function.valuesource.ConstNumberSourcepublic Number getNumber()
getNumber in class org.apache.lucene.queries.function.valuesource.ConstNumberSourcepublic boolean getBool()
getBool in class org.apache.lucene.queries.function.valuesource.ConstNumberSourceCopyright © 2000–2015 The Apache Software Foundation. All rights reserved.