public interface Encoder extends Externalizable
| Modifier and Type | Method and Description | 
|---|---|
| MatrixBlock | apply(FrameBlock in,
     MatrixBlock out,
     int outputCol)Apply the generated metadata to the FrameBlock and saved the result in out. | 
| void | build(FrameBlock in)Build the transform meta data for the given block input. | 
| void | buildPartial(FrameBlock in)Partial build of internal data structures (e.g., in distributed spark operations). | 
| FrameBlock | getMetaData(FrameBlock out)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 | prepareBuildPartial()Allocates internal data structures for partial build. | 
| void | updateIndexRanges(long[] beginDims,
                 long[] endDims,
                 int offset)Update index-ranges to after encoding. | 
readExternal, writeExternalvoid build(FrameBlock in)
in - input frame blockMatrixBlock apply(FrameBlock in, MatrixBlock out, int outputCol)
in - input frame blockout - output matrix blockoutputCol - is a offset in the output matrix. column in FrameBlock + outputCol = column in outFrameBlock getMetaData(FrameBlock out)
out - output frame blockvoid initMetaData(FrameBlock meta)
meta - frame blockvoid prepareBuildPartial()
void buildPartial(FrameBlock in)
in - input frame blockvoid updateIndexRanges(long[] beginDims,
                       long[] endDims,
                       int offset)
beginDims - begin dimensions of rangeendDims - end dimensions of rangeoffset - is applied to begin and endDimsCopyright © 2021 The Apache Software Foundation. All rights reserved.