|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectanl.aida.ae.lucene.DateRangeFieldFilter
public class DateRangeFieldFilter
Passes documents whose date field value is within some specified range.
Field Summary | |
---|---|
private long |
end
|
private long |
start
|
Constructor Summary | |
---|---|
DateRangeFieldFilter(java.util.Date start,
java.util.Date end)
Creates a DateFieldFilter with the specified range. |
Method Summary | |
---|---|
boolean |
evaluate(org.apache.lucene.document.Document item)
Evaluates an item against the date range criteria and returns true if the item passes the filter. |
boolean |
evaluate(long time)
Evaluates an item against the date range criteria and returns true if the item passes the filter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private long start
private long end
Constructor Detail |
---|
public DateRangeFieldFilter(java.util.Date start, java.util.Date end)
start
- the start of the rangeend
- the end of the rangeMethod Detail |
---|
public boolean evaluate(org.apache.lucene.document.Document item) throws java.text.ParseException
item
- the item to evaluate
java.text.ParseException
- if there is an error getting the timestamp from the
document.public boolean evaluate(long time)
time
- the item to evaluate. It must be rounded using
DateTools.round(time, DateTools.Resolution.DAY)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |