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); Last Article: Parameter Configuration
Next Article: Creating a Schema
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.