Package com.yahoo.search.predicate.index
Class SimpleIndex.Builder
- java.lang.Object
-
- com.yahoo.search.predicate.index.SimpleIndex.Builder
-
- Enclosing class:
- SimpleIndex
public static class SimpleIndex.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SimpleIndex
build()
int
getEntryCount()
int
getKeyCount()
void
insert(long key, Posting posting)
Inserts an object with an id for a key.
-
-
-
Method Detail
-
insert
public void insert(long key, Posting posting)
Inserts an object with an id for a key.- Parameters:
key
- Key to map fromposting
- Entry for the posting list
-
build
public SimpleIndex build()
-
getEntryCount
public int getEntryCount()
-
getKeyCount
public int getKeyCount()
-
-