public class DecoderRecode extends Decoder
Constructor and Description |
---|
DecoderRecode() |
Modifier and Type | Method and Description |
---|---|
FrameBlock |
decode(MatrixBlock in,
FrameBlock out)
Block decode API converting a matrix block into a frame block.
|
void |
initMetaData(FrameBlock meta) |
static void |
parseRecodeMapEntry(String entry,
Pair<String,String> pair)
Parses a line of <token, ID, count> into <token, ID> pairs, where
quoted tokens (potentially including separators) are supported.
|
void |
readExternal(ObjectInput in)
Redirects the default java serialization via externalizable to our default
hadoop writable serialization for efficient broadcast/rdd deserialization.
|
Decoder |
subRangeDecoder(int colStart,
int colEnd,
int dummycodedOffset)
Returns a new Decoder that only handles a sub range of columns.
|
void |
writeExternal(ObjectOutput out)
Redirects the default java serialization via externalizable to our default
hadoop writable serialization for efficient broadcast/rdd serialization.
|
getColnames, getSchema, setColnames, updateIndexRanges
public FrameBlock decode(MatrixBlock in, FrameBlock out)
Decoder
public Decoder subRangeDecoder(int colStart, int colEnd, int dummycodedOffset)
Decoder
subRangeDecoder
in class Decoder
colStart
- the start index of the sub-range (1-based, inclusive)colEnd
- the end index of the sub-range (1-based, exclusive)dummycodedOffset
- the offset of dummycoded segments before colStartpublic void initMetaData(FrameBlock meta)
initMetaData
in class Decoder
public static void parseRecodeMapEntry(String entry, Pair<String,String> pair)
entry
- entry line (token, ID, count)pair
- token-ID pairpublic void writeExternal(ObjectOutput out) throws IOException
Decoder
writeExternal
in interface Externalizable
writeExternal
in class Decoder
out
- object outputIOException
- if IOException occurspublic void readExternal(ObjectInput in) throws IOException
Decoder
readExternal
in interface Externalizable
readExternal
in class Decoder
in
- object inputIOException
- if IOException occurCopyright © 2021 The Apache Software Foundation. All rights reserved.