Search in sources :

Example 1 with DirectoryRecordStore

use of com.revolsys.record.io.format.directory.DirectoryRecordStore in project com.revolsys.open by revolsys.

the class AbstractRecordIoFactory method newRecordStore.

@Override
public RecordStore newRecordStore(final Map<String, ? extends Object> connectionProperties) {
    final String url = (String) connectionProperties.get("url");
    final Resource resource = Resource.getResource(url);
    final File directory = resource.getFile();
    final List<String> fileExtensions = getFileExtensions();
    return new DirectoryRecordStore(directory, fileExtensions);
}
Also used : DirectoryRecordStore(com.revolsys.record.io.format.directory.DirectoryRecordStore) Resource(com.revolsys.spring.resource.Resource) File(java.io.File)

Aggregations

DirectoryRecordStore (com.revolsys.record.io.format.directory.DirectoryRecordStore)1 Resource (com.revolsys.spring.resource.Resource)1 File (java.io.File)1