@Test public void testGetFeatures() throws Exception { final String table = testData.getTempTableName(); LOGGER.fine("getting all features from " + table); SimpleFeatureSource source = store.getFeatureSource(table); int expectedCount = 8; int fCount = source.getCount(Query.ALL); String failMsg = "Expected and returned result count does not match"; assertEquals(failMsg, expectedCount, fCount); SimpleFeatureCollection fresults = source.getFeatures(); SimpleFeatureCollection features = fresults; failMsg = "FeatureResults.size and .collection().size thoes not match"; assertEquals(failMsg, fCount, features.size()); LOGGER.fine("fetched " + fCount + " features for " + table + " layer, OK"); }
public final SimpleFeatureCollection getFeatures(final Query query) throws IOException { final Query namedQuery = namedQuery(query); SimpleFeatureCollection collection; SimpleFeatureType queryType = dataStore.getQueryType(namedQuery); collection = new ArcSdeFeatureCollection(this, queryType, namedQuery); return collection; }
ArcSdeFeatureSource implements SimpleFeatureSource { public final SimpleFeatureCollection getFeatures(final Query query) throws IOException { final Query namedQuery = namedQuery(query); SimpleFeatureCollection collection; SimpleFeatureType queryType = dataStore.getQueryType(namedQuery); collection = new ArcSdeFeatureCollection(this, queryType, namedQuery); return collection; } }
ArcSdeFeatureSource implements SimpleFeatureSource { public final SimpleFeatureCollection getFeatures(final Query query) throws IOException { final Query namedQuery = namedQuery(query); SimpleFeatureCollection collection; SimpleFeatureType queryType = dataStore.getQueryType(namedQuery); collection = new ArcSdeFeatureCollection(this, queryType, namedQuery); return collection; } ArcSdeFeatureSource(final FeatureTypeInfo typeInfo, final ArcSDEDataStore dataStore); }
ArcSdeFeatureSource implements SimpleFeatureSource { public final SimpleFeatureCollection getFeatures(final Query query) throws IOException { final Query namedQuery = namedQuery(query); SimpleFeatureCollection collection; SimpleFeatureType queryType = dataStore.getQueryType(namedQuery); collection = new ArcSdeFeatureCollection(this, queryType, namedQuery); return collection; } ArcSdeFeatureSource(final FeatureTypeInfo typeInfo, final ArcSDEDataStore dataStore); Name getName(); synchronized ArcSdeResourceInfo getInfo(); QueryCapabilities getQueryCapabilities(); final void addFeatureListener(final FeatureListener listener); final void removeFeatureListener(final FeatureListener listener); final ReferencedEnvelope getBounds(); final ReferencedEnvelope getBounds(final Query query); final int getCount(final Query query); final ArcSDEDataStore getDataStore(); final SimpleFeatureCollection getFeatures(final Query query); final SimpleFeatureCollection getFeatures(final Filter filter); final SimpleFeatureCollection getFeatures(); final SimpleFeatureType getSchema(); final Set<RenderingHints.Key> getSupportedHints(); ArcSdeVersionHandler getVersionHandler(); FeatureReader<SimpleFeatureType, SimpleFeature> getfeatureReader(
            SimpleFeatureType targetSchema, Query query); }
ArcSdeFeatureSource implements SimpleFeatureSource { public final SimpleFeatureCollection getFeatures(final Query query) throws IOException { final Query namedQuery = namedQuery(query); SimpleFeatureCollection collection; SimpleFeatureType queryType = dataStore.getQueryType(namedQuery); collection = new ArcSdeFeatureCollection(this, queryType, namedQuery); return collection; } ArcSdeFeatureSource(final FeatureTypeInfo typeInfo, final ArcSDEDataStore dataStore); Name getName(); synchronized ArcSdeResourceInfo getInfo(); QueryCapabilities getQueryCapabilities(); final void addFeatureListener(final FeatureListener listener); final void removeFeatureListener(final FeatureListener listener); final ReferencedEnvelope getBounds(); final ReferencedEnvelope getBounds(final Query query); final int getCount(final Query query); final ArcSDEDataStore getDataStore(); final SimpleFeatureCollection getFeatures(final Query query); final SimpleFeatureCollection getFeatures(final Filter filter); final SimpleFeatureCollection getFeatures(); final SimpleFeatureType getSchema(); final Set<RenderingHints.Key> getSupportedHints(); ArcSdeVersionHandler getVersionHandler(); FeatureReader<SimpleFeatureType, SimpleFeature> getfeatureReader(
            SimpleFeatureType targetSchema, Query query);  }