public class ChangeHistoryCollector<T>
extends org.apache.lucene.search.SimpleCollector
| Constructor and Description |
|---|
ChangeHistoryCollector(org.apache.lucene.search.IndexSearcher searcher,
ChangeHistoryCallback callback,
BitSet filter,
Boolean changedFrom,
T changeValue,
Set<String> fieldsToLoad) |
| Modifier and Type | Method and Description |
|---|---|
void |
collect(int doc) |
protected void |
doSetNextReader(org.apache.lucene.index.LeafReaderContext context) |
static org.joda.time.DateTime |
epochStringToDateTime(String epochString)
Translates a string-ified long from lucene into a DateTime.
|
boolean |
needsScores() |
void |
setScorer(org.apache.lucene.search.Scorer scorer) |
public void collect(int doc)
throws IOException
collect in interface org.apache.lucene.search.LeafCollectorcollect in class org.apache.lucene.search.SimpleCollectorIOExceptionprotected void doSetNextReader(org.apache.lucene.index.LeafReaderContext context)
throws IOException
doSetNextReader in class org.apache.lucene.search.SimpleCollectorIOExceptionpublic boolean needsScores()
public void setScorer(org.apache.lucene.search.Scorer scorer)
throws IOException
setScorer in interface org.apache.lucene.search.LeafCollectorsetScorer in class org.apache.lucene.search.SimpleCollectorIOExceptionpublic static org.joda.time.DateTime epochStringToDateTime(String epochString)
Document.get(String)
(currently used by callers of this method) automatically converts numeric values to Strings.epochString - String representation of a long value, which in turn represents the number of milliseconds from the java epochCopyright © 2007–2025 Atlassian. All rights reserved.