| Package | Description |
|---|---|
| org.grouplens.lenskit.scored |
Associate IDs with scores.
|
| Modifier and Type | Method and Description |
|---|---|
ScoredIdListBuilder |
ScoredIdListBuilder.add(long id,
double score)
Add a scored ID without boxing.
|
ScoredIdListBuilder |
ScoredIdListBuilder.add(ScoredId id)
Add a scored ID.
|
ScoredIdListBuilder |
ScoredIdListBuilder.addAll(Iterable<ScoredId> ids)
Add a collection of IDs.
|
ScoredIdListBuilder |
ScoredIdListBuilder.addChannel(Symbol sym)
Add a side channel to the list builder with a default value of 0.
|
ScoredIdListBuilder |
ScoredIdListBuilder.addChannel(Symbol sym,
double dft)
Add a side channel to the list builder.
|
ScoredIdListBuilder |
ScoredIdListBuilder.addChannel(TypedSymbol<?> sym)
Add a side channel to the list builder.
|
<T> ScoredIdListBuilder |
ScoredIdListBuilder.addChannel(TypedSymbol<T> sym,
T dft)
Add a typed side channel to the list builder.
|
ScoredIdListBuilder |
ScoredIdListBuilder.addChannels(Iterable<Symbol> channels)
Add multiple unboxed channels with a default value of 0.
|
ScoredIdListBuilder |
ScoredIdListBuilder.addTypedChannels(Iterable<? extends TypedSymbol<?>> channels)
Add multiple channels with a default value of
null. |
ScoredIdListBuilder |
ScoredIdListBuilder.failOnUnknownChannels()
Set the builder to fail on unknown channels.
|
ScoredIdListBuilder |
ScoredIdListBuilder.ignoreUnknownChannels()
Set the builder to ignore unknown channels on IDs passed to
add(ScoredId). |
static ScoredIdListBuilder |
ScoredIds.newListBuilder()
Create a new list builder.
|
static ScoredIdListBuilder |
ScoredIds.newListBuilder(int cap)
Create a new list builder.
|
ScoredIdListBuilder |
ScoredIdListBuilder.sort(Comparator<ScoredId> order)
Sort the list-in-progress by the specified comparator.
|
Copyright © 2013 GroupLens Research. All Rights Reserved.