public class DoubleQuery extends AbstractFieldQuery
Query
testing a double field.Query.LogicalOperator, Query.Operator
Modifier and Type | Field and Description |
---|---|
protected Query.Operator |
_operator
The operator.
|
protected Double |
_value
The boolean value to test.
|
_fieldPath
Constructor and Description |
---|
DoubleQuery(String fieldPath)
Build a DoubleQuery testing the existence of the field.
|
DoubleQuery(String fieldPath,
Double value)
Build a DoubleQuery.
|
DoubleQuery(String fieldPath,
Query.Operator op,
Double value)
Build a DoubleQuery.
|
Modifier and Type | Method and Description |
---|---|
String |
build()
Build the solr query string representing the Query object.
|
boolean |
equals(Object obj) |
Query.Operator |
getOperator()
Get the operator.
|
double |
getValue()
Get the value.
|
int |
hashCode() |
getFieldPath
protected Query.Operator _operator
public DoubleQuery(String fieldPath)
fieldPath
- the field pathpublic DoubleQuery(String fieldPath, Double value)
fieldPath
- the field's pathvalue
- the value.public DoubleQuery(String fieldPath, Query.Operator op, Double value)
fieldPath
- the field's pathop
- the operator.value
- the value.public Query.Operator getOperator()
public double getValue()
public String build() throws QuerySyntaxException
Query
QuerySyntaxException
- if the query can't be built because of a syntax error.public int hashCode()
hashCode
in class AbstractFieldQuery
public boolean equals(Object obj)
equals
in class AbstractFieldQuery