/** * Returns the values of a given column. * * @param columnIndex the position of the column in the input (0-based). * @param columnType the type of data in that column * @param <V> the type of data in that column * @return a list with all data stored in the given column */ public <V> List<V> getColumn(int columnIndex, Class<V> columnType) { return splitter.getColumnValues(columnIndex, columnType); }
/** * Returns the values of a given column. * * @param columnName the name of the column in the input. * @param columnType the type of data in that column * @param <V> the type of data in that column * @return a list with all data stored in the given column */ public <V> List<V> getColumn(String columnName, Class<V> columnType) { return splitter.getColumnValues(columnName, columnType); }
@Override public List<Object> getColumn(String columnName) { return splitter.getColumnValues(columnName, Object.class); }
@Override public List<Object> getColumn(int columnIndex) { return splitter.getColumnValues(columnIndex, Object.class); }
@Override public final List<List<Object>> getColumnValuesAsList() { return splitter.getColumnValues(); }