@Test public void testAppendWithoutSchema() { Row row = RowFactory.create("hello", 1, true); Row appendRow = RowUtils.append(row, -50.0); assertEquals(appendRow.length(), 4); assertEquals(appendRow.get(0), "hello"); assertEquals(appendRow.get(1), 1); assertEquals(appendRow.get(2), true); assertEquals(appendRow.get(3), -50.0); }
public static Row append(Row row, Object value) { Object[] appendedValues = ObjectArrays.concat(valuesFor(row), value); Row appendedRow = RowFactory.create(appendedValues); return appendedRow; }
RowUtils { public static Row append(Row row, Object value) { Object[] appendedValues = ObjectArrays.concat(valuesFor(row), value); Row appendedRow = RowFactory.create(appendedValues); return appendedRow; } }
RowUtils { public static Row append(Row row, Object value) { Object[] appendedValues = ObjectArrays.concat(valuesFor(row), value); Row appendedRow = RowFactory.create(appendedValues); return appendedRow; }  }
RowUtils { public static Row append(Row row, Object value) { Object[] appendedValues = ObjectArrays.concat(valuesFor(row), value); Row appendedRow = RowFactory.create(appendedValues); return appendedRow; }  static Object toRowValue(Object item, DataType type, Map<RowUtils.RowValueMetadata, Object> metadata); static Object toRowValue(Object item, DataType type); static Row subsetRow(Row row, StructType subsetSchema); static Row set(Row row, String fieldName, Object replacement); static Row append(Row row, Object value); static Row append(Row row, String fieldName, DataType fieldType, boolean nullable, Object value); static Row append(Row row, Row append); static Row remove(Row row, String fieldName); static Row remove(Row row, List<String> fieldNames); static Object[] valuesFor(Row row); static boolean different(Row first, Row second, List<String> valueFieldNames); static Column[] toColumnArray(List<String> columnList); }
RowUtils { public static Row append(Row row, Object value) { Object[] appendedValues = ObjectArrays.concat(valuesFor(row), value); Row appendedRow = RowFactory.create(appendedValues); return appendedRow; }  static Object toRowValue(Object item, DataType type, Map<RowUtils.RowValueMetadata, Object> metadata); static Object toRowValue(Object item, DataType type); static Row subsetRow(Row row, StructType subsetSchema); static Row set(Row row, String fieldName, Object replacement); static Row append(Row row, Object value); static Row append(Row row, String fieldName, DataType fieldType, boolean nullable, Object value); static Row append(Row row, Row append); static Row remove(Row row, String fieldName); static Row remove(Row row, List<String> fieldNames); static Object[] valuesFor(Row row); static boolean different(Row first, Row second, List<String> valueFieldNames); static Column[] toColumnArray(List<String> columnList);  }