Class CompressedWriteBlock
java.lang.Object
org.apache.sysds.runtime.compress.io.CompressedWriteBlock
- All Implemented Interfaces:
Serializable,Comparable<CompressedWriteBlock>,org.apache.hadoop.io.Writable,org.apache.hadoop.io.WritableComparable<CompressedWriteBlock>
public class CompressedWriteBlock
extends Object
implements org.apache.hadoop.io.WritableComparable<CompressedWriteBlock>, Serializable
Write block for serializing either a instance of MatrixBlock or CompressedMatrixBlock, To allow spark to read in
either or.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWrite block used to point to a underlying instance of CompressedMatrixBlock or MatrixBlock, Unfortunately spark require a specific object type to serialize therefore we use this class. -
Method Summary
Modifier and TypeMethodDescriptionintget()voidreadFields(DataInput in) voidwrite(DataOutput out)
-
Field Details
-
mb
-
-
Constructor Details
-
CompressedWriteBlock
public CompressedWriteBlock()Write block used to point to a underlying instance of CompressedMatrixBlock or MatrixBlock, Unfortunately spark require a specific object type to serialize therefore we use this class. -
CompressedWriteBlock
-
-
Method Details
-
write
- Specified by:
writein interfaceorg.apache.hadoop.io.Writable- Throws:
IOException
-
readFields
- Specified by:
readFieldsin interfaceorg.apache.hadoop.io.Writable- Throws:
IOException
-
get
-
compareTo
- Specified by:
compareToin interfaceComparable<CompressedWriteBlock>
-