public interface BooleanDocumentSupportingAdapter extends CorpusAdapter
| Modifier and Type | Method and Description |
|---|---|
void |
getDocumentsWithWord(String word,
com.carrotsearch.hppc.IntArrayList documents)
Determines the documents containing the given word.
|
void |
getDocumentsWithWordAsSet(String word,
com.carrotsearch.hppc.IntOpenHashSet documents)
Determines the documents containing the given word.
|
void |
getDocumentsWithWords(com.carrotsearch.hppc.ObjectObjectOpenHashMap<String,com.carrotsearch.hppc.IntArrayList> wordDocMapping)
Determines the documents containing the words used as key in the given
map.
|
void |
getDocumentsWithWordsAsSet(com.carrotsearch.hppc.ObjectObjectOpenHashMap<String,com.carrotsearch.hppc.IntOpenHashSet> wordDocMapping)
Determines the documents containing the words used as key in the given
map.
|
int |
getNumberOfDocuments()
Returns the number of documents the corpus contains.
|
closevoid getDocumentsWithWordsAsSet(com.carrotsearch.hppc.ObjectObjectOpenHashMap<String,com.carrotsearch.hppc.IntOpenHashSet> wordDocMapping)
wordDocMapping - a mapping of words to documents in which the results are
storedvoid getDocumentsWithWordAsSet(String word, com.carrotsearch.hppc.IntOpenHashSet documents)
word - the word which should be searcheddocuments - the set in which the document ids will be storedvoid getDocumentsWithWords(com.carrotsearch.hppc.ObjectObjectOpenHashMap<String,com.carrotsearch.hppc.IntArrayList> wordDocMapping)
wordDocMapping - a mapping of words to documents in which the results are
storedvoid getDocumentsWithWord(String word, com.carrotsearch.hppc.IntArrayList documents)
word - the word which should be searcheddocuments - the list to the document ids will be addedint getNumberOfDocuments()
Copyright © 2014–2016. All rights reserved.