public class ClosestResultTrackingFilter extends Object implements ObjectFilter<CaptureSearchResult>
Modifier and Type | Field and Description |
---|---|
protected CaptureSearchResult |
closest |
protected long |
closestDiffMS |
protected boolean |
found |
protected long |
wantMS |
FILTER_ABORT, FILTER_EXCLUDE, FILTER_INCLUDE
Constructor and Description |
---|
ClosestResultTrackingFilter(long wantMS) |
Modifier and Type | Method and Description |
---|---|
int |
filterObject(CaptureSearchResult o)
inpect record and determine if it should be included in the
results or not, or if processing of new records should stop.
|
CaptureSearchResult |
getClosest() |
protected boolean found
protected long wantMS
protected long closestDiffMS
protected CaptureSearchResult closest
public ClosestResultTrackingFilter(long wantMS)
wantMS
- the number of MS since the epoch of the desired date.public CaptureSearchResult getClosest()
public int filterObject(CaptureSearchResult o)
ObjectFilter
filterObject
in interface ObjectFilter<CaptureSearchResult>
o
- Object which should be checked for inclusion/exclusion or abortCopyright © 2005–2017 IIPC. All rights reserved.