- All Superinterfaces:
Externalizable, Serializable
- All Known Implementing Classes:
ColumnEncoder, ColumnEncoderBagOfWords, ColumnEncoderBin, ColumnEncoderComposite, ColumnEncoderDummycode, ColumnEncoderFeatureHash, ColumnEncoderPassThrough, ColumnEncoderRecode, ColumnEncoderUDF, ColumnEncoderWordEmbedding, MultiColumnEncoder
-
Method Summary
void
Pre-allocate a FrameBlock for metadata collection.
Apply the generated metadata to the FrameBlock and saved the result in out.
void
Build the transform meta data for the given block input.
void
Partial build of internal data structures (e.g., in distributed spark operations).
Construct a frame block out of the transform meta data.
void
Sets up the required meta data for a subsequent call to apply.
void
Allocates internal data structures for partial build.
void
Update index-ranges to after encoding.
-
Method Details
-
build
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
-
apply
Apply the generated metadata to the FrameBlock and saved the result in out.
- Parameters:
in - input frame block
out - output matrix block
outputCol - is a offset in the output matrix. column in FrameBlock + outputCol = column in out
- Returns:
- output matrix block
-
-
-
-
prepareBuildPartial
void prepareBuildPartial()
Allocates internal data structures for partial build.
-
buildPartial
Partial build of internal data structures (e.g., in distributed spark operations).
- Parameters:
in - input frame block
-
updateIndexRanges
void updateIndexRanges(long[] beginDims,
long[] endDims,
int offset)
Update index-ranges to after encoding. Note that only Dummycoding changes the ranges.
- Parameters:
beginDims - begin dimensions of range
endDims - end dimensions of range
offset - is applied to begin and endDims