use of org.polymap.core.data.PipelineDataStore in project polymap4-core by Polymap4.
the class RStoreCacheReadTest method setUp.
@Before
public void setUp() throws Exception {
origDs = _ds;
origFs = origDs.getFeatureSource(_ds.getSchema().getName());
SimplePipelineBuilder builder = new SimplePipelineBuilder();
StoreCacheProcessor.SYNC_TYPE.set(builder, FullDataStoreSyncStrategy.class.getSimpleName());
pipeline = builder.newFeaturePipeline(origFs, StoreCacheProcessor.class, DataSourceProcessor.class);
pipeDs = new PipelineDataStore(pipeline);
expected = _expected;
}
use of org.polymap.core.data.PipelineDataStore in project polymap4-core by Polymap4.
the class ShapefilePipelineReadTest method setUp.
@Before
public void setUp() throws Exception {
origDs = _ds;
origFs = _ds.getFeatureSource();
pipeline = new SimplePipelineBuilder().newFeaturePipeline(origFs, DataSourceProcessor.class);
pipeDs = new PipelineDataStore(pipeline);
expected = _expected;
}
use of org.polymap.core.data.PipelineDataStore in project polymap4-core by Polymap4.
the class FeatureRenderProcessor2 method init.
@Override
public void init(@SuppressWarnings("hiding") PipelineProcessorSite site) throws Exception {
this.site = site;
// styleSupplier
style = STYLE_SUPPLIER.rawopt(site).orElseGet(() -> {
log.warn("No style for resource: " + site.dsd.get().resourceName.get());
return () -> DefaultStyles.findStyle(fs.get());
});
// pipeline
this.pipeline = new CachedLazyInit(() -> {
try {
PipelineBuilder builder = site.builder.get();
DataSourceDescriptor dsd = new DataSourceDescriptor(site.dsd.get());
return builder.createPipeline(site.layerId.get(), FeaturesProducer.class, dsd).get();
} catch (Exception e) {
throw new RuntimeException(e);
}
});
// fs
this.fs = new CachedLazyInit(() -> {
try {
return new PipelineDataStore(pipeline.get()).getFeatureSource();
} catch (IOException e) {
throw new RuntimeException(e);
}
});
}
use of org.polymap.core.data.PipelineDataStore in project polymap4-core by Polymap4.
the class ShapefileStoreCacheReadTest method setUp.
@Before
public void setUp() throws Exception {
origDs = _ds;
origFs = origDs.getFeatureSource(_ds.getSchema().getName());
SimplePipelineBuilder builder = new SimplePipelineBuilder();
StoreCacheProcessor.SYNC_TYPE.set(builder, NoSyncStrategy.class.getSimpleName());
pipeline = builder.newFeaturePipeline(origFs, StoreCacheProcessor.class, DataSourceProcessor.class);
pipeDs = new PipelineDataStore(pipeline);
expected = _expected;
}
use of org.polymap.core.data.PipelineDataStore in project polymap4-core by Polymap4.
the class RPipelineReadTest method setUp.
public void setUp() throws Exception {
origDs = _ds;
origFs = _fs;
pipeline = new SimplePipelineBuilder().newFeaturePipeline(origFs, DataSourceProcessor.class);
pipeDs = new PipelineDataStore(pipeline);
expected = _expected;
}
Aggregations