|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.feature.persistence.geocouch.GeoCouchFeatureStore
public class GeoCouchFeatureStore
FeatureStore implementation that uses GeoCouch as backend.
FeatureStore| Constructor Summary | |
|---|---|
GeoCouchFeatureStore(ICRS crs,
AppSchema schema,
String couchUrl)
|
|
| Method Summary | |
|---|---|
FeatureStoreTransaction |
acquireTransaction()
Acquires transactional access to the feature store. |
Envelope |
calcEnvelope(QName ftName)
Recalculates the envelope for all stored features of the given type. |
void |
destroy()
Usually called by the ResourceManager upon workspace shutdown. |
Envelope |
getEnvelope(QName ftName)
Returns the envelope for all stored features of the given type. |
LockManager |
getLockManager()
Returns the associated LockManager. |
GMLObject |
getObjectById(String id)
Retrieves the stored object with a certain id. |
AppSchema |
getSchema()
Returns the application schema that this FeatureStore serves. |
void |
init(DeegreeWorkspace workspace)
Usually called by the ResourceManager upon workspace startup. |
boolean |
isAvailable()
Returns whether the store is currently able to perform operations. |
FeatureInputStream |
query(Query query)
Performs the given query and returns the matching features as a FeatureInputStream. |
FeatureInputStream |
query(Query[] queries)
Performs the given queries and returns the matching features as a FeatureInputStream. |
int |
queryHits(Query query)
Returns the number of features that are matched by the given query. |
int[] |
queryHits(Query[] queries)
Returns the number of features that are matched by the given queries. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GeoCouchFeatureStore(ICRS crs,
AppSchema schema,
String couchUrl)
| Method Detail |
|---|
public void init(DeegreeWorkspace workspace)
throws ResourceInitException
ResourceResourceManager upon workspace startup.
init in interface Resourceworkspace - the workspace the resource belongs to, may be null
ResourceInitExceptionpublic void destroy()
ResourceResourceManager upon workspace shutdown.
destroy in interface Resourcepublic boolean isAvailable()
FeatureStore
isAvailable in interface FeatureStorepublic AppSchema getSchema()
FeatureStoreFeatureStore serves.
getSchema in interface FeatureStorenull
public Envelope getEnvelope(QName ftName)
throws FeatureStoreException
FeatureStore
NOTE: This method may return incorrect (cached) results. Use FeatureStore.calcEnvelope(QName) to force the
recalculation of the Envelope.
getEnvelope in interface FeatureStoreftName - name of the feature type, must not be null and must be served by this store
null if the feature type does not have an envelope
(no geometry properties or no instances)
FeatureStoreException
public Envelope calcEnvelope(QName ftName)
throws FeatureStoreException
FeatureStoreNOTE: This method may potentially be expensive. Depending on the implementation, it may involve fetching all features of the specified type.
calcEnvelope in interface FeatureStoreftName - name of the feature type, must not be null and must be served by this store
null if the feature type does not have an envelope
(no geometry properties or no instances)
FeatureStoreException
public FeatureInputStream query(Query query)
throws FeatureStoreException,
FilterEvaluationException
FeatureStoreFeatureInputStream.
query in interface FeatureStorequery - query to be performed, must not be null
null
FeatureStoreException - if the query could not be performed
FilterEvaluationException - if the filter contained in the query could not be evaluated
public FeatureInputStream query(Query[] queries)
throws FeatureStoreException,
FilterEvaluationException
FeatureStoreFeatureInputStream.
query in interface FeatureStorequeries - queries to be performed, must not be null and contain at least one entry
null
FeatureStoreException - if the query could not be performed
FilterEvaluationException - if the filter contained in the query could not be evaluated
public int queryHits(Query query)
throws FeatureStoreException,
FilterEvaluationException
FeatureStore
queryHits in interface FeatureStorequery - query to be performed, must not be null
FeatureStoreException - if the query could not be performed
FilterEvaluationException - if the filter contained in the query could not be evaluated
public int[] queryHits(Query[] queries)
throws FeatureStoreException,
FilterEvaluationException
FeatureStore
queryHits in interface FeatureStorequeries - queries to be performed, must not be null and contain at least one entry
FeatureStoreException - if the query could not be performed
FilterEvaluationException - if the filter contained in the query could not be evaluated
public GMLObject getObjectById(String id)
throws FeatureStoreException
FeatureStore
getObjectById in interface FeatureStoreid - identifier of the object to be retrieved
Feature or a Geometry) or null if no
object with the given id is known
FeatureStoreException - if the query could not be performed
public FeatureStoreTransaction acquireTransaction()
throws FeatureStoreException
FeatureStore
acquireTransaction in interface FeatureStorenull
FeatureStoreException - if the transactional access could not be acquired or is not implemented for this FeatureStore
public LockManager getLockManager()
throws FeatureStoreException
FeatureStoreLockManager.
getLockManager in interface FeatureStoreLockManager instance, or null if the FeatureStore does not
implement locking
FeatureStoreException - if the lock manager could not be acquired
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||