public class ConstDoubleSource
extends org.apache.lucene.queries.function.valuesource.ConstNumberSource
ConstDoubleSource
returns a constant double for all documentsConstructor 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.ValueSource
protected 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.ValueSource
IOException
public int hashCode()
hashCode
in class org.apache.lucene.queries.function.ValueSource
public boolean equals(Object o)
equals
in class org.apache.lucene.queries.function.ValueSource
public int getInt()
getInt
in class org.apache.lucene.queries.function.valuesource.ConstNumberSource
public long getLong()
getLong
in class org.apache.lucene.queries.function.valuesource.ConstNumberSource
public float getFloat()
getFloat
in class org.apache.lucene.queries.function.valuesource.ConstNumberSource
public double getDouble()
getDouble
in class org.apache.lucene.queries.function.valuesource.ConstNumberSource
public Number getNumber()
getNumber
in class org.apache.lucene.queries.function.valuesource.ConstNumberSource
public boolean getBool()
getBool
in class org.apache.lucene.queries.function.valuesource.ConstNumberSource
Copyright © 2000–2015 The Apache Software Foundation. All rights reserved.