org.geotools.data.store.ContentEntry Java Examples

The following examples show how to use org.geotools.data.store.ContentEntry. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ElasticFeatureSource.java    From elasticgeo with GNU General Public License v3.0 5 votes vote down vote up
public ElasticFeatureSource(ContentEntry entry, Query query) throws IOException {
    super(entry, query);

    final ElasticDataStore dataStore = getDataStore();
    if (dataStore.getLayerConfigurations().get(entry.getName().getLocalPart()) == null) {
        final List<ElasticAttribute> attributes = dataStore.getElasticAttributes(entry.getName());
        final ElasticLayerConfiguration config = new ElasticLayerConfiguration(entry.getName().getLocalPart());
        config.getAttributes().addAll(attributes);
        dataStore.setLayerConfiguration(config);
    }
}
 
Example #2
Source File: ElasticFeatureFilterIT.java    From elasticgeo with GNU General Public License v3.0 5 votes vote down vote up
@Test @Ignore
public void testSchemaWithoutLayerConfig() throws Exception {
    init();
    ElasticFeatureSource featureSource = new ElasticFeatureSource(new ContentEntry(dataStore, new NameImpl("invalid")),null);
    SimpleFeatureType schema = featureSource.getSchema();        
    assertNotNull(schema);
    assertEquals(0, schema.getAttributeCount());
}
 
Example #3
Source File: GeoWaveGTDataStore.java    From geowave with Apache License 2.0 5 votes vote down vote up
@Override
protected ContentFeatureSource createFeatureSource(final ContentEntry entry) throws IOException {
  return new GeoWaveFeatureSource(
      entry,
      Query.ALL,
      getAdapter(entry.getTypeName()),
      transactionsAllocator);
}
 
Example #4
Source File: GeoWaveFeatureSource.java    From geowave with Apache License 2.0 5 votes vote down vote up
public GeoWaveFeatureSource(
    final ContentEntry entry,
    final Query query,
    final GeotoolsFeatureDataAdapter adapter,
    final TransactionsAllocator transactionAllocator) {
  super(entry, query);
  components =
      new GeoWaveDataStoreComponents(
          getDataStore().getDataStore(),
          getDataStore().getDataStatisticsStore(),
          getDataStore().getIndexStore(),
          adapter,
          getDataStore(),
          transactionAllocator);
}
 
Example #5
Source File: ElasticDataStore.java    From elasticgeo with GNU General Public License v3.0 4 votes vote down vote up
@Override
protected ContentFeatureSource createFeatureSource(ContentEntry entry) throws IOException {
    return new ElasticFeatureSource(entry, Query.ALL);
}
 
Example #6
Source File: DummyJdbcFactory.java    From geomajas-project-server with GNU Affero General Public License v3.0 4 votes vote down vote up
protected ContentFeatureSource createFeatureSource(ContentEntry entry) throws IOException {
	return null;
}