Interface VTable

All Superinterfaces:
VType
All Known Implementing Classes:
IVTable

public interface VTable extends VType
A table. Tables are collections of columns, each of which is composed of a String representing the name of the column and a list of a particular type (all elements of the same column must be of the same type).
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    The number of columns in the table.
    getColumnData(int column)
    The data for the given column.
    getColumnName(int column)
    The name of the given column.
    getColumnType(int column)
    The type of the elements in the column.
    int
    The number of rows in the table.
  • Method Details

    • getColumnCount

      int getColumnCount()
      The number of columns in the table.
      Returns:
      the number of columns
    • getRowCount

      int getRowCount()
      The number of rows in the table.

      Currently, it is not clear whether all columns actually have the same number of rows, that is if all arrays have the same length. In the case of variable row, this will return the maximum row count, that is the length of the longest array/column.

      Returns:
      the number of rows
    • getColumnType

      Class<?> getColumnType(int column)
      The type of the elements in the column. The column array will be an array of the given type. For primitive types, this function will return the TYPE class (such as Double.TYPE, while getColumnData(int) will return a ListNumber.
      Parameters:
      column - the column index
      Returns:
      the type of this column
    • getColumnName

      String getColumnName(int column)
      The name of the given column.
      Parameters:
      column - the column index
      Returns:
      the name of the column
    • getColumnData

      Object getColumnData(int column)
      The data for the given column.

      The data is going to be a List in case of objects or a ListNumber in case of a numeric primitive.

      Parameters:
      column - the column index
      Returns:
      the data of the column