Class SimpleFastUpdateableItemIndex<I>
java.lang.Object
es.uam.eps.ir.ranksys.fast.index.SimpleFastItemIndex<I>
es.uam.eps.ir.relison.links.data.updateable.index.fast.SimpleFastUpdateableItemIndex<I>
- Type Parameters:
I- type of the items
- All Implemented Interfaces:
es.uam.eps.ir.ranksys.core.index.ItemIndex<I>,es.uam.eps.ir.ranksys.fast.index.FastItemIndex<I>,FastUpdateableItemIndex<I>,UpdateableItemIndex<I>,java.io.Serializable
public class SimpleFastUpdateableItemIndex<I> extends es.uam.eps.ir.ranksys.fast.index.SimpleFastItemIndex<I> implements FastUpdateableItemIndex<I>
Simple implementation of FastUpdateableItemIndex backed by a bi-map IdxIndex
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description SimpleFastUpdateableItemIndex() -
Method Summary
Modifier and Type Method Description intaddItem(I i)Adds a new item.static <I> SimpleFastUpdateableItemIndex<I>load(java.util.stream.Stream<I> items)Creates an item index from a stream of item objects.Methods inherited from class es.uam.eps.ir.ranksys.fast.index.SimpleFastItemIndex
add, containsItem, getAllItems, iidx2item, item2iidx, numItemsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface es.uam.eps.ir.ranksys.fast.index.FastItemIndex
containsItem, getAllIidx, iidx2item, iidx2item, iidx2item, item2iidx, item2iidx, item2iidxMethods inherited from interface es.uam.eps.ir.relison.links.data.updateable.index.fast.FastUpdateableItemIndex
getAllItemsMethods inherited from interface es.uam.eps.ir.relison.links.data.updateable.index.UpdateableItemIndex
addItems
-
Constructor Details
-
SimpleFastUpdateableItemIndex
public SimpleFastUpdateableItemIndex()
-
-
Method Details
-
addItem
Description copied from interface:UpdateableItemIndexAdds a new item.- Specified by:
addItemin interfaceUpdateableItemIndex<I>- Parameters:
i- the item.- Returns:
- the identifier of the new item
-
load
Creates an item index from a stream of item objects.- Type Parameters:
I- type of the items- Parameters:
items- stream of item objects- Returns:
- a fast item index
-