public abstract class AbstractMemoryStoreProvider extends AbstractFeatureStoreProvider
FeatureStoreProvider
for provider that
are loaded statically in memoryAbstractFeatureStoreProvider.FeatureProviderNotFoundException
FeatureStoreProvider.FeatureTypeChanged
Modifier | Constructor and Description |
---|---|
protected |
AbstractMemoryStoreProvider(DataStoreParameters params,
DataStoreProviderServices storeServices) |
protected |
AbstractMemoryStoreProvider(DataStoreParameters params,
DataStoreProviderServices storeServices,
DynObject metadata) |
Modifier and Type | Method and Description |
---|---|
void |
addFeatureProvider(FeatureProvider data)
Load a
FeatureProvider into memory store. |
FeatureProvider |
createFeatureProvider(FeatureType featureType)
Default Factory of
FeatureProvider . |
FeatureSetProvider |
createSet(FeatureQuery query,
FeatureType featureType)
Factory of
FeatureSetProvider . |
protected void |
doDispose()
Internal implementation for the
AbstractDisposable.dispose() method, to be
implemented by child classes. |
long |
getDataSize()
Return the current size of the memory store.
|
long |
getFeatureCount()
Returns total feature count of this store.
|
protected AbstractMemoryStoreProvider |
getMemoryProvider() |
protected FeatureProvider |
internalGetFeatureProviderByReference(FeatureReferenceProviderServices reference)
Returns a
FeatureProvider by reference, using the default
FeatureType . |
protected FeatureProvider |
internalGetFeatureProviderByReference(FeatureReferenceProviderServices reference,
FeatureType featureType)
Returns a
FeatureProvider by reference, using the provided
FeatureType . |
void |
performChanges(Iterator deleteds,
Iterator inserteds,
Iterator updateds,
Iterator originalFeatureTypesUpdated)
unsupported by default, override this otherwise
|
abortAppend, allowAutomaticValues, allowWrite, append, beginAppend, canWriteGeometry, clear, close, createExpression, createFeatureLocks, createFeatureSelection, createResource, delegate, endAppend, getChilds, getDynClass, getDynValue, getEnvelope, getExplorer, getFeatureProviderByReference, getFeatureProviderByReference, getFeatureStore, getInterval, getParameters, getRetrievedFeaturesLimit, getStoreServices, getTimes, getTimes, hasDynMethod, hasDynValue, hasRetrievedFeaturesLimit, implement, invokeDynMethod, invokeDynMethod, isKnownEnvelope, isLocksSupported, refresh, savePrjFile, setDynValue, setMetadata, supportsAppendMode
dispose, dispose
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createNewOID, getOIDType
getFullName, getName, getProviderName, getResource, getSourceId, open
dispose
protected List data
protected AbstractMemoryStoreProvider(DataStoreParameters params, DataStoreProviderServices storeServices, DynObject metadata)
protected AbstractMemoryStoreProvider(DataStoreParameters params, DataStoreProviderServices storeServices)
public void performChanges(Iterator deleteds, Iterator inserteds, Iterator updateds, Iterator originalFeatureTypesUpdated) throws PerformEditingException
AbstractFeatureStoreProvider
performChanges
in interface FeatureStoreProvider
performChanges
in class AbstractFeatureStoreProvider
deleteds
- iterator of FeatureReferenceProviderServices
inserteds
- iterator of FeatureProvider
updateds
- iterator of FeatureProvider
originalFeatureTypesUpdated
- iterator of FeatureStoreProvider.FeatureTypeChanged
PerformEditingException
FeatureStoreProvider.performChanges(Iterator,
Iterator, Iterator, Iterator)
public void addFeatureProvider(FeatureProvider data)
FeatureProvider
into memory store.data
- public long getDataSize() throws DataException
DataException
protected FeatureProvider internalGetFeatureProviderByReference(FeatureReferenceProviderServices reference) throws DataException
AbstractFeatureStoreProvider
FeatureProvider
by reference, using the default
FeatureType
. This method may be rewritten by the child classes as
an implementation of the
AbstractFeatureStoreProvider.getFeatureProviderByReference(FeatureReferenceProviderServices)
method.internalGetFeatureProviderByReference
in class AbstractFeatureStoreProvider
reference
- the reference to the FeatureProvider
FeatureProvider
being referencedDataException
- if there is an error loading the FeatureProvider
protected FeatureProvider internalGetFeatureProviderByReference(FeatureReferenceProviderServices reference, FeatureType featureType) throws DataException
AbstractFeatureStoreProvider
FeatureProvider
by reference, using the provided
FeatureType
. This is the child classes implementation of the
AbstractFeatureStoreProvider.getFeatureProviderByReference(FeatureReferenceProviderServices)
method.internalGetFeatureProviderByReference
in class AbstractFeatureStoreProvider
reference
- the reference to the FeatureProvider
featureType
- the type of feature to loadFeatureProvider
being referencedDataException
- if there is an error loading the FeatureProvider
public FeatureSetProvider createSet(FeatureQuery query, FeatureType featureType) throws DataException
FeatureStoreProvider
FeatureSetProvider
. Create a new
FeatureSetProvider
that represents result of FeatureQuery
.query
- (never will be null)featureType
- (never will be null)DataException
public FeatureProvider createFeatureProvider(FeatureType featureType) throws DataException
AbstractFeatureStoreProvider
FeatureProvider
. Create a new default
FeatureProvider
instance.FeatureProvider
.createFeatureProvider
in interface FeatureStoreProvider
createFeatureProvider
in class AbstractFeatureStoreProvider
DataException
org.gvsig.fmap.dal.feature.spi.FeatureStoreProvider#createFeatureProvider(FeatureType)}
public long getFeatureCount() throws DataException
FeatureStoreProvider
DataException
protected AbstractMemoryStoreProvider getMemoryProvider()
protected void doDispose() throws BaseException
AbstractDisposable
AbstractDisposable.dispose()
method, to be
implemented by child classes.doDispose
in class AbstractFeatureStoreProvider
BaseException
AbstractDisposable.dispose()