org.geotools.data.pickle
Class PickleDataStore

java.lang.Object
  extended byorg.geotools.data.AbstractDataStore
      extended byorg.geotools.data.pickle.PickleDataStore
All Implemented Interfaces:
DataStore

public class PickleDataStore
extends AbstractDataStore

Pickel is really not very good, this is a simple wrap to let it live on as a zombie.

Any chance of people picking this up, adding index support to it and making it sing and dance? Please...

Author:
jgarnett

Field Summary
 
Fields inherited from class org.geotools.data.AbstractDataStore
isWriteable, listenerManager, LOGGER
 
Constructor Summary
PickleDataStore(java.io.File parent, java.lang.String name)
          Construct MapInfoDataStore and attach it to the specified file.
 
Method Summary
 void createSchema(FeatureType featureType)
          Subclass should implement to provide writing support.
protected  FeatureReader getFeatureReader(java.lang.String typeName)
          Subclass must implement.
protected  FeatureReader getFeatureReader(java.lang.String typeName, Query query)
          GR: this method is called from inside getFeatureReader(Query ,Transaction ) to allow subclasses return an optimized FeatureReader wich supports the filter and attributes truncation specified in query A subclass that supports the creation of such an optimized FeatureReader shold override this method.
protected  FeatureWriter getFeatureWriter(java.lang.String typeName)
          Subclass can implement this to provide writing support.
 FeatureType getSchema(java.lang.String typeName)
          Retrive schema information for typeName
 java.lang.String[] getTypeNames()
          Convience method for retriving all the names from the Catalog Entires
 
Methods inherited from class org.geotools.data.AbstractDataStore
createFeatureWriter, createLockingManager, createMetadata, getBounds, getCount, getFeatureReader, getFeatureSource, getFeatureWriter, getFeatureWriter, getFeatureWriterAppend, getLockingManager, getUnsupportedFilter, getView, updateSchema
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PickleDataStore

public PickleDataStore(java.io.File parent,
                       java.lang.String name)
                throws java.io.IOException
Construct MapInfoDataStore and attach it to the specified file.

TODO: Hook this up with the directory datastore.

Throws:
java.net.MalformedURLException
java.net.MalformedURLException - invalid URL was used
java.io.IOException
Method Detail

createSchema

public void createSchema(FeatureType featureType)
                  throws java.io.IOException
Description copied from class: AbstractDataStore
Subclass should implement to provide writing support.

Specified by:
createSchema in interface DataStore
Overrides:
createSchema in class AbstractDataStore
Parameters:
featureType - Requested FeatureType
Throws:
java.io.IOException

getTypeNames

public java.lang.String[] getTypeNames()
Description copied from class: AbstractDataStore
Convience method for retriving all the names from the Catalog Entires

Specified by:
getTypeNames in interface DataStore
Specified by:
getTypeNames in class AbstractDataStore

getSchema

public FeatureType getSchema(java.lang.String typeName)
                      throws java.io.IOException
Description copied from class: AbstractDataStore
Retrive schema information for typeName

Specified by:
getSchema in interface DataStore
Specified by:
getSchema in class AbstractDataStore
Throws:
java.io.IOException

getFeatureReader

protected FeatureReader getFeatureReader(java.lang.String typeName,
                                         Query query)
                                  throws java.io.IOException
Description copied from class: AbstractDataStore
GR: this method is called from inside getFeatureReader(Query ,Transaction ) to allow subclasses return an optimized FeatureReader wich supports the filter and attributes truncation specified in query

A subclass that supports the creation of such an optimized FeatureReader shold override this method. Otherwise, it just returns getFeatureReader(typeName)

Overrides:
getFeatureReader in class AbstractDataStore
Throws:
java.io.IOException

getFeatureReader

protected FeatureReader getFeatureReader(java.lang.String typeName)
                                  throws java.io.IOException
Description copied from class: AbstractDataStore
Subclass must implement.

Specified by:
getFeatureReader in class AbstractDataStore
Parameters:
typeName -
Returns:
FeatureReader over contents of typeName
Throws:
java.io.IOException

getFeatureWriter

protected FeatureWriter getFeatureWriter(java.lang.String typeName)
                                  throws java.io.IOException
Description copied from class: AbstractDataStore
Subclass can implement this to provide writing support.

Overrides:
getFeatureWriter in class AbstractDataStore
Parameters:
typeName -
Returns:
FeatureWriter over contents of typeName
Throws:
java.io.IOException - Subclass may throw IOException


Copyright © GeoTools. All Rights Reserved.