public class DublinCoreDateQuery extends Object implements Query
Query.LogicalOperator, Query.Operator
Modifier and Type | Field and Description |
---|---|
protected Query.Operator |
_operator
The binary operator to use.
|
protected Date |
_value
The value to test.
|
Constructor and Description |
---|
DublinCoreDateQuery(Date value)
Create a query on the Dublin Core date metadata with EQ operator.
|
DublinCoreDateQuery(Date value,
Query.Operator operator)
Create a query on the Dublin Core date metadata.
|
Modifier and Type | Method and Description |
---|---|
String |
build()
Build the solr query string representing the Query object.
|
protected Query.Operator _operator
public DublinCoreDateQuery(Date value)
value
- The value to test. Must be a Date object for the "date" metadata and a String for all the other ones.public DublinCoreDateQuery(Date value, Query.Operator operator)
value
- The value to test. Must be a Date object for the "date" metadata and a String for all the other ones.operator
- The binary operator to use, can be one of EQ, NE, GT, GE, LT and LE.public String build() throws QuerySyntaxException
Query
build
in interface Query
QuerySyntaxException
- if the query can't be built because of a syntax error.