Search in sources :

Example 6 with PathSpec

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

the class HadoopIngestionSpecUpdateDatasourcePathSpecSegmentsTest method testUpdateSegmentListIfDatasourcePathSpecIsUsedWithNoDatasourcePathSpec.

@Test
public void testUpdateSegmentListIfDatasourcePathSpecIsUsedWithNoDatasourcePathSpec() throws Exception {
    PathSpec pathSpec = new StaticPathSpec("/xyz", null);
    HadoopDruidIndexerConfig config = testRunUpdateSegmentListIfDatasourcePathSpecIsUsed(pathSpec, null);
    Assert.assertTrue(config.getPathSpec() instanceof StaticPathSpec);
}
Also used : StaticPathSpec(org.apache.druid.indexer.path.StaticPathSpec) MultiplePathSpec(org.apache.druid.indexer.path.MultiplePathSpec) DatasourcePathSpec(org.apache.druid.indexer.path.DatasourcePathSpec) StaticPathSpec(org.apache.druid.indexer.path.StaticPathSpec) PathSpec(org.apache.druid.indexer.path.PathSpec) Test(org.junit.Test)

Aggregations

DatasourcePathSpec (org.apache.druid.indexer.path.DatasourcePathSpec)6 MultiplePathSpec (org.apache.druid.indexer.path.MultiplePathSpec)6 PathSpec (org.apache.druid.indexer.path.PathSpec)6 StaticPathSpec (org.apache.druid.indexer.path.StaticPathSpec)6 Test (org.junit.Test)6 DatasourceIngestionSpec (org.apache.druid.indexer.hadoop.DatasourceIngestionSpec)5 WindowedDataSegment (org.apache.druid.indexer.hadoop.WindowedDataSegment)2