V - The generic type of the document identifier.public class SingleTokenHitCollector<V extends Comparable<V>> extends Object implements IHitCollector<V>
IHitCollector backed by a
simple array of hits.| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.log4j.Logger |
log |
| Constructor and Description |
|---|
SingleTokenHitCollector(CountIndexTask<V> task) |
public SingleTokenHitCollector(CountIndexTask<V> task)
public Hit<V> putIfAbsent(V v, Hit<V> hit)
IHitCollectorputIfAbsent in interface IHitCollector<V extends Comparable<V>>v - the document identifier for the hithit - the full text hitnull if there was no old valuepublic Hit<V>[] getHits()
getHits in interface IHitCollector<V extends Comparable<V>>Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.