Class ColumnEncoderRecode

    • Field Detail

      • SORT_RECODE_MAP

        public static boolean SORT_RECODE_MAP
    • Constructor Detail

      • ColumnEncoderRecode

        public ColumnEncoderRecode​(int colID)
      • ColumnEncoderRecode

        public ColumnEncoderRecode()
    • Method Detail

      • constructRecodeMapEntry

        public static String constructRecodeMapEntry​(String token,
                                                     Long code)
        Returns the Recode map entry which consists of concatenation of code, delimiter and token.
        Parameters:
        token - is part of Recode map
        code - is code for token
        Returns:
        the concatenation of token and code with delimiter in between
      • splitRecodeMapEntry

        public static String[] splitRecodeMapEntry​(String value)
        Splits a Recode map entry into its token and code.
        Parameters:
        value - concatenation of token and code with delimiter in between
        Returns:
        string array of token and code
      • getCPRecodeMapsPartial

        public HashSet<Object> getCPRecodeMapsPartial()
      • sortCPRecodeMaps

        public void sortCPRecodeMaps()
      • computeRCDMapSizeEstimate

        public void computeRCDMapSizeEstimate​(CacheBlock in,
                                              int[] sampleIndices)
      • 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.
        Parameters:
        in - input frame block
      • 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
        Overrides:
        mergeAt in class ColumnEncoder
        Parameters:
        other - the encoder that should be merged in
      • getNumDistinctValues

        public int getNumDistinctValues()
      • allocateMetaData

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

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

        public void initMetaData​(FrameBlock meta)
        Construct the recodemaps from the given input frame for all columns registered for recode.
        Parameters:
        meta - frame block
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object