Class EncoderOmit
- java.lang.Object
- 
- org.apache.sysds.runtime.transform.encode.LegacyEncoder
- 
- org.apache.sysds.runtime.transform.encode.EncoderOmit
 
 
- 
- All Implemented Interfaces:
- Externalizable,- Serializable
 
 public class EncoderOmit extends LegacyEncoder - See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description EncoderOmit()EncoderOmit(boolean federated)EncoderOmit(int[] colList, int clen)EncoderOmit(org.apache.wink.json4j.JSONObject parsedSpec, String[] colnames, int clen, int minCol, int maxCol)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description MatrixBlockapply(FrameBlock in, MatrixBlock out)Encode input data blockwise according to existing transform meta data (transform apply).voidbuild(FrameBlock in)Build the transform meta data for the given block input.MatrixBlockencode(FrameBlock in, MatrixBlock out)Block encode: build and apply (transform encode).booleanequals(Object o)FrameBlockgetMetaData(FrameBlock out)Construct a frame block out of the transform meta data.intgetNumRemovedRows()intgetNumRemovedRows(boolean[] rmRows)inthashCode()intinitColList(int[] colList)voidinitMetaData(FrameBlock meta)Sets up the required meta data for a subsequent call to apply.booleanisApplicable()Indicates if this encoder is applicable, i.e, if there is at least one column to encode.voidmergeAt(EncoderOmit other, int row, int col)booleanomit(String[] words, TfUtils agents)voidreadExternal(ObjectInput in)Redirects the default java serialization via externalizable to our default hadoop writable serialization for efficient broadcast/rdd deserialization.EncoderOmitsubRangeEncoder(IndexRange ixRange)Returns a new Encoder that only handles a sub range of columns.voidupdateIndexRanges(long[] beginDims, long[] endDims)Update index-ranges to after encoding.voidwriteExternal(ObjectOutput out)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.encode.LegacyEncoderbuildPartial, getColList, getColMapping, initColList, isApplicable, mergeAt, prepareBuildPartial, setColList, shiftCols
 
- 
 
- 
- 
- 
Constructor Detail- 
EncoderOmitpublic EncoderOmit(org.apache.wink.json4j.JSONObject parsedSpec, String[] colnames, int clen, int minCol, int maxCol) throws org.apache.wink.json4j.JSONException- Throws:
- org.apache.wink.json4j.JSONException
 
 - 
EncoderOmitpublic EncoderOmit() 
 - 
EncoderOmitpublic EncoderOmit(int[] colList, int clen)
 - 
EncoderOmitpublic EncoderOmit(boolean federated) 
 
- 
 - 
Method Detail- 
initColListpublic int initColList(int[] colList) - Overrides:
- initColListin class- LegacyEncoder
 
 - 
isApplicablepublic boolean isApplicable() Indicates if this encoder is applicable, i.e, if there is at least one column to encode.- Overrides:
- isApplicablein class- LegacyEncoder
- Returns:
- true if at least one column to encode
 
 - 
getNumRemovedRowspublic int getNumRemovedRows(boolean[] rmRows) 
 - 
getNumRemovedRowspublic int getNumRemovedRows() 
 - 
encodepublic MatrixBlock encode(FrameBlock in, MatrixBlock out) Description copied from class:LegacyEncoderBlock encode: build and apply (transform encode).- Specified by:
- encodein class- LegacyEncoder
- Parameters:
- in- input frame block
- out- output matrix block
- Returns:
- output matrix block
 
 - 
buildpublic void build(FrameBlock in) Description copied from class:LegacyEncoderBuild the transform meta data for the given block input. This call modifies and keeps meta data as encoder state.- Specified by:
- buildin class- LegacyEncoder
- Parameters:
- in- input frame block
 
 - 
applypublic MatrixBlock apply(FrameBlock in, MatrixBlock out) Description copied from class:LegacyEncoderEncode input data blockwise according to existing transform meta data (transform apply).- Specified by:
- applyin class- LegacyEncoder
- Parameters:
- in- input frame block
- out- output matrix block
- Returns:
- output matrix block
 
 - 
subRangeEncoderpublic EncoderOmit subRangeEncoder(IndexRange ixRange) Description copied from class:LegacyEncoderReturns a new Encoder that only handles a sub range of columns.- Overrides:
- subRangeEncoderin class- LegacyEncoder
- Parameters:
- ixRange- the range (1-based, begin inclusive, end exclusive)
- Returns:
- an encoder of the same type, just for the sub-range
 
 - 
mergeAtpublic void mergeAt(EncoderOmit other, int row, int col) 
 - 
updateIndexRangespublic void updateIndexRanges(long[] beginDims, long[] endDims)Description copied from class:LegacyEncoderUpdate index-ranges to after encoding. Note that only Dummycoding changes the ranges.- Overrides:
- updateIndexRangesin class- LegacyEncoder
- Parameters:
- beginDims- begin dimensions of range
- endDims- end dimensions of range
 
 - 
getMetaDatapublic FrameBlock getMetaData(FrameBlock out) Description copied from class:LegacyEncoderConstruct a frame block out of the transform meta data.- Specified by:
- getMetaDatain class- LegacyEncoder
- Parameters:
- out- output frame block
- Returns:
- output frame block?
 
 - 
initMetaDatapublic void initMetaData(FrameBlock meta) Description copied from class:LegacyEncoderSets up the required meta data for a subsequent call to apply.- Specified by:
- initMetaDatain class- LegacyEncoder
- Parameters:
- meta- frame block
 
 - 
writeExternalpublic void writeExternal(ObjectOutput out) throws IOException Description copied from class:LegacyEncoderRedirects 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- LegacyEncoder
- Parameters:
- out- object output
- Throws:
- IOException- if IOException occurs
 
 - 
readExternalpublic void readExternal(ObjectInput in) throws IOException Description copied from class:LegacyEncoderRedirects 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- LegacyEncoder
- Parameters:
- in- object input
- Throws:
- IOException- if IOException occur
 
 
- 
 
-