class TableSlice extends Relation {

  @Override
  public Column<?> column(int columnIndex) {
    Column<?> col = table.column(columnIndex);
    if (isSorted()) {
      return col.subset(sortOrder);
    } else if (hasSelection()) {
      return col.where(selection);
    }
    return col;
  }

  public  TableSlice(Table table, Selection rowSelection);
  public  TableSlice(Table table);

}