Package com.yahoo.search.predicate.index
Class SimpleIndex
java.lang.Object
com.yahoo.search.predicate.index.SimpleIndex
An index mapping keys of type Long to lists of postings of generic data.
- Author:
- Magnar Nedland, bjorncs
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionSimpleIndex
(org.eclipse.collections.api.map.primitive.LongObjectMap<SimpleIndex.Entry> dictionary) -
Method Summary
Modifier and TypeMethodDescriptionstatic SimpleIndex
getPostingList
(long key) Retrieves a posting list for a given keyvoid
-
Constructor Details
-
SimpleIndex
public SimpleIndex(org.eclipse.collections.api.map.primitive.LongObjectMap<SimpleIndex.Entry> dictionary)
-
-
Method Details
-
getPostingList
Retrieves a posting list for a given key- Parameters:
key
- the key to lookup- Returns:
- list of postings
-
writeToOutputStream
- Throws:
IOException
-
fromInputStream
- Throws:
IOException
-