Class ColumnEncoderDummycode
- java.lang.Object
- 
- org.apache.sysds.runtime.transform.encode.ColumnEncoder
- 
- org.apache.sysds.runtime.transform.encode.ColumnEncoderDummycode
 
 
- 
- All Implemented Interfaces:
- Externalizable,- Serializable,- Comparable<ColumnEncoder>,- Encoder
 
 public class ColumnEncoderDummycode extends ColumnEncoder - See Also:
- Serialized Form
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.apache.sysds.runtime.transform.encode.ColumnEncoderColumnEncoder.EncoderType
 
- 
 - 
Field SummaryFields Modifier and Type Field Description int_domainSize- 
Fields inherited from class org.apache.sysds.runtime.transform.encode.ColumnEncoderAPPLY_ROW_BLOCKS_PER_COLUMN, BUILD_ROW_BLOCKS_PER_COLUMN
 
- 
 - 
Constructor SummaryConstructors Constructor Description ColumnEncoderDummycode()ColumnEncoderDummycode(int colID)ColumnEncoderDummycode(int colID, int domainSize)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidallocateMetaData(FrameBlock meta)Pre-allocate a FrameBlock for metadata collection.voidbuild(CacheBlock in)Build the transform meta data for the given block input.booleanequals(Object o)List<DependencyTask<?>>getBuildTasks(CacheBlock in)intgetDomainSize()FrameBlockgetMetaData(FrameBlock meta)Construct a frame block out of the transform meta data.inthashCode()voidinitMetaData(FrameBlock meta)Sets up the required meta data for a subsequent call to apply.voidmergeAt(ColumnEncoder other)Merges another encoder, of a compatible type, in after a certain position.voidreadExternal(ObjectInput in)Redirects the default java serialization via externalizable to our default hadoop writable serialization for efficient broadcast/rdd deserialization.voidupdateDomainSizes(List<ColumnEncoder> columnEncoders)voidupdateIndexRanges(long[] beginDims, long[] endDims, int colOffset)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.ColumnEncoderapply, apply, build, build, buildPartial, compareTo, getApplyTasks, getBuildTask, getColID, getColMapping, getEstMetaSize, getEstNumDistincts, getPartialBuildTask, getPartialMergeBuildTask, getSparseRowsWZeros, isApplicable, isApplicable, prepareBuildPartial, setColID, setEstMetaSize, setEstNumDistincts, shiftCol
 
- 
 
- 
- 
- 
Method Detail- 
buildpublic void build(CacheBlock in) Description copied from interface:EncoderBuild the transform meta data for the given block input. This call modifies and keeps meta data as encoder state.- Parameters:
- in- input frame block
 
 - 
getBuildTaskspublic List<DependencyTask<?>> getBuildTasks(CacheBlock in) - Overrides:
- getBuildTasksin class- ColumnEncoder
 
 - 
mergeAtpublic void mergeAt(ColumnEncoder other) Description copied from class:ColumnEncoderMerges another encoder, of a compatible type, in after a certain position. Resizes as necessary.ColumnEncodersare compatible with themselves andEncoderCompositeis compatible with every otherColumnEncoders.MultiColumnEncodersare compatible with every encoder- Overrides:
- mergeAtin class- ColumnEncoder
- Parameters:
- other- the encoder that should be merged in
 
 - 
updateIndexRangespublic void updateIndexRanges(long[] beginDims, long[] endDims, int colOffset)Description copied from class:ColumnEncoderUpdate index-ranges to after encoding. Note that only Dummycoding changes the ranges.- Specified by:
- updateIndexRangesin interface- Encoder
- Overrides:
- updateIndexRangesin class- ColumnEncoder
- Parameters:
- beginDims- begin dimensions of range
- endDims- end dimensions of range
- colOffset- is applied to begin and endDims
 
 - 
updateDomainSizespublic void updateDomainSizes(List<ColumnEncoder> columnEncoders) 
 - 
allocateMetaDatapublic void allocateMetaData(FrameBlock meta) Description copied from interface:EncoderPre-allocate a FrameBlock for metadata collection.- Parameters:
- meta- frame block
 
 - 
getMetaDatapublic FrameBlock getMetaData(FrameBlock meta) Description copied from interface:EncoderConstruct a frame block out of the transform meta data.- Parameters:
- meta- output frame block
- Returns:
- output frame block?
 
 - 
initMetaDatapublic void initMetaData(FrameBlock meta) Description copied from interface:EncoderSets up the required meta data for a subsequent call to apply.- Parameters:
- meta- frame block
 
 - 
writeExternalpublic void writeExternal(ObjectOutput out) throws IOException Description copied from class:ColumnEncoderRedirects 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- ColumnEncoder
- Parameters:
- out- object output
- Throws:
- IOException- if IOException occurs
 
 - 
readExternalpublic void readExternal(ObjectInput in) throws IOException Description copied from class:ColumnEncoderRedirects 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- ColumnEncoder
- Parameters:
- in- object input
- Throws:
- IOException- if IOException occur
 
 - 
getDomainSizepublic int getDomainSize() 
 
- 
 
-