Interface IColumn<K>

    • Method Detail

      • read

        K read​(int position)
        Description copied from interface: IArrayReader
        Reads a value at some index in an array.
        Specified by:
        read in interface IArrayReader
        Parameters:
        position - 0-based index in an array
        Returns:
        the data stored at that position in the array
      • getCapacity

        int getCapacity()
        Returns the current capacity of this column.

        The capacity is the number of elements that can be stored in this column.

        Returns:
        the current capacity of this column
      • ensureCapacity

        int ensureCapacity​(int capacity)
        Ensures that this column is large enough to store at least the requested number of elements.

        This method will conservatively expand this column and allocate the minimum amount of space necessary to store the required number of elements.

        Parameters:
        capacity - the target number of elements that should be stored in this column
        Returns:
        the actual capacity of this column after this method has been executed
      • growCapacity

        int growCapacity​(int capacity)
        Ensures that this column is large enough to store at least the requested number of elements.

        This method will aggressively expand this column and at least double the current capacity if it is not large enough.

        Parameters:
        capacity - the target number of elements that should be stored in this column
        Returns:
        the actual capacity of this column after this method has been executed