public class EncoderDummycode extends Encoder
| Modifier and Type | Field and Description |
|---|---|
int[] |
_domainSizes |
| Constructor and Description |
|---|
EncoderDummycode() |
EncoderDummycode(int[] colList,
int clen,
int[] domainSizes,
long dummycodedLength) |
EncoderDummycode(org.apache.wink.json4j.JSONObject parsedSpec,
String[] colnames,
int clen,
int minCol,
int maxCol) |
| Modifier and Type | Method and Description |
|---|---|
MatrixBlock |
apply(FrameBlock in,
MatrixBlock out)
Encode input data blockwise according to existing transform meta
data (transform apply).
|
void |
build(FrameBlock in)
Build the transform meta data for the given block input.
|
MatrixBlock |
encode(FrameBlock in,
MatrixBlock out)
Block encode: build and apply (transform encode).
|
MatrixBlock |
getColMapping(FrameBlock meta,
MatrixBlock out)
Obtain the column mapping of encoded frames based on the passed
meta data frame.
|
FrameBlock |
getMetaData(FrameBlock out)
Construct a frame block out of the transform meta data.
|
int |
getNumCols() |
void |
initMetaData(FrameBlock meta)
Sets up the required meta data for a subsequent call to apply.
|
void |
mergeAt(Encoder other,
int row,
int col)
Merges another encoder, of a compatible type, in after a certain position.
|
Encoder |
subRangeEncoder(IndexRange ixRange)
Returns a new Encoder that only handles a sub range of columns.
|
void |
updateDomainSizes(List<Encoder> encoders) |
void |
updateIndexRanges(long[] beginDims,
long[] endDims)
Update index-ranges to after encoding.
|
getColList, initColList, initColList, isApplicable, isApplicable, setColListpublic EncoderDummycode(org.apache.wink.json4j.JSONObject parsedSpec,
String[] colnames,
int clen,
int minCol,
int maxCol)
throws org.apache.wink.json4j.JSONException
org.apache.wink.json4j.JSONExceptionpublic EncoderDummycode()
public EncoderDummycode(int[] colList,
int clen,
int[] domainSizes,
long dummycodedLength)
public int getNumCols()
getNumCols in class Encoderpublic MatrixBlock encode(FrameBlock in, MatrixBlock out)
Encoderpublic void build(FrameBlock in)
Encoderpublic MatrixBlock apply(FrameBlock in, MatrixBlock out)
Encoderpublic Encoder subRangeEncoder(IndexRange ixRange)
EncodersubRangeEncoder in class EncoderixRange - the range (1-based, begin inclusive, end exclusive)public void mergeAt(Encoder other, int row, int col)
EncoderEncoders are compatible with themselves and EncoderComposite is compatible with every
other Encoder.public void updateIndexRanges(long[] beginDims,
long[] endDims)
EncoderupdateIndexRanges in class EncoderbeginDims - begin dimensions of rangeendDims - end dimensions of rangepublic FrameBlock getMetaData(FrameBlock out)
EncodergetMetaData in class Encoderout - output frame blockpublic void initMetaData(FrameBlock meta)
EncoderinitMetaData in class Encodermeta - frame blockpublic MatrixBlock getColMapping(FrameBlock meta, MatrixBlock out)
EncodergetColMapping in class Encodermeta - meta data frame blockout - output matrixCopyright © 2020 The Apache Software Foundation. All rights reserved.