public class PropertyFeatureSource extends ContentFeatureSource
entry, hints, lock, query, queryCapabilities, schema, transaction| Constructor and Description |
|---|
PropertyFeatureSource(ContentEntry entry,
Query query) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addHints(Set<Hints.Key> hints)
Subclass hook too add additional hints.
|
protected SimpleFeatureType |
buildFeatureType()
Creates the feature type or schema for the feature source.
|
protected QueryCapabilities |
buildQueryCapabilities()
Builds the query capabilities for this feature source.
|
protected ReferencedEnvelope |
getBoundsInternal(Query query)
Calculates the bounds of a specified query.
|
protected int |
getCountInternal(Query query)
Calculates the number of features of a specified query.
|
PropertyDataStore |
getDataStore()
The datastore that this feature source originated from.
|
protected FeatureReader<SimpleFeatureType,SimpleFeature> |
getReaderInternal(Query query)
Subclass method for returning a native reader from the datastore.
|
protected boolean |
handleVisitor(Query query,
FeatureVisitor visitor)
Make handleVisitor package visible allowing PropertyFeatureStore to delegate to this
implementation.
|
accepts, addFeatureListener, canEvent, canFilter, canLimit, canLock, canOffset, canReproject, canRetype, canSort, canTransact, doLockInternal, doUnlockInternal, getAbsoluteSchema, getBounds, getBounds, getCount, getEntry, getFeatures, getFeatures, getFeatures, getInfo, getName, getQueryCapabilities, getReader, getReader, getReader, getSchema, getState, getSupportedHints, getTransaction, getView, getView, isView, joinQuery, lockFeatures, lockFeatures, lockFeatures, processLock, removeFeatureListener, resolvePropertyNames, resolvePropertyNames, setFeatureLock, setTransaction, unLockFeatures, unLockFeatures, unLockFeaturespublic PropertyFeatureSource(ContentEntry entry, Query query)
protected void addHints(Set<Hints.Key> hints)
ContentFeatureSourceBy default, the followings are already present:
addHints in class ContentFeatureSourcehints - The set of hints supported by the feature source.public PropertyDataStore getDataStore()
ContentFeatureSourceSubclasses may wish to extend this method in order to type narrow its return type.
getDataStore in interface FeatureSource<SimpleFeatureType,SimpleFeature>getDataStore in class ContentFeatureSourceFeatureSourceprotected QueryCapabilities buildQueryCapabilities()
ContentFeatureSourcebuildQueryCapabilities in class ContentFeatureSourceprotected ReferencedEnvelope getBoundsInternal(Query query) throws IOException
ContentFeatureSourcegetBoundsInternal in class ContentFeatureSourceIOExceptionprotected int getCountInternal(Query query) throws IOException
ContentFeatureSourcegetCountInternal in class ContentFeatureSourceIOExceptionprotected SimpleFeatureType buildFeatureType() throws IOException
ContentFeatureSourceImplementations should use SimpleFeatureTypeBuilder to build the feature type.
Also, the builder should be injected with the feature factory which has been set on the
DataStore (see ContentDataStore.getFeatureFactory(). Example:
SimpleFeatureTypeBuilder b = new SimpleFeatureTypeBuilder(); b.setFeatureTypeFactory( getDataStore().getFeatureTypeFactory() ); //build the feature type ...
buildFeatureType in class ContentFeatureSourceIOExceptionprotected FeatureReader<SimpleFeatureType,SimpleFeature> getReaderInternal(Query query) throws IOException
ContentFeatureSourceIt is important to note that if the native reader intends to handle any of the following natively:
true:
ContentFeatureSource.canReproject() - handles Query.getCoordinateSystemReproject() internally.
Example would be PostGIS using Proj to handle reproejction internallyContentFeatureSource.canFilter() - handles Query#getFilter() internally.getReaderInternal in class ContentFeatureSourceIOExceptionprotected boolean handleVisitor(Query query, FeatureVisitor visitor) throws IOException
handleVisitor in class ContentFeatureSourcequery - The query being made.visitor - The visitor toIOExceptionCopyright © 1996–2019 Geotools. All rights reserved.