org.geotools.caching.spatialindex
Interface Storage

All Known Implementing Classes:
BufferedDiskStorage, DiskStorage, MemoryStorage

public interface Storage

Interface for cache storage options.


Field Summary
static java.lang.String STORAGE_TYPE_PROPERTY
           
 
Method Summary
 void addFeatureType(org.opengis.feature.type.FeatureType ft)
          Adds a feature type to the store.
 void clear()
          Clears all information from the store.
 void clearFeatureTypes()
          Removes all feature types associated with the store.
 void dispose()
          Disposes of the store.
 NodeIdentifier findUniqueInstance(NodeIdentifier id)
           
 void flush()
          Flushes the store writing everything to the store.
 Node get(NodeIdentifier id)
          Reads a node from the store given an node identifier
 ReferencedEnvelope getBounds()
          Gets the bounds of the cached data.
 java.util.Collection<org.opengis.feature.type.FeatureType> getFeatureTypes()
           
 java.util.Properties getPropertySet()
          Get properties about the given storage.
 void put(Node n)
          Adds a given node to the store.
 void remove(NodeIdentifier id)
          Removes a node from the store given a node identifier
 void setBounds(ReferencedEnvelope bounds)
          Sets the bounds of the data in the cache.
 

Field Detail

STORAGE_TYPE_PROPERTY

static final java.lang.String STORAGE_TYPE_PROPERTY
See Also:
Constant Field Values
Method Detail

put

void put(Node n)
Adds a given node to the store.

Parameters:
n -

remove

void remove(NodeIdentifier id)
Removes a node from the store given a node identifier

Parameters:
id - identifier of the node to remove

get

Node get(NodeIdentifier id)
Reads a node from the store given an node identifier

Parameters:
id - identifier of the node to read
Returns:

clear

void clear()
Clears all information from the store.


getPropertySet

java.util.Properties getPropertySet()
Get properties about the given storage. The actual properties returned depend on the type of storage.

Returns:

flush

void flush()
Flushes the store writing everything to the store.

Currently this is really only used by the BufferedDiskStorage to write everything in the buffer to the store.


dispose

void dispose()
Disposes of the store.


findUniqueInstance

NodeIdentifier findUniqueInstance(NodeIdentifier id)

getFeatureTypes

java.util.Collection<org.opengis.feature.type.FeatureType> getFeatureTypes()

addFeatureType

void addFeatureType(org.opengis.feature.type.FeatureType ft)
Adds a feature type to the store.

Parameters:
ft - feature type to add

clearFeatureTypes

void clearFeatureTypes()
Removes all feature types associated with the store.


setBounds

void setBounds(ReferencedEnvelope bounds)
Sets the bounds of the data in the cache.

Parameters:
bounds -

getBounds

ReferencedEnvelope getBounds()
Gets the bounds of the cached data.

Returns:


Copyright © 1996-2010 Geotools. All Rights Reserved.