Class ColumnEncoderComposite

    • Constructor Detail

      • ColumnEncoderComposite

        public ColumnEncoderComposite()
      • ColumnEncoderComposite

        public ColumnEncoderComposite​(List<ColumnEncoder> columnEncoders)
      • ColumnEncoderComposite

        public ColumnEncoderComposite​(ColumnEncoder columnEncoder)
    • Method Detail

      • isEncoder

        public boolean isEncoder​(int colID,
                                 Class<?> type)
      • build

        public void build​(CacheBlock<?> in)
        Description copied from interface: Encoder
        Build the transform meta data for the given block input. This call modifies and keeps meta data as encoder state.
        in - input frame block
      • hashCode

        public int hashCode()
        hashCode in class Object
      • mergeAt

        public void mergeAt​(ColumnEncoder other)
        Description copied from class: ColumnEncoder
        Merges another encoder, of a compatible type, in after a certain position. Resizes as necessary. ColumnEncoders are compatible with themselves and EncoderComposite is compatible with every other ColumnEncoders. MultiColumnEncoders are compatible with every encoder
        mergeAt in class ColumnEncoder
        other - the encoder that should be merged in
      • updateAllDCEncoders

        public void updateAllDCEncoders()
      • updateIndexRanges

        public void updateIndexRanges​(long[] beginDims,
                                      long[] endDims,
                                      int colOffset)
        Description copied from class: ColumnEncoder
        Update index-ranges to after encoding. Note that only Dummycoding changes the ranges.
        Specified by:
        updateIndexRanges in interface Encoder
        updateIndexRanges in class ColumnEncoder
        beginDims - begin dimensions of range
        endDims - end dimensions of range
        colOffset - is applied to begin and endDims
      • allocateMetaData

        public void allocateMetaData​(FrameBlock meta)
        Description copied from interface: Encoder
        Pre-allocate a FrameBlock for metadata collection.
        meta - frame block
      • getMetaData

        public FrameBlock getMetaData​(FrameBlock out)
        Description copied from interface: Encoder
        Construct a frame block out of the transform meta data.
        out - output frame block
        output frame block?
      • initMetaData

        public void initMetaData​(FrameBlock out)
        Description copied from interface: Encoder
        Sets up the required meta data for a subsequent call to apply.
        out - frame block
      • hasBuild

        public <T extends ColumnEncoder> boolean hasBuild()
      • computeRCDMapSizeEstimate

        public void computeRCDMapSizeEstimate​(CacheBlock<?> in,
                                              int[] sampleIndices)
      • setNumPartitions

        public void setNumPartitions​(int nBuild,
                                     int nApply)
      • isRecodeToDummy

        public boolean isRecodeToDummy()
      • isRecode

        public boolean isRecode()
      • isPassThrough

        public boolean isPassThrough()
      • isBin

        public boolean isBin()
      • isBinToDummy

        public boolean isBinToDummy()
      • isHash

        public boolean isHash()
      • isHashToDummy

        public boolean isHashToDummy()