/** * Create a {@link Row} from the given arguments. Position i in the argument list becomes * position i in the created {@link Row} object. * * @since 1.3.0 */ public static Row create(Object ... values) { return new GenericRow(values); } }
/** * Create a {@link Row} from the given arguments. Position i in the argument list becomes * position i in the created {@link Row} object. * * @since 1.3.0 */ public static Row create(Object ... values) { return new GenericRow(values); } }
/** * Create a {@link Row} from the given arguments. Position i in the argument list becomes * position i in the created {@link Row} object. * * @since 1.3.0 */ public static Row create(Object ... values) { return new GenericRow(values); } }
Row row = new GenericRow(new Object[] { new GenericRow(new Object[] { "hello", 1 }) Row row = new GenericRow(new Object[] { null }); Row row = new GenericRow(new Object[] { new GenericRow(new Object[] { "hello", null })
Row row = new GenericRow(new Object[] { new GenericRow(new Object[] { "hello", 1 }) Row row = new GenericRow(new Object[] { null }); Row row = new GenericRow(new Object[] { new GenericRow(new Object[] { "hello", null })
Row row = new GenericRow(new Object[] { new GenericRow(new Object[] { "hello", 1 }) Row row = new GenericRow(new Object[] { null }); Row row = new GenericRow(new Object[] { new GenericRow(new Object[] { "hello", null })
Assert.assertEquals(data2, ds2.collectAsList()); Row row1 = new GenericRow(new Object[]{ true, 3, map1, complexMap1}); Row row2 = new GenericRow(new Object[]{ false, 30,
Assert.assertEquals(data2, ds2.collectAsList()); Row row1 = new GenericRow(new Object[]{ true, 3, map1, complexMap1}); Row row2 = new GenericRow(new Object[]{ false, 30,
Assert.assertEquals(data2, ds2.collectAsList()); Row row1 = new GenericRow(new Object[]{ true, 3, map1, complexMap1}); Row row2 = new GenericRow(new Object[]{ false, 30,
@Override public Dataset<Row> getBatch(Option<Offset> start, Offset end) { return sqlContext.createDataFrame( sharedSourceTaskContext.read(start.isDefined() ? Optional.of(start.get()) : Optional.empty(), end) .stream() .map(record -> new GenericRow(new Object[]{ record.topic(), record.kafkaPartition(), keyConverter.fromConnectData(record.topic(), record.keySchema(), record.key()), valueConverter.fromConnectData(record.topic(), record.valueSchema(), record.value()) })).collect(Collectors.toList()), DATA_SCHEMA); }
return new GenericRow(data);
return new GenericRow(data); default: throw new IllegalArgumentException("Unhandled type " + type);