Class DecoderDummycode
- java.lang.Object
- 
- org.apache.sysds.runtime.transform.decode.Decoder
- 
- org.apache.sysds.runtime.transform.decode.DecoderDummycode
 
 
- 
- All Implemented Interfaces:
- Externalizable,- Serializable
 
 public class DecoderDummycode extends Decoder Simple atomic decoder for dummycoded columns. This decoder builds internally inverted column mappings from the given frame meta data.- See Also:
- Serialized Form
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description FrameBlockdecode(MatrixBlock in, FrameBlock out)Block decode API converting a matrix block into a frame block.voidinitMetaData(FrameBlock meta)voidreadExternal(ObjectInput in)Redirects the default java serialization via externalizable to our default hadoop writable serialization for efficient broadcast/rdd deserialization.DecodersubRangeDecoder(int colStart, int colEnd, int dummycodedOffset)Returns a new Decoder that only handles a sub range of columns.voidupdateIndexRanges(long[] beginDims, long[] endDims)Update index-ranges to after decoding.voidwriteExternal(ObjectOutput os)Redirects 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.DecodergetColnames, getSchema, setColnames
 
- 
 
- 
- 
- 
Method Detail- 
decodepublic FrameBlock decode(MatrixBlock in, FrameBlock out) Description copied from class:DecoderBlock decode API converting a matrix block into a frame block.
 - 
subRangeDecoderpublic Decoder subRangeDecoder(int colStart, int colEnd, int dummycodedOffset) 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 class- Decoder
- 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
 
 - 
updateIndexRangespublic void updateIndexRanges(long[] beginDims, long[] endDims)Description copied from class:DecoderUpdate index-ranges to after decoding. Note that only Dummycoding changes the ranges.- Overrides:
- updateIndexRangesin class- Decoder
- Parameters:
- beginDims- the begin indexes before encoding
- endDims- the end indexes before encoding
 
 - 
initMetaDatapublic void initMetaData(FrameBlock meta) - Specified by:
- initMetaDatain class- Decoder
 
 - 
writeExternalpublic void writeExternal(ObjectOutput os) throws IOException 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 interface- Externalizable
- Overrides:
- writeExternalin class- Decoder
- Parameters:
- os- object output
- Throws:
- IOException- if IOException occurs
 
 - 
readExternalpublic void readExternal(ObjectInput in) throws IOException 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 interface- Externalizable
- Overrides:
- readExternalin class- Decoder
- Parameters:
- in- object input
- Throws:
- IOException- if IOException occur
 
 
- 
 
-