public abstract class Decoder extends Object implements Externalizable
| Modifier and Type | Method and Description | 
|---|---|
| abstract FrameBlock | decode(MatrixBlock in,
      FrameBlock out)Block decode API converting a matrix block into a frame block. | 
| String[] | getColnames() | 
| Types.ValueType[] | getSchema() | 
| abstract void | initMetaData(FrameBlock meta) | 
| void | readExternal(ObjectInput in)Redirects the default java serialization via externalizable to our default
 hadoop writable serialization for efficient broadcast/rdd deserialization. | 
| void | setColnames(String[] colnames) | 
| Decoder | subRangeDecoder(int colStart,
               int colEnd,
               int dummycodedOffset)Returns a new Decoder that only handles a sub range of columns. | 
| void | updateIndexRanges(long[] beginDims,
                 long[] endDims)Update index-ranges to after decoding. | 
| void | writeExternal(ObjectOutput os)Redirects the default java serialization via externalizable to our default
 hadoop writable serialization for efficient broadcast/rdd serialization. | 
public Types.ValueType[] getSchema()
public void setColnames(String[] colnames)
public String[] getColnames()
public abstract FrameBlock decode(MatrixBlock in, FrameBlock out)
in - input matrix blockout - output frame blockpublic Decoder subRangeDecoder(int colStart, int colEnd, int dummycodedOffset)
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 updateIndexRanges(long[] beginDims,
                              long[] endDims)
beginDims - the begin indexes before encodingendDims - the end indexes before encodingpublic abstract void initMetaData(FrameBlock meta)
public void writeExternal(ObjectOutput os) throws IOException
writeExternal in interface Externalizableos - object outputIOException - if IOException occurspublic void readExternal(ObjectInput in) throws IOException
readExternal in interface Externalizablein - object inputIOException - if IOException occurCopyright © 2021 The Apache Software Foundation. All rights reserved.