public class CSVDataStore extends ContentDataStore implements FileDataStore
dataStoreFactory, entries, featureFactory, filterFactory, geometryFactory, JOINED_FEATURE_TYPE, lockingManager, LOGGER, namespaceURI, typeFactory, WRITER_ADD, WRITER_COMMIT, WRITER_UPDATE| Constructor and Description |
|---|
CSVDataStore(CSVFileState csvFileState,
CSVStrategy csvStrategy) |
| Modifier and Type | Method and Description |
|---|---|
protected ContentFeatureSource |
createFeatureSource(ContentEntry entry)
Instantiates new feature source for the entry.
|
void |
createSchema(SimpleFeatureType featureType)
Creates a new schema in the datastore.
|
protected List<Name> |
createTypeNames()
Creates a set of qualified names corresponding to the types that the datastore provides.
|
CSVStrategy |
getCSVStrategy() |
FeatureReader<SimpleFeatureType,SimpleFeature> |
getFeatureReader() |
SimpleFeatureSource |
getFeatureSource() |
FeatureWriter<SimpleFeatureType,SimpleFeature> |
getFeatureWriter(Filter filter,
Transaction transaction) |
FeatureWriter<SimpleFeatureType,SimpleFeature> |
getFeatureWriter(Transaction transaction) |
FeatureWriter<SimpleFeatureType,SimpleFeature> |
getFeatureWriterAppend(Transaction transaction) |
SimpleFeatureType |
getSchema()
FeatureType for the file being read.
|
Name |
getTypeName() |
void |
updateSchema(SimpleFeatureType featureType) |
createContentState, dispose, ensureEntry, ensureFeatureStore, entry, getDataStoreFactory, getEntry, getFeatureFactory, getFeatureReader, getFeatureSource, getFeatureSource, getFeatureSource, getFeatureSource, getFeatureTypeFactory, getFeatureWriter, getFeatureWriter, getFeatureWriterAppend, getFilterFactory, getGeometryFactory, getInfo, getLockingManager, getLogger, getNames, getNamespaceURI, getSchema, getSchema, getTypeNames, name, removeEntry, removeSchema, removeSchema, setDataStoreFactory, setFeatureFactory, setFeatureTypeFactory, setFilterFactory, setGeometryFactory, setNamespaceURI, updateSchema, updateSchemaclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFeatureReader, getFeatureSource, getFeatureSource, getFeatureWriter, getFeatureWriter, getFeatureWriterAppend, getLockingManager, getSchema, getTypeNames, removeSchema, updateSchemadispose, getInfo, getNames, getSchema, removeSchema, updateSchemapublic CSVDataStore(CSVFileState csvFileState, CSVStrategy csvStrategy)
public Name getTypeName()
protected List<Name> createTypeNames() throws IOException
ContentDataStoreNamespaces may be left null for data stores which do not support namespace
qualified type names.
createTypeNames in class ContentDataStoreName.IOException - Any errors occuring connecting to data.protected ContentFeatureSource createFeatureSource(ContentEntry entry) throws IOException
ContentDataStoreSubclasses should override this method to return a specific subclass of ContentFeatureSource.
createFeatureSource in class ContentDataStoreentry - The entry.ContentFeatureSource for the entry.IOExceptionpublic SimpleFeatureType getSchema() throws IOException
FileDataStoreThis is the same as getSchema( getTypeName[0] )
getSchema in interface FileDataStoreIOExceptionDataStore.getSchema(java.lang.String)public void updateSchema(SimpleFeatureType featureType) throws IOException
updateSchema in interface FileDataStoreIOExceptionDataStore.updateSchema(java.lang.String,SimpleFeatureType)public SimpleFeatureSource getFeatureSource() throws IOException
getFeatureSource in interface FileDataStoreIOExceptionDataStore.getFeatureSource(java.lang.String)public FeatureReader<SimpleFeatureType,SimpleFeature> getFeatureReader() throws IOException
getFeatureReader in interface FileDataStoreIOExceptionorg.geotools.data.DataStore#getFeatureReader(java.lang.String)public FeatureWriter<SimpleFeatureType,SimpleFeature> getFeatureWriter(Filter filter, Transaction transaction) throws IOException
getFeatureWriter in interface FileDataStoreIOExceptionorg.geotools.data.DataStore#getFeatureWriter(Filter,Transaction)public FeatureWriter<SimpleFeatureType,SimpleFeature> getFeatureWriter(Transaction transaction) throws IOException
getFeatureWriter in interface FileDataStoreIOExceptionDataStore.getFeatureWriter(java.lang.String,
org.geotools.data.Transaction)public FeatureWriter<SimpleFeatureType,SimpleFeature> getFeatureWriterAppend(Transaction transaction) throws IOException
getFeatureWriterAppend in interface FileDataStoreIOExceptionDataStore.getFeatureWriterAppend(java.lang.String,
org.geotools.data.Transaction)public CSVStrategy getCSVStrategy()
public void createSchema(SimpleFeatureType featureType) throws IOException
ContentDataStoreThis implementation throws aUnsupportedOperationException. Subclasses should
override to support schema creation.
createSchema in interface DataAccess<SimpleFeatureType,SimpleFeature>createSchema in class ContentDataStorefeatureType - FetureType to add to DataStoreIOException - If featureType cannot be createdDataAccess.createSchema(FeatureType)Copyright © 1996–2021 Geotools. All rights reserved.