use of org.apache.druid.data.input.impl.NoopInputSource in project druid by druid-io.
the class IndexIngestionSpecTest method testFirehoseAndInputSource.
@Test
public void testFirehoseAndInputSource() {
expectedException.expect(IllegalArgumentException.class);
expectedException.expectMessage("At most one of [Property{name='firehose', value=NoopFirehoseFactory{}}, Property{name='inputSource'");
final IndexIngestionSpec spec = new IndexIngestionSpec(new DataSchema("dataSource", new TimestampSpec(null, null, null), DimensionsSpec.EMPTY, new AggregatorFactory[0], new ArbitraryGranularitySpec(Granularities.NONE, null), null), new IndexIOConfig(new NoopFirehoseFactory(), new NoopInputSource(), null, null, null), null);
}
use of org.apache.druid.data.input.impl.NoopInputSource in project druid by druid-io.
the class IndexIngestionSpecTest method testParserAndInputFormat.
@Test
public void testParserAndInputFormat() {
expectedException.expect(IllegalArgumentException.class);
expectedException.expectMessage("Cannot use parser and inputSource together. Try using inputFormat instead of parser.");
final IndexIngestionSpec spec = new IndexIngestionSpec(new DataSchema("dataSource", ImmutableMap.of("fake", "parser map"), new AggregatorFactory[0], new ArbitraryGranularitySpec(Granularities.NONE, null), null, null), new IndexIOConfig(null, new NoopInputSource(), new NoopInputFormat(), null, null), null);
}
use of org.apache.druid.data.input.impl.NoopInputSource in project druid by druid-io.
the class IndexIngestionSpecTest method testParserAndInputSource.
@Test
public void testParserAndInputSource() {
expectedException.expect(IllegalArgumentException.class);
expectedException.expectMessage("Cannot use parser and inputSource together.");
final IndexIngestionSpec spec = new IndexIngestionSpec(new DataSchema("dataSource", ImmutableMap.of("fake", "parser map"), new AggregatorFactory[0], new ArbitraryGranularitySpec(Granularities.NONE, null), null, null), new IndexIOConfig(null, new NoopInputSource(), null, null, null), null);
}
Aggregations