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 int
addItem(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, numItems
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface es.uam.eps.ir.ranksys.fast.index.FastItemIndex
containsItem, getAllIidx, iidx2item, iidx2item, iidx2item, item2iidx, item2iidx, item2iidx
Methods inherited from interface es.uam.eps.ir.relison.links.data.updateable.index.fast.FastUpdateableItemIndex
getAllItems
Methods 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:UpdateableItemIndex
Adds a new item.- Specified by:
addItem
in 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
-