public static class ALS.UncompressedInBlock<ID>
extends Object
| Constructor and Description |
|---|
ALS.UncompressedInBlock(Object srcIds,
int[] dstEncodedIndices,
float[] ratings,
scala.reflect.ClassTag<ID> evidence$7,
scala.math.Ordering<ID> ord) |
| Modifier and Type | Method and Description |
|---|---|
ALS.InBlock<ID> |
compress()
Compresses the block into an
ALS.InBlock. |
int[] |
dstEncodedIndices() |
int |
length()
Size the of block.
|
float[] |
ratings() |
Object |
srcIds() |
public Object srcIds()
public int[] dstEncodedIndices()
public float[] ratings()
public int length()
public ALS.InBlock<ID> compress()
ALS.InBlock. The algorithm is the same as converting a
sparse matrix from coordinate list (COO) format into compressed sparse column (CSC) format.
Sorting is done using Spark's built-in Timsort to avoid generating too many objects.