public abstract class AbstractLazyResultAnnotator extends java.lang.Object implements ResultAnnotator
Modifier and Type | Class and Description |
---|---|
static class |
AbstractLazyResultAnnotator.DefaultHighlight |
static interface |
AbstractLazyResultAnnotator.Highlight |
class |
AbstractLazyResultAnnotator.LazyAnnotation |
Modifier and Type | Field and Description |
---|---|
protected long[] |
baseHighlights |
protected BitmaskHighlighting |
highlighting |
Modifier | Constructor and Description |
---|---|
protected |
AbstractLazyResultAnnotator(BitmaskHighlighting highlighting) |
Modifier and Type | Method and Description |
---|---|
de.ims.icarus.util.annotation.AnnotatedData |
annotate(SearchResult searchResult,
java.lang.Object data,
ResultEntry entry) |
protected abstract de.ims.icarus.util.annotation.AnnotatedData |
createAnnotatedData(java.lang.Object data,
ResultEntry entry) |
protected de.ims.icarus.util.annotation.Annotation |
createAnnotation(java.lang.Object data,
ResultEntry entry) |
protected abstract long |
createBaseHighlight(int index) |
protected abstract AbstractLazyResultAnnotator.Highlight |
createHighlight(java.lang.Object data,
Hit hit) |
long[] |
getBaseHighlights() |
abstract int |
getHighlightCount() |
BitmaskHighlighting |
getHighlighting() |
protected abstract boolean |
supports(java.lang.Object data) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAnnotationType
protected long[] baseHighlights
protected final BitmaskHighlighting highlighting
protected AbstractLazyResultAnnotator(BitmaskHighlighting highlighting)
public BitmaskHighlighting getHighlighting()
public abstract int getHighlightCount()
protected abstract long createBaseHighlight(int index)
public long[] getBaseHighlights()
protected abstract boolean supports(java.lang.Object data)
public de.ims.icarus.util.annotation.AnnotatedData annotate(SearchResult searchResult, java.lang.Object data, ResultEntry entry)
annotate
in interface ResultAnnotator
protected de.ims.icarus.util.annotation.Annotation createAnnotation(java.lang.Object data, ResultEntry entry)
protected abstract de.ims.icarus.util.annotation.AnnotatedData createAnnotatedData(java.lang.Object data, ResultEntry entry)
protected abstract AbstractLazyResultAnnotator.Highlight createHighlight(java.lang.Object data, Hit hit)