Package org.geotools.data.mongodb
Class MongoUtil
- Object
-
- MongoUtil
-
public class MongoUtil extends Object
- Author:
- tkunicki@boundlessgeo.com
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMongoUtil.SchemaFolderFinder
-
Constructor Summary
Constructors Constructor Description MongoUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringextractFilesNameFromUrl(String url)static FileextractZipFile(File destDir, File zipFile)static Set<String>findIndexedFields(DBCollection dbc)static Set<String>findIndexedFields(DBCollection dbc, String type)static Set<String>findIndexedFields(List<DBObject> indices, String type)static Set<String>findIndexedGeometries(DBCollection dbc)static Map<String,Class<?>>findMappableFields(DBCollection dbc)static Map<String,Class<?>>findMappableFields(DBObject dbo)static ObjectgetDBOValue(DBObject dbo, String path)static ObjectgetDBOValue(DBObject dbo, Iterator<String> path)static booleanisZipFile(File file)static booleanisZipFile(String uri)static Class<?>mapBSONObjectToJavaType(Object o)static voidsetDBOValue(DBObject dbo, String path, Object value)static voidsetDBOValue(DBObject dbo, Iterator<String> path, Object value)
-
-
-
Method Detail
-
extractFilesNameFromUrl
public static String extractFilesNameFromUrl(String url) throws MalformedURLException
- Throws:
MalformedURLException
-
isZipFile
public static boolean isZipFile(File file) throws IOException
- Throws:
IOException
-
isZipFile
public static boolean isZipFile(String uri) throws IOException, URISyntaxException
- Throws:
IOExceptionURISyntaxException
-
extractZipFile
public static File extractZipFile(File destDir, File zipFile) throws ZipException, IOException
- Throws:
ZipExceptionIOException
-
-