V
- The generic type of the document identifier.public class MultiTokenHitCollector<V extends Comparable<V>> extends Object implements IHitCollector<V>
IHitCollector
backed by a
ConcurrentHashMap
.Modifier and Type | Field and Description |
---|---|
protected static org.apache.log4j.Logger |
log |
Constructor and Description |
---|
MultiTokenHitCollector(Collection<CountIndexTask<V>> tasks) |
public MultiTokenHitCollector(Collection<CountIndexTask<V>> tasks)
public Hit<V> putIfAbsent(V v, Hit<V> hit)
IHitCollector
putIfAbsent
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()
IHitCollector
getHits
in interface IHitCollector<V extends Comparable<V>>
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.