Search in sources :

Example 6 with PathSpec

use of io.druid.indexer.path.PathSpec in project druid by druid-io.

the class HadoopIngestionSpecUpdateDatasourcePathSpecSegmentsTest method testupdateSegmentListIfDatasourcePathSpecIsUsedWithJustDatasourcePathSpec.

@Test
public void testupdateSegmentListIfDatasourcePathSpecIsUsedWithJustDatasourcePathSpec() throws Exception {
    PathSpec pathSpec = new DatasourcePathSpec(jsonMapper, null, new DatasourceIngestionSpec(testDatasource, testDatasourceInterval, null, null, null, null, null, null, false), null);
    HadoopDruidIndexerConfig config = testRunUpdateSegmentListIfDatasourcePathSpecIsUsed(pathSpec, testDatasourceInterval);
    Assert.assertEquals(ImmutableList.of(WindowedDataSegment.of(SEGMENT)), ((DatasourcePathSpec) config.getPathSpec()).getSegments());
}
Also used : DatasourceIngestionSpec(io.druid.indexer.hadoop.DatasourceIngestionSpec) DatasourcePathSpec(io.druid.indexer.path.DatasourcePathSpec) DatasourcePathSpec(io.druid.indexer.path.DatasourcePathSpec) StaticPathSpec(io.druid.indexer.path.StaticPathSpec) PathSpec(io.druid.indexer.path.PathSpec) MultiplePathSpec(io.druid.indexer.path.MultiplePathSpec) Test(org.junit.Test)

Aggregations

DatasourcePathSpec (io.druid.indexer.path.DatasourcePathSpec)6 MultiplePathSpec (io.druid.indexer.path.MultiplePathSpec)6 PathSpec (io.druid.indexer.path.PathSpec)6 StaticPathSpec (io.druid.indexer.path.StaticPathSpec)6 Test (org.junit.Test)6 DatasourceIngestionSpec (io.druid.indexer.hadoop.DatasourceIngestionSpec)5 WindowedDataSegment (io.druid.indexer.hadoop.WindowedDataSegment)3 DataSegment (io.druid.timeline.DataSegment)2