Class RangeIndex

    • Constructor Detail

      • RangeIndex

        public RangeIndex​(int nCol)
      • RangeIndex

        public RangeIndex​(int l,
                          int u)
    • Method Detail

      • size

        public int size()
        Description copied from interface: IColIndex
        Get the size of the index aka, how many columns is contained
        Returns:
        The size of the array
      • get

        public int get​(int i)
        Description copied from interface: IColIndex
        Get the index at a specific location, Note that many of the underlying implementations does not throw exceptions on indexes that are completely wrong, so all implementations that use this index should always be well behaved.
        Parameters:
        i - The index to get
        Returns:
        the column index at the index.
      • shift

        public IColIndex shift​(int i)
        Description copied from interface: IColIndex
        Return a new column index where the values are shifted by the specified amount. It is returning a new instance of the index.
        Parameters:
        i - The amount to shift
        Returns:
        the new instance of an index.
      • write

        public void write​(DataOutput out)
                   throws IOException
        Description copied from interface: IColIndex
        Write out the IO representation of this column index
        Parameters:
        out - The Output to write into
        Throws:
        IOException - IO exceptions in case of for instance not enough disk space
      • getExactSizeOnDisk

        public long getExactSizeOnDisk()
        Description copied from interface: IColIndex
        Get the exact size on disk to enable preallocation of the disk output buffer sizes
        Returns:
        The exact disk representation size
      • estimateInMemorySize

        public long estimateInMemorySize()
        Description copied from interface: IColIndex
        Get the in memory size of this object.
        Returns:
        The memory size of this object
      • estimateInMemorySizeStatic

        public static long estimateInMemorySizeStatic()
      • iterator

        public IIterate iterator()
        Description copied from interface: IColIndex
        A Iterator of the indexes see the iterator interface for details.
        Returns:
        A iterator for the indexes contained.
      • findIndex

        public int findIndex​(int i)
        Description copied from interface: IColIndex
        Find the index of the value given return negative if non existing.
        Parameters:
        i - the value to find inside the allocation
        Returns:
        The index of the value.
      • equals

        public boolean equals​(IColIndex other)
      • combine

        public IColIndex combine​(IColIndex other)
        Description copied from interface: IColIndex
        combine the indexes of this colIndex with another, it is expected that all calls to this contains unique indexes, and no copies of values.
        Parameters:
        other - The other array
        Returns:
        The combined array
      • isContiguous

        public boolean isContiguous()
        Description copied from interface: IColIndex
        Get if these columns are contiguous, meaning all indexes are integers at increments of 1. ex: 1,2,3,4,5,6 is contiguous 1,3,4 is not.
        Returns:
        If the Columns are contiguous.