Search in sources :

Example 1 with ChartRecord

use of com.bakdata.quick.avro.ChartRecord in project quick by bakdata.

the class IngestControllerTest method valueParsingProvider.

private static Stream<Arguments> valueParsingProvider() {
    final QuickData<String> stringInfo = newStringData();
    final ChartRecord record = inputRecord();
    return Stream.of(new TestValueArgument<>(new QuickTopicData<>(TOPIC, TopicWriteType.MUTABLE, stringInfo, stringInfo), "value", "value"), new TestValueArgument<>(new QuickTopicData<>(TOPIC, TopicWriteType.MUTABLE, stringInfo, newIntegerData()), 5, 5), new TestValueArgument<>(new QuickTopicData<>(TOPIC, TopicWriteType.MUTABLE, stringInfo, newDoubleData()), 5.0, 5.0), new TestValueArgument<>(new QuickTopicData<>(TOPIC, TopicWriteType.MUTABLE, stringInfo, getAvroInfo()), record, outputRecord()), new TestValueArgument<>(new QuickTopicData<>(TOPIC, TopicWriteType.MUTABLE, stringInfo, newLongData()), 5L, 5L)).map(arg -> Arguments.of(arg.getData().getValueData().getType(), arg));
}
Also used : ChartRecord(com.bakdata.quick.avro.ChartRecord)

Example 2 with ChartRecord

use of com.bakdata.quick.avro.ChartRecord in project quick by bakdata.

the class IngestControllerTest method keyArguments.

private static Stream<TestKeyArgument<?, ?, ?>> keyArguments() {
    final QuickData<String> stringInfo = newStringData();
    final ChartRecord record = inputRecord();
    return Stream.of(new TestKeyArgument<>(new QuickTopicData<>(TOPIC, TopicWriteType.MUTABLE, stringInfo, stringInfo), "value", "value"), new TestKeyArgument<>(new QuickTopicData<>(TOPIC, TopicWriteType.MUTABLE, newIntegerData(), stringInfo), 5, 5), new TestKeyArgument<>(new QuickTopicData<>(TOPIC, TopicWriteType.MUTABLE, newDoubleData(), stringInfo), 5.0, 5.0), new TestKeyArgument<>(new QuickTopicData<>(TOPIC, TopicWriteType.MUTABLE, getAvroInfo(), stringInfo), record, outputRecord()), new TestKeyArgument<>(new QuickTopicData<>(TOPIC, TopicWriteType.MUTABLE, newLongData(), stringInfo), 5L, 5L));
}
Also used : QuickTopicData(com.bakdata.quick.common.type.QuickTopicData) ChartRecord(com.bakdata.quick.avro.ChartRecord)

Aggregations

ChartRecord (com.bakdata.quick.avro.ChartRecord)2 QuickTopicData (com.bakdata.quick.common.type.QuickTopicData)1