Class DecoderPassThrough
java.lang.Object
org.apache.sysds.runtime.transform.decode.Decoder
org.apache.sysds.runtime.transform.decode.DecoderPassThrough
- All Implemented Interfaces:
Externalizable,Serializable
Simple atomic decoder for passing through numeric columns to the output.
This is required for block-wise decoding.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecode(MatrixBlock in, FrameBlock out) Block decode API converting a matrix block into a frame block.voiddecode(MatrixBlock in, FrameBlock out, int rl, int ru) Block decode row blockvoidinitMetaData(FrameBlock meta) voidRedirects the default java serialization via externalizable to our default hadoop writable serialization for efficient broadcast/rdd deserialization.subRangeDecoder(int colStart, int colEnd, int dummycodedOffset) Returns a new Decoder that only handles a sub range of columns.voidRedirects the default java serialization via externalizable to our default hadoop writable serialization for efficient broadcast/rdd serialization.Methods inherited from class org.apache.sysds.runtime.transform.decode.Decoder
decode, getColnames, getSchema, setColnames, updateIndexRanges
-
Constructor Details
-
DecoderPassThrough
public DecoderPassThrough()
-
-
Method Details
-
decode
Description copied from class:DecoderBlock decode API converting a matrix block into a frame block. -
decode
Description copied from class:DecoderBlock decode row block -
subRangeDecoder
Description copied from class:DecoderReturns a new Decoder that only handles a sub range of columns. The sub-range refers to the columns after decoding.- Overrides:
subRangeDecoderin classDecoder- Parameters:
colStart- the start index of the sub-range (1-based, inclusive)colEnd- the end index of the sub-range (1-based, exclusive)dummycodedOffset- the offset of dummycoded segments before colStart- Returns:
- a decoder of the same type, just for the sub-range
-
initMetaData
- Specified by:
initMetaDatain classDecoder
-
writeExternal
Description copied from class:DecoderRedirects the default java serialization via externalizable to our default hadoop writable serialization for efficient broadcast/rdd serialization.- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classDecoder- Parameters:
os- object output- Throws:
IOException- if IOException occurs
-
readExternal
Description copied from class:DecoderRedirects the default java serialization via externalizable to our default hadoop writable serialization for efficient broadcast/rdd deserialization.- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classDecoder- Parameters:
in- object input- Throws:
IOException- if IOException occur
-