Row implements Iterator<Row> { public void setDateTime(int columnIndex, LocalDateTime value) { setDateTime(columnNames[columnIndex], value); } Row(Table table);  Row(TableSlice tableSlice);  Row(Table table, int rowNumber);  Row(TableSlice tableSlice, int rowNumber); void at(int rowNumber); int columnCount(); List<String> columnNames(); Boolean getBoolean(int columnIndex); Boolean getBoolean(String columnName); LocalDate getDate(String columnName); LocalDate getDate(int columnIndex); LocalDateTime getDateTime(int columnIndex); LocalDateTime getDateTime(String columnName); Instant getInstant(int columnIndex); Instant getInstant(String columnName); double getDouble(int columnIndex); double getDouble(String columnName); float getFloat(int columnIndex); float getFloat(String columnName); int getInt(int columnIndex); int getInt(String columnName); long getLong(int columnIndex); long getLong(String columnName); Object getObject(String columnName); Object getObject(int columnIndex); int getPackedDate(String columnName); int getPackedDate(int columnIndex); long getPackedDateTime(String columnName); long getPackedDateTime(int columnIndex); int getPackedTime(String columnName); int getPackedTime(int columnIndex); short getShort(int columnIndex); int getRowNumber(); String getString(int columnIndex); short getShort(String columnName); String getText(String columnName); String getText(int columnIndex); LocalTime getTime(String columnName); LocalTime getTime(int columnIndex); String getString(String columnName); boolean isMissing(String columnName); @Override boolean hasNext(); @Override Row next(); void setMissing(int columnIndex); void setMissing(String columnName); void setBoolean(int columnIndex, boolean value); void setBoolean(String columnName, boolean value); void setDate(int columnIndex, LocalDate value); void setDate(String columnName, LocalDate value); void setDateTime(int columnIndex, LocalDateTime value); void setDateTime(String columnName, LocalDateTime value); void setInstant(int columnIndex, Instant value); void setInstant(String columnName, Instant value); void setDouble(int columnIndex, double value); void setDouble(String columnName, double value); void setFloat(int columnIndex, float value); void setFloat(String columnName, float value); void setInt(int columnIndex, int value); void setInt(String columnName, int value); void setLong(int columnIndex, long value); void setLong(String columnName, long value); void setShort(int columnIndex, short value); void setShort(String columnName, short value); void setString(int columnIndex, String value); void setString(String columnName, String value); void setText(int columnIndex, String value); void setText(String columnName, String value); void setTime(int columnIndex, LocalTime value); double getNumber(String columnName); ColumnType getColumnType(String columnName); @Override String toString(); void setTime(String columnName, LocalTime value);  }
@Test public void testSetDateTime() throws IOException { ColumnType[] types = { LOCAL_DATE, LOCAL_TIME, STRING, STRING, SHORT, SHORT, SHORT, DOUBLE, DOUBLE, DOUBLE, DOUBLE }; Table table = Table.read() .csv( CsvReadOptions.builder(new File("../data/rev_tornadoes_1950-2014.csv")) .columnTypes(types) .minimizeColumnSizes()); DateTimeColumn dateTimeCol = table.dateColumn("Date").atTime(table.timeColumn("Time")); dateTimeCol.setName("DateTime"); table.addColumns(dateTimeCol); Row row = new Row(table); while (row.hasNext()) { row.next(); LocalDateTime dttm_less5 = dateTimeCol.get(row.getRowNumber()).minusHours(5); row.setDateTime(11, dttm_less5); assertEquals(dttm_less5, row.getDateTime(11)); LocalDateTime dttm_add5 = dateTimeCol.get(row.getRowNumber()).plusHours(5); row.setDateTime("DateTime", dttm_add5); assertEquals(dttm_add5, row.getDateTime("DateTime")); } }