public class DefaultSearchResult0D extends AbstractSearchResult
Modifier and Type | Class and Description |
---|---|
protected class |
DefaultSearchResult0D.EntryList |
protected class |
DefaultSearchResult0D.Result0DCache |
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_START_SIZE |
protected java.util.List<ResultEntry> |
entries |
protected int |
hitCount |
protected de.ims.icarus.util.data.DataList<?> |
wrapper |
annotationBuffer, finalized, groupConstraints, groupIndexMap, groupInstances, groupTokens, lock, properties, search
DUMMY_INSTANCE, FORCE_SIMPLE_OUTLINE_PROPERTY
Constructor and Description |
---|
DefaultSearchResult0D(Search search) |
DefaultSearchResult0D(Search search,
int size) |
DefaultSearchResult0D(Search search,
java.util.List<ResultEntry> entries) |
Modifier and Type | Method and Description |
---|---|
void |
addEntry(ResultEntry entry,
int... groupIndices) |
void |
clear()
Deletes the content of this result.
|
protected void |
commit(ResultEntry entry) |
GroupCache |
createCache() |
java.lang.Object |
getEntry(int index)
Returns the entry object at the specified index.
|
java.lang.Object |
getEntryAt(int index,
int... groupIndices)
Shorthand method for accessing an entry within the list-view
that is represented by
SearchResult.getEntryList(int...) |
de.ims.icarus.util.data.DataList<? extends java.lang.Object> |
getEntryList(int... groupIndices)
Returns a list-oriented view of all the entries for the
specified combination of group-instances.
|
int |
getGroupMatchCount(int groupId,
int index)
Returns the number of matches with an instance of the given
group in them.
|
int |
getMatchCount(int... groupIndices)
Returns the number of matches reported for the given combination
of instances.
|
ResultEntry |
getRawEntry(int index) |
ResultEntry |
getRawEntryAt(int index,
int... groupIndices) |
java.util.List<ResultEntry> |
getRawEntryList(int... groupIndices) |
int |
getTotalHitCount()
Returns the total count of reported hits in this result.
|
int |
getTotalMatchCount()
Returns the total count of reported matches in this result
|
void |
writeEntries(SearchWriter writer) |
canReorder, finish, getAnnotatedEntry, getAnnotationBuffer, getAnnotationType, getContentType, getContext, getDimension, getGroupConstraint, getGroupLabel, getIndexOf, getInstanceCount, getInstanceLabel, getPlainEntry, getProperty, getSource, getSubResult, getTarget, isFinal, reorder, setAnnotationBuffer, setGroupInstances, setProperty
protected java.util.List<ResultEntry> entries
protected int hitCount
protected de.ims.icarus.util.data.DataList<?> wrapper
public static final int DEFAULT_START_SIZE
public DefaultSearchResult0D(Search search)
public DefaultSearchResult0D(Search search, int size)
public DefaultSearchResult0D(Search search, java.util.List<ResultEntry> entries)
public java.lang.Object getEntry(int index)
SearchResult
SearchResult.getEntry(int)
public java.lang.Object getEntryAt(int index, int... groupIndices)
SearchResult
SearchResult.getEntryList(int...)
SearchResult.getEntryAt(int, int[])
public de.ims.icarus.util.data.DataList<? extends java.lang.Object> getEntryList(int... groupIndices)
SearchResult
SearchResult.getEntryList(int[])
public ResultEntry getRawEntry(int index)
SearchResult.getRawEntry(int)
public ResultEntry getRawEntryAt(int index, int... groupIndices)
public int getTotalMatchCount()
SearchResult
SearchResult.getTotalMatchCount()
public GroupCache createCache()
de.ims.icarus.search_tools.corpus.AbstractCorpusSearchResult#createCache()
public int getMatchCount(int... groupIndices)
SearchResult
SearchResult.getMatchCount(int[])
public java.util.List<ResultEntry> getRawEntryList(int... groupIndices)
SearchResult.getRawEntryList(int[])
public int getGroupMatchCount(int groupId, int index)
SearchResult
protected void commit(ResultEntry entry)
public void clear()
SearchResult
An implementation should throw an IllegalStateException
in case
the result is still under construction and not final.
SearchResult.clear()
public int getTotalHitCount()
SearchResult
Note that an arbitrary number of hits can be wrapped into a single match!
public void writeEntries(SearchWriter writer) throws javax.xml.stream.XMLStreamException
writeEntries
in class AbstractSearchResult
javax.xml.stream.XMLStreamException
AbstractSearchResult.writeEntries(de.ims.icarus.search_tools.io.SearchWriter)
public void addEntry(ResultEntry entry, int... groupIndices)
addEntry
in class AbstractSearchResult
AbstractSearchResult.addEntry(de.ims.icarus.search_tools.result.ResultEntry, int[])