|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.caching.grid.spatialindex.store.BufferedDiskStorage
public class BufferedDiskStorage
Disk storage that buffers read/writes of nodes.
To ensure all data has been written flush() should be called.
Field Summary | |
---|---|
static java.lang.String |
BUFFER_SIZE_PROPERTY
|
protected static java.util.logging.Logger |
logger
|
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 storage |
void |
clear()
Clears the buffer |
void |
clearFeatureTypes()
Clears all feature types |
static Storage |
createInstance()
|
static Storage |
createInstance(java.util.Properties pset)
|
void |
dispose()
Disposes of the storage |
NodeIdentifier |
findUniqueInstance(NodeIdentifier id)
Finds the unique node identifier |
void |
flush()
Writes all dirty nodes to underlying disk storage. |
Node |
get(NodeIdentifier id)
Gets a particular node. |
ReferencedEnvelope |
getBounds()
gets the bounds of the store |
java.util.Collection<org.opengis.feature.type.FeatureType> |
getFeatureTypes()
Removes feature types from the store |
java.util.Properties |
getPropertySet()
Get storage properties |
void |
put(Node n)
Adds a node to the storage. |
void |
remove(NodeIdentifier id)
Removes a node from the storage. |
void |
setBounds(ReferencedEnvelope bounds)
Sets the bounds of the data store. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String BUFFER_SIZE_PROPERTY
protected static java.util.logging.Logger logger
Method Detail |
---|
public static Storage createInstance(java.util.Properties pset)
public static Storage createInstance()
public void clear()
clear
in interface Storage
public void dispose()
dispose
in interface Storage
public Node get(NodeIdentifier id)
First looks in buffer; if not found will look in the underlying storage
get
in interface Storage
id
- identifier of the node to read
public void put(Node n)
put
in interface Storage
public void remove(NodeIdentifier id)
remove
in interface Storage
id
- identifier of the node to removepublic java.util.Properties getPropertySet()
getPropertySet
in interface Storage
public void flush()
flush
in interface Storage
public NodeIdentifier findUniqueInstance(NodeIdentifier id)
findUniqueInstance
in interface Storage
public void addFeatureType(org.opengis.feature.type.FeatureType ft)
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()
clearFeatureTypes
in interface Storage
public ReferencedEnvelope getBounds()
getBounds
in interface Storage
public void setBounds(ReferencedEnvelope bounds)
setBounds
in interface Storage
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |