public class MatrixWritable extends Object implements org.apache.hadoop.io.Writable
| Constructor and Description |
|---|
MatrixWritable() |
MatrixWritable(Matrix m) |
| Modifier and Type | Method and Description |
|---|---|
Matrix |
get() |
void |
readFields(DataInput in) |
static void |
readLabels(DataInput in,
Map<String,Integer> columnLabelBindings,
Map<String,Integer> rowLabelBindings) |
static Matrix |
readMatrix(DataInput in)
Reads a typed Matrix instance from the input stream
|
void |
set(Matrix matrix) |
void |
write(DataOutput out) |
static void |
writeLabelBindings(DataOutput out,
Map<String,Integer> columnLabelBindings,
Map<String,Integer> rowLabelBindings) |
static void |
writeMatrix(DataOutput out,
Matrix matrix)
Writes a typed Matrix instance to the output stream
|
public MatrixWritable()
public MatrixWritable(Matrix m)
public Matrix get()
public void set(Matrix matrix)
public void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.WritableIOExceptionpublic void readFields(DataInput in) throws IOException
readFields in interface org.apache.hadoop.io.WritableIOExceptionpublic static void readLabels(DataInput in, Map<String,Integer> columnLabelBindings, Map<String,Integer> rowLabelBindings) throws IOException
IOExceptionpublic static void writeLabelBindings(DataOutput out, Map<String,Integer> columnLabelBindings, Map<String,Integer> rowLabelBindings) throws IOException
IOExceptionpublic static Matrix readMatrix(DataInput in) throws IOException
IOExceptionpublic static void writeMatrix(DataOutput out, Matrix matrix) throws IOException
IOExceptionCopyright © 2008–2015 The Apache Software Foundation. All rights reserved.