public class EncoderOmit extends Encoder
Constructor and Description |
---|
EncoderOmit() |
EncoderOmit(boolean federated) |
EncoderOmit(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).
|
FrameBlock |
getMetaData(FrameBlock out)
Construct a frame block out of the transform meta data.
|
int |
getNumRemovedRows() |
int |
getNumRemovedRows(boolean[] rmRows) |
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.
|
boolean |
omit(String[] words,
TfUtils agents) |
Encoder |
subRangeEncoder(IndexRange ixRange)
Returns a new Encoder that only handles a sub range of columns.
|
void |
updateIndexRanges(long[] beginDims,
long[] endDims)
Update index-ranges to after encoding.
|
getColList, getColMapping, getNumCols, initColList, initColList, isApplicable, isApplicable, setColList
public EncoderOmit(org.apache.wink.json4j.JSONObject parsedSpec, String[] colnames, int clen, int minCol, int maxCol) throws org.apache.wink.json4j.JSONException
org.apache.wink.json4j.JSONException
public EncoderOmit()
public EncoderOmit(boolean federated)
public int getNumRemovedRows(boolean[] rmRows)
public int getNumRemovedRows()
public MatrixBlock encode(FrameBlock in, MatrixBlock out)
Encoder
public void build(FrameBlock in)
Encoder
public MatrixBlock apply(FrameBlock in, MatrixBlock out)
Encoder
public Encoder subRangeEncoder(IndexRange ixRange)
Encoder
subRangeEncoder
in class Encoder
ixRange
- the range (1-based, begin inclusive, end exclusive)public void mergeAt(Encoder other, int row, int col)
Encoder
Encoders
are compatible with themselves and EncoderComposite
is compatible with every
other Encoder
.public void updateIndexRanges(long[] beginDims, long[] endDims)
Encoder
updateIndexRanges
in class Encoder
beginDims
- begin dimensions of rangeendDims
- end dimensions of rangepublic FrameBlock getMetaData(FrameBlock out)
Encoder
getMetaData
in class Encoder
out
- output frame blockpublic void initMetaData(FrameBlock meta)
Encoder
initMetaData
in class Encoder
meta
- frame blockCopyright © 2020 The Apache Software Foundation. All rights reserved.