M
- The type parameter of matrix valuespublic abstract class BaseMatrixCache<M extends org.apache.hadoop.io.Writable> extends java.lang.Object implements MatrixCache<M>
Modifier and Type | Field and Description |
---|---|
protected IntIntPairWritable |
col |
protected it.unimi.dsi.fastutil.ints.IntArrayList |
colList |
protected org.apache.hadoop.conf.Configuration |
conf |
protected it.unimi.dsi.fastutil.ints.IntArrayList |
degrees |
protected org.apache.hadoop.fs.Path |
path |
protected it.unimi.dsi.fastutil.ints.IntArrayList |
rowList |
protected it.unimi.dsi.fastutil.ints.IntArrayList |
rowSizes |
Modifier | Constructor and Description |
---|---|
protected |
BaseMatrixCache(java.lang.String blockName,
org.apache.hadoop.conf.Configuration conf,
int numCols,
int numRows,
int sizePerValue) |
Modifier and Type | Method and Description |
---|---|
void |
freeze() |
void |
put(IntIntPairWritable col,
M rows) |
protected abstract void |
putToMemory(IntIntPairWritable col,
M rows) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
iterator
protected final org.apache.hadoop.conf.Configuration conf
protected final it.unimi.dsi.fastutil.ints.IntArrayList colList
protected final it.unimi.dsi.fastutil.ints.IntArrayList rowList
protected final it.unimi.dsi.fastutil.ints.IntArrayList rowSizes
protected final it.unimi.dsi.fastutil.ints.IntArrayList degrees
protected final org.apache.hadoop.fs.Path path
protected final IntIntPairWritable col
protected BaseMatrixCache(java.lang.String blockName, org.apache.hadoop.conf.Configuration conf, int numCols, int numRows, int sizePerValue) throws java.io.IOException
java.io.IOException
public void put(IntIntPairWritable col, M rows) throws java.io.IOException
put
in interface MatrixCache<M extends org.apache.hadoop.io.Writable>
java.io.IOException
protected abstract void putToMemory(IntIntPairWritable col, M rows)
public void freeze()
freeze
in interface MatrixCache<M extends org.apache.hadoop.io.Writable>