Creating a DataStore

Function Description

You can connect to the GeoMesa cluster to create a DataStore instance by using GeoMesa APIs. The DataStore instance provides APIs for operations on the GeoMesa specified directories.

Sample Code

// 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);