public class LongQuery extends AbstractFieldQuery
Query
testing a long field.Query.LogicalOperator, Query.Operator
Modifier and Type | Field and Description |
---|---|
protected Query.Operator |
_operator
The operator.
|
protected Long |
_value
The value to test.
|
_fieldPath
Constructor and Description |
---|
LongQuery(String fieldPath)
Build a LongQuery testing the existence of the field.
|
LongQuery(String fieldPath,
Long value)
Build a LongQuery.
|
LongQuery(String fieldPath,
Query.Operator op,
Long value)
Build a LongQuery.
|
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.
|
long |
getValue()
Get the value.
|
int |
hashCode() |
getFieldPath
protected Query.Operator _operator
public LongQuery(String fieldPath)
fieldPath
- the field pathpublic LongQuery(String fieldPath, Long value)
fieldPath
- the field's pathvalue
- the value.public LongQuery(String fieldPath, Query.Operator op, Long value)
fieldPath
- the field's pathop
- the operator.value
- the value.public Query.Operator getOperator()
public long 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