Class EmptyEncoding

  • All Implemented Interfaces:
    IEncode

    public class EmptyEncoding
    extends Object
    implements IEncode
    Empty encoding for cases where the entire group of columns is zero
    • Constructor Detail

      • EmptyEncoding

        public EmptyEncoding()
    • Method Detail

      • combine

        public IEncode combine​(IEncode e)
        Description copied from interface: IEncode
        Combine two encodings, note it should be guaranteed by the caller that the number of unique multiplied does not overflow Integer.
        Specified by:
        combine in interface IEncode
        Parameters:
        e - The other side to combine with
        Returns:
        The combined encoding
      • getUnique

        public int getUnique()
        Specified by:
        getUnique in interface IEncode
      • isDense

        public boolean isDense()
        Description copied from interface: IEncode
        Signify if the counts are including zero or without zero.
        Specified by:
        isDense in interface IEncode
        Returns:
        is dense