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 class
MongoUtil.SchemaFolderFinder
-
Constructor Summary
Constructors Constructor Description MongoUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
extractFilesNameFromUrl(String url)
static File
extractZipFile(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 Object
getDBOValue(DBObject dbo, String path)
static Object
getDBOValue(DBObject dbo, Iterator<String> path)
static boolean
isZipFile(File file)
static boolean
isZipFile(String uri)
static Class<?>
mapBSONObjectToJavaType(Object o)
static void
setDBOValue(DBObject dbo, String path, Object value)
static void
setDBOValue(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:
IOException
URISyntaxException
-
extractZipFile
public static File extractZipFile(File destDir, File zipFile) throws ZipException, IOException
- Throws:
ZipException
IOException
-
-