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.
|
Query.Operator |
getOperator()
Get the operator.
|
long |
getValue()
Get the value.
|
getFieldPathprotected 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
QueryQuerySyntaxException - if the query can't be built because of a syntax error.