public class ColumnEncoderFeatureHash extends ColumnEncoder
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
ColumnEncoderFeatureHash.FeatureHashSparseApplyTask  | 
ColumnEncoder.EncoderTypeBUILD_ROW_BLOCKS_PER_COLUMN| Constructor and Description | 
|---|
ColumnEncoderFeatureHash()  | 
ColumnEncoderFeatureHash(int colID,
                        long K)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
build(CacheBlock in)
Build the transform meta data for the given block input. 
 | 
List<DependencyTask<?>> | 
getBuildTasks(CacheBlock in)  | 
long | 
getK()  | 
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 | 
readExternal(ObjectInput in)
Redirects the default java serialization via externalizable to our default hadoop writable serialization for
 efficient broadcast/rdd deserialization. 
 | 
void | 
writeExternal(ObjectOutput out)
Redirects the default java serialization via externalizable to our default hadoop writable serialization for
 efficient broadcast/rdd serialization. 
 | 
apply, apply, buildPartial, compareTo, getApplyTasks, getBuildTask, getColID, getColMapping, getPartialBuildTask, getPartialMergeBuildTask, getSparseRowsWZeros, isApplicable, isApplicable, prepareBuildPartial, setColID, shiftCol, updateIndexRangespublic ColumnEncoderFeatureHash(int colID,
                                long K)
public ColumnEncoderFeatureHash()
public long getK()
public void build(CacheBlock in)
Encoderin - input frame blockpublic List<DependencyTask<?>> getBuildTasks(CacheBlock in)
getBuildTasks in class ColumnEncoderpublic void mergeAt(ColumnEncoder other)
ColumnEncoderColumnEncoders are compatible with themselves and EncoderComposite is compatible with
 every other ColumnEncoders. MultiColumnEncoders are compatible with every encodermergeAt in class ColumnEncoderother - the encoder that should be merged inpublic FrameBlock getMetaData(FrameBlock meta)
Encodermeta - output frame blockpublic void initMetaData(FrameBlock meta)
Encodermeta - frame blockpublic void writeExternal(ObjectOutput out) throws IOException
ColumnEncoderwriteExternal in interface ExternalizablewriteExternal in class ColumnEncoderout - object outputIOException - if IOException occurspublic void readExternal(ObjectInput in) throws IOException
ColumnEncoderreadExternal in interface ExternalizablereadExternal in class ColumnEncoderin - object inputIOException - if IOException occurCopyright © 2021 The Apache Software Foundation. All rights reserved.