public static class ALS.UncompressedInBlockBuilder<ID>
extends Object
Constructor and Description |
---|
ALS.UncompressedInBlockBuilder(ALS.LocalIndexEncoder encoder,
scala.reflect.ClassTag<ID> evidence$6,
scala.math.Ordering<ID> ord) |
Modifier and Type | Method and Description |
---|---|
ALS.UncompressedInBlockBuilder<ID> |
add(int dstBlockId,
Object srcIds,
int[] dstLocalIndices,
float[] ratings)
Adds a dst block of (srcId, dstLocalIndex, rating) tuples.
|
ALS.UncompressedInBlock<ID> |
build()
Builds a
ALS.UncompressedInBlock . |
public ALS.UncompressedInBlockBuilder(ALS.LocalIndexEncoder encoder, scala.reflect.ClassTag<ID> evidence$6, scala.math.Ordering<ID> ord)
public ALS.UncompressedInBlockBuilder<ID> add(int dstBlockId, Object srcIds, int[] dstLocalIndices, float[] ratings)
dstBlockId
- dst block IDsrcIds
- original src IDsdstLocalIndices
- dst local indicesratings
- ratingspublic ALS.UncompressedInBlock<ID> build()
ALS.UncompressedInBlock
.