Class BinaryBlockToTextCellConverter
- java.lang.Object
-
- org.apache.sysds.runtime.matrix.data.BinaryBlockToTextCellConverter
-
- All Implemented Interfaces:
Converter<MatrixIndexes,MatrixBlock,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.Text>
public class BinaryBlockToTextCellConverter extends Object implements Converter<MatrixIndexes,MatrixBlock,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.Text>
-
-
Constructor Summary
Constructors Constructor Description BinaryBlockToTextCellConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
convert(MatrixIndexes k1, MatrixBlock v1)
Before calling convert, please make sure to setBlockSize(blen, blen);boolean
hasNext()
Pair<org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.Text>
next()
void
setBlockSize(int nr, int nc)
-
-
-
Method Detail
-
convert
public void convert(MatrixIndexes k1, MatrixBlock v1)
Before calling convert, please make sure to setBlockSize(blen, blen);- Specified by:
convert
in interfaceConverter<MatrixIndexes,MatrixBlock,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.Text>
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfaceConverter<MatrixIndexes,MatrixBlock,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.Text>
-
next
public Pair<org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.Text> next()
- Specified by:
next
in interfaceConverter<MatrixIndexes,MatrixBlock,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.Text>
-
setBlockSize
public void setBlockSize(int nr, int nc)
- Specified by:
setBlockSize
in interfaceConverter<MatrixIndexes,MatrixBlock,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.Text>
-
-