更新时间:2021-03-18 GMT+08:00
创建DataStore
功能简介
使用GeoMesa的接口连接GeoMesa集群创建DataStore,DataStore实例提供可对GeoMesa指定目录操作的接口。
样例代码
// find out where -- in HBase -- the user wants to store data CommandLineParser parser = new BasicParser(); Options options = getCommonRequiredOptions(); CommandLine cmd = parser.parse(options, new String[]{"--bigtable_table_name", "geomesa"}); // verify that we can see this HBase destination in a GeoTools manner Map<String, Serializable> dsConf = getHBaseDataStoreConf(cmd); DataStore dataStore = DataStoreFinder.getDataStore(dsConf);
父主题: 样例代码说明
