Class ColumnEncoderUDF
- java.lang.Object
-
- org.apache.sysds.runtime.transform.encode.ColumnEncoder
-
- org.apache.sysds.runtime.transform.encode.ColumnEncoderUDF
-
- All Implemented Interfaces:
Externalizable
,Serializable
,Comparable<ColumnEncoder>
,Encoder
public class ColumnEncoderUDF extends ColumnEncoder
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.sysds.runtime.transform.encode.ColumnEncoder
ColumnEncoder.EncoderType
-
-
Field Summary
Fields Modifier and Type Field Description int
_domainSize
-
Fields inherited from class org.apache.sysds.runtime.transform.encode.ColumnEncoder
APPLY_ROW_BLOCKS_PER_COLUMN, BUILD_ROW_BLOCKS_PER_COLUMN
-
-
Constructor Summary
Constructors Constructor Description ColumnEncoderUDF()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
allocateMetaData(FrameBlock meta)
Pre-allocate a FrameBlock for metadata collection.void
applyDense(CacheBlock in, MatrixBlock out, int outputCol, int rowStart, int blk)
void
build(CacheBlock in)
Build the transform meta data for the given block input.List<DependencyTask<?>>
getBuildTasks(CacheBlock in)
FrameBlock
getMetaData(FrameBlock meta)
Construct a frame block out of the transform meta data.void
initMetaData(FrameBlock meta)
Sets up the required meta data for a subsequent call to apply.void
mergeAt(ColumnEncoder other)
Merges another encoder, of a compatible type, in after a certain position.void
updateDomainSizes(List<ColumnEncoder> columnEncoders)
-
Methods inherited from class org.apache.sysds.runtime.transform.encode.ColumnEncoder
apply, apply, build, build, buildPartial, compareTo, getApplyTasks, getBuildTask, getColID, getColMapping, getEstMetaSize, getEstNumDistincts, getPartialBuildTask, getPartialMergeBuildTask, getSparseRowsWZeros, isApplicable, isApplicable, prepareBuildPartial, readExternal, setColID, setEstMetaSize, setEstNumDistincts, shiftCol, updateIndexRanges, writeExternal
-
-
-
-
Method Detail
-
build
public void build(CacheBlock in)
Description copied from interface:Encoder
Build the transform meta data for the given block input. This call modifies and keeps meta data as encoder state.- Parameters:
in
- input frame block
-
getBuildTasks
public List<DependencyTask<?>> getBuildTasks(CacheBlock in)
- Overrides:
getBuildTasks
in classColumnEncoder
-
applyDense
public void applyDense(CacheBlock in, MatrixBlock out, int outputCol, int rowStart, int blk)
-
updateDomainSizes
public void updateDomainSizes(List<ColumnEncoder> columnEncoders)
-
mergeAt
public void mergeAt(ColumnEncoder other)
Description copied from class:ColumnEncoder
Merges another encoder, of a compatible type, in after a certain position. Resizes as necessary.ColumnEncoders
are compatible with themselves andEncoderComposite
is compatible with every otherColumnEncoders
.MultiColumnEncoders
are compatible with every encoder- Overrides:
mergeAt
in classColumnEncoder
- Parameters:
other
- the encoder that should be merged in
-
allocateMetaData
public void allocateMetaData(FrameBlock meta)
Description copied from interface:Encoder
Pre-allocate a FrameBlock for metadata collection.- Parameters:
meta
- frame block
-
getMetaData
public FrameBlock getMetaData(FrameBlock meta)
Description copied from interface:Encoder
Construct a frame block out of the transform meta data.- Parameters:
meta
- output frame block- Returns:
- output frame block?
-
initMetaData
public void initMetaData(FrameBlock meta)
Description copied from interface:Encoder
Sets up the required meta data for a subsequent call to apply.- Parameters:
meta
- frame block
-
-