|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.caching.grid.spatialindex.store.MemoryStorage
public class MemoryStorage
A simple in-memory storage relying on LinkedHashMap.
Field Summary |
---|
Fields inherited from interface org.geotools.caching.spatialindex.Storage |
---|
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. |
static Storage |
createInstance()
|
static Storage |
createInstance(java.util.Properties pset)
|
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. |
void |
setParent(SpatialIndex index)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Storage createInstance(java.util.Properties pset)
public static Storage createInstance()
public Node get(NodeIdentifier id)
Storage
get
in interface Storage
id
- identifier of the node to read
public void put(Node n)
Storage
put
in interface Storage
public void remove(NodeIdentifier id)
Storage
remove
in interface Storage
id
- identifier of the node to removepublic void clear()
Storage
clear
in interface Storage
public void setParent(SpatialIndex index)
public void flush()
Storage
Currently this is really only used by the BufferedDiskStorage to write everything in the buffer to the store.
flush
in interface Storage
public void dispose()
Storage
dispose
in interface Storage
public java.util.Properties getPropertySet()
Storage
getPropertySet
in interface Storage
public NodeIdentifier findUniqueInstance(NodeIdentifier id)
findUniqueInstance
in interface Storage
public void addFeatureType(org.opengis.feature.type.FeatureType ft)
Storage
addFeatureType
in interface Storage
ft
- feature type to addpublic java.util.Collection<org.opengis.feature.type.FeatureType> getFeatureTypes()
getFeatureTypes
in interface Storage
public void clearFeatureTypes()
Storage
clearFeatureTypes
in interface Storage
public ReferencedEnvelope getBounds()
Storage
getBounds
in interface Storage
public void setBounds(ReferencedEnvelope bounds)
Storage
setBounds
in interface Storage
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |